|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrescuecore.tools.mapgenerator.BlocksBuildingGenerator
An abstract class that provides functionality for adding buildings to a RescueMap one city block at a time.
| Constructor Summary | |
BlocksBuildingGenerator()
|
|
| Method Summary | |
void |
addBuildings(RescueMap rm,
int uniformity,
int buildDensity,
java.util.Random rand)
Adds the buildings. |
protected abstract int[][][] |
fillBlock(RescueMap rm,
int[] block,
int buildDensity,
java.util.Random rand)
Give a list of buildings for a block. |
protected abstract int[][][] |
fillOuterBlock(RescueMap rm,
int[] block,
int buildDensity,
java.util.Random rand)
Give a list of buildings for the outside of the city. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BlocksBuildingGenerator()
| Method Detail |
public void addBuildings(RescueMap rm,
int uniformity,
int buildDensity,
java.util.Random rand)
addBuildings in interface BuildingGeneratorrm - The RescueMap to add to.uniformity - The regularity amongst buildings.buildDensity - The density of the buildings.rand - The random number generator.
protected abstract int[][][] fillBlock(RescueMap rm,
int[] block,
int buildDensity,
java.util.Random rand)
rm - The RescueMap containing the block.block - A list of nodes in anti-clockwise order around the block.buildDensity - The density of buildings to add.rand - The random number generator.
protected abstract int[][][] fillOuterBlock(RescueMap rm,
int[] block,
int buildDensity,
java.util.Random rand)
rm - The RescueMap containing the block.block - A list of nodes in anti-clockwise order around the block.buildDensity - The density of buildings to add.rand - The random number generator.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||