de.adom.jade.world.maps
Class BuildingCreator

java.lang.Object
  extended by de.adom.jade.world.maps.AreaCreator
      extended by de.adom.jade.world.maps.BuildingCreator

public class BuildingCreator
extends AreaCreator

Creates a predefined number of building.


Constructor Summary
BuildingCreator(java.lang.String widthDiceString, java.lang.String heightDiceString, int count)
          Defines a building creator for a number of buildings.
 
Method Summary
protected  Area createAreaImpl(int x1, int y1, int x2, int y2)
          Creates a new area.
 
Methods inherited from class de.adom.jade.world.maps.AreaCreator
createArea, hasMoreAreas
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildingCreator

public BuildingCreator(java.lang.String widthDiceString,
                       java.lang.String heightDiceString,
                       int count)
Defines a building creator for a number of buildings.

Parameters:
widthDice - the dice used to define the width
heightDice - the dice used to define the height
count - the number of buildings
Method Detail

createAreaImpl

protected Area createAreaImpl(int x1,
                              int y1,
                              int x2,
                              int y2)
Description copied from class: AreaCreator
Creates a new area.

Specified by:
createAreaImpl in class AreaCreator
Parameters:
x1 - the left x position of the area
y1 - the left y position of the area
x2 - the right x position of the area
y2 - the right y position of the area
Returns:
an area with the predefined size
See Also:
AreaCreator.createAreaImpl(int, int, int, int)