Class BuildingSpecification

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

public class BuildingSpecification extends Object
  • Constructor Details

    • BuildingSpecification

      public BuildingSpecification(String name, int width, int height, String door, int num)
      Construct a new BuildingSpecification
      Parameters:
      name - name of building
      width - width in tiles
      height - height in tiles
      door - coordinates of the building door
      num - 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

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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object