Class OnTheFlyLegionMove

java.lang.Object
net.sf.colossus.ai.helper.OnTheFlyLegionMove
All Implemented Interfaces:
Iterable<LegionMove>, Collection<LegionMove>

public class OnTheFlyLegionMove extends Object implements Collection<LegionMove>
On-the-fly generation of the Collection of all possible LegionMove. This doesn't fully respect the Collection interface: The random generation may fail before all elements have been returned, so to iterators may return different subsets of the entire collection. Also, this may cause size() to return a value higher than what is really accessible.
Author:
Romain Dolbeau