public static class GridMapUtil.EnumerateSpawnSpecGenerator extends Object implements SpawnPoint.SpawnSpecGenerator
| Constructor and Description |
|---|
GridMapUtil.EnumerateSpawnSpecGenerator(SpawnPoint spawnPoint,
List<Road> destinationRoads,
double initSpawnTime,
double spawnPeriod)
Create a spawn spec generator that enumerates spawn spec.
|
public GridMapUtil.EnumerateSpawnSpecGenerator(SpawnPoint spawnPoint, List<Road> destinationRoads, double initSpawnTime, double spawnPeriod)
spawnPoint - the spawn pointdestinationRoads - the list of destination roadsinitSpawnTime - the initial spawn timespawnPeriod - the spawn periodpublic List<SpawnPoint.SpawnSpec> act(SpawnPoint spawnPoint, double timeStep)
act in interface SpawnPoint.SpawnSpecGeneratorspawnPoint - the spawn pointtimeStep - the time stepCopyright © 2013. All rights reserved.