Class OrientationComponent

java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.infrastructure.OrientationComponent

public class OrientationComponent extends Component
  • Constructor Details

    • OrientationComponent

      public OrientationComponent(int orientation)
      orientation component constructor initializes entity orientation
      Parameters:
      orientation - of the entity 0 or 1
  • Method Details

    • getOrientation

      public int getOrientation()
      get the orientation of the entity
      Returns:
      orientation of the entity 0 or 1
    • setOrientation

      public void setOrientation(int orientation)
      set the orientation of a structure
      Parameters:
      orientation - of a structure 0 or 1