URL:
<http://gna.org/patch/?5673>
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
<http://gna.org/patch/download.php?file_id=23404>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?5673>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev