Class BuildingSpecification
java.lang.Object
com.deco2800.game.areas.MapGenerator.Buildings.BuildingSpecification
-
Constructor Summary
ConstructorsConstructorDescriptionBuildingSpecification(String name, int width, int height, String door, int num) Construct a new BuildingSpecification -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.badlogic.gdx.math.GridPoint2getDoor()intgetName()intgetNum()intgetWidth()inthashCode()voidIncrements the amount of buildings counterintReturns the number of buildings still to be placedintReturns the number of buildings to place in the game.voidtoString()
-
Constructor Details
-
BuildingSpecification
Construct a new BuildingSpecification- Parameters:
name- name of buildingwidth- width in tilesheight- height in tilesdoor- coordinates of the building doornum- number of this building to place
-
-
Method Details
-
numToBuild
public int numToBuild()Returns the number of buildings to place in the game.- Returns:
- number of buildings to place
-
numRemaining
public int numRemaining()Returns the number of buildings still to be placed- Returns:
- Number of buildings of this type to place
-
incNumPlaced
public void incNumPlaced()Increments the amount of buildings counter -
getName
-
getHeight
public int getHeight() -
getWidth
public int getWidth() -
getDoor
public com.badlogic.gdx.math.GridPoint2 getDoor() -
resetPlacements
public void resetPlacements() -
getNum
public int getNum() -
toString
-
equals
-
hashCode
public int hashCode()
-