battlehex.model.command
Class MapGenerator

java.lang.Object
  extended bybattlehex.model.command.MapGenerator

public class MapGenerator
extends java.lang.Object

Provides map random creation.

Version:
$Revision: 1.5 $ $Date: 2005/08/26 18:10:10 $
Author:
Mathieu Champlon

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

MapGenerator

public MapGenerator(ITileFactory factory)
Create a map generator.

Parameters:
factory - the tile factory
Method Detail

populate

public final 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.

Parameters:
coordinatesIterator - the coordinates to iterate over
playersIterator - the players to distribute the tiles among
tilesPerPlayer - the number of tiles per player


Copyright © 2004-2005 . All Rights Reserved.