Class Building
java.lang.Object
com.deco2800.game.areas.MapGenerator.Buildings.Building
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.math.GridPoint2getDoor()Returns the building coordinates of the door.intReturns height of buildinggetName()Returns the name of this buildingReturns the placement of this buildingintgetWidth()Returns width of buildingvoidsetPlacement(Coordinate placement) Sets this building's placement to a desired coordinate
-
Constructor Details
-
Building
-
-
Method Details
-
getWidth
public int getWidth()Returns width of building- Returns:
- width of building
-
getHeight
public int getHeight()Returns height of building- Returns:
- height of building
-
getName
Returns the name of this building- Returns:
- name of building
-
getDoor
public com.badlogic.gdx.math.GridPoint2 getDoor()Returns the building coordinates of the door.- Returns:
- door coodinates
-
setPlacement
Sets this building's placement to a desired coordinate- Parameters:
placement- coordinate within city bounds to place building
-
getPlacement
Returns the placement of this building- Returns:
- placement of building relative to city bounds
-