|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object battlehex.model.command.MapGenerator
Provides map random creation.
Constructor Summary | |
MapGenerator(ITileFactory factory)
Create a map generator. |
Method Summary | |
void |
populate(java.util.Iterator coordinatesIterator,
java.util.Iterator playersIterator,
int tilesPerPlayer)
Iterate over coordinates and create tiles for given players according to the number per player specified. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MapGenerator(ITileFactory factory)
factory
- the tile factoryMethod Detail |
public final void populate(java.util.Iterator coordinatesIterator, java.util.Iterator playersIterator, int tilesPerPlayer)
coordinatesIterator
- the coordinates to iterate overplayersIterator
- the players to distribute the tiles amongtilesPerPlayer
- the number of tiles per player
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |