[Freeciv-Dev] [patch #5673] as_transform_activity_iterate()

2015-01-10 Thread Marko Lindqvist
Update of patch #5673 (project freeciv):

  Status:  Ready For Test => Done   
 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] [patch #5673] as_transform_activity_iterate()

2015-01-04 Thread Marko Lindqvist
URL:
  

 Summary: as_transform_activity_iterate()
 Project: Freeciv
Submitted by: cazfi
Submitted on: Mon 05 Jan 2015 09:57:35 AM EET
Category: ai
Priority: 5 - Normal
  Status: Ready For Test
 Privacy: Public
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Discussion Lock: Any
 Planned Release: 2.6.0, 3.0.0

___

Details:

Add autosettler activity iterator as_transform_activity_iterate(). Unlike
activity_type_iterate() it goes through only the activities autosettler really
is interested about, excluding road and base building activities that are
handled in their own loops.
Immediate gain is that there's no unnecessary processing of activities we're
not interested about, but the real goal of this patch is refactoring the
autosettler code for making further development possible. Both the fact that
there's no need to block some activities *inside* the loops (as only
acceptable ones ever get in in the first place) and that one can add more such
activity lists to iterate over are important.
Name of the iterate macro is a bit misleading at the moment as non-transform
activities of pollution and fallout cleaning are still in this list.

I would make this TRUNK only, if only the default AI was to be considered.
However, planned threaded AI 2.6 autosettlers code will require this.



___

File Attachments:


---
Date: Mon 05 Jan 2015 09:57:35 AM EET  Name: AsTransformActivityIterate.patch 
Size: 10kB   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