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 TypeMethodDescriptionboolean
com.badlogic.gdx.math.GridPoint2
getDoor()
int
getName()
int
getNum()
int
getWidth()
int
hashCode()
void
Increments the amount of buildings counterint
Returns the number of buildings still to be placedint
Returns the number of buildings to place in the game.void
toString()
-
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()
-