Thread: PruneGroup
View Single Post
Old 06-20-2009, 09:17 PM   #7
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,190

Submissions (19)

Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

Quote:
Originally Posted by fX_
what i mean with all that "Enum() groupEnum" banter is does this interrupt older runs? is it possible to interrupt older ForGroup() runs and how?
It is possible if a fitness function itself calls PruneGroup. Since this library supports custom fitness functions, there's no way to ensure that that can't happen, so the code needs to take that possibility into account.

Quote:
Originally Posted by akolyt0r
still you should use private/public for your constants.
No need, the NO_FITNESS_LIMIT is a pretty unique constant name, as for NO_UNIT_LIMIT, I'm thinking of removing it since if you have no unit limit, there's no need to use something as complicated as PruneGroup.
__________________
Anitarf is offline   Reply With Quote