Class LadderRungComponent

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.ladders.LadderRungComponent

public class LadderRungComponent extends Component
  • Constructor Details

    • LadderRungComponent

      public LadderRungComponent(String id, int rungIdx)
  • Method Details

    • create

      public void create()
      Description copied from class: Component
      Called when the entity is created and registered. Initial logic such as calls to GetComponent should be made here, not in the constructor which is called before an entity is finished.
      Overrides:
      create in class Component
    • show

      public void show()
    • hide

      public void hide()
    • getId

      public String getId()
    • getRungIdx

      public int getRungIdx()
    • getVisiblePos

      public com.badlogic.gdx.math.Vector2 getVisiblePos()
    • setVisiblePos

      public void setVisiblePos(com.badlogic.gdx.math.Vector2 visiblePos)