[Freeciv-Dev] [bug #13673] [Patch] AI: Evaluate defense buildings based on enemy unit class

2009-06-13 Thread Marko Lindqvist

Update of bug #13673 (project freeciv):

Category:None => ai 
  Status:None => Fixed  
 Assigned to:None => cazfi  
 Open/Closed:Open => Closed 


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #13673] [Patch] AI: Evaluate defense buildings based on enemy unit class

2009-06-11 Thread Marko Lindqvist

URL:
  

 Summary: [Patch] AI: Evaluate defense buildings based on
enemy unit class
 Project: Freeciv
Submitted by: cazfi
Submitted on: Friday 06/12/2009 at 04:06
Category: None
Severity: 3 - Normal
Priority: 1 - Later
  Status: None
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Discussion Lock: Any
 Release: 
Operating System: None

___

Details:

There is no move type requirement type. Yet AI tries to evaluate buildings
giving defense bonuses based on attacker move type, and not class. This leads
to situations where AI builds, in response to some danger, buildings that do
not actually help against that danger.

With attached patch AI checks that defense building it considers to build
actually works against attacker class. Number of lesser bugs is fixed with
this rewrite (and some new ones added as AI code interfaces are anything but
clean and up to date with other codebase)

Also, this gets rid of one more is_air_unit() call (in assumption that
defense buildings working against land units never work against air units)



___

File Attachments:


---
Date: Friday 06/12/2009 at 04:06  Name: DefenseAgainstClass.diff  Size: 7kB  
By: cazfi



___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev