java.lang.Object
com.deco2800.game.areas.MapGenerator.Buildings.Building

public class Building extends Object
  • Constructor Details

    • Building

      public Building(int width, int height, String name, com.badlogic.gdx.math.GridPoint2 door)
  • 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

      public String 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

      public void setPlacement(Coordinate placement)
      Sets this building's placement to a desired coordinate
      Parameters:
      placement - coordinate within city bounds to place building
    • getPlacement

      public Coordinate getPlacement()
      Returns the placement of this building
      Returns:
      placement of building relative to city bounds