Class LadderRungComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.ladders.LadderRungComponent
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()Called when the entity is created and registered.getId()intcom.badlogic.gdx.math.Vector2voidhide()voidsetVisiblePos(com.badlogic.gdx.math.Vector2 visiblePos) voidshow()Methods inherited from class com.csse3200.game.components.Component
dispose, earlyUpdate, getEntity, getPrio, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
LadderRungComponent
-
-
Method Details
-
create
public void create()Description copied from class:ComponentCalled 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. -
show
public void show() -
hide
public void hide() -
getId
-
getRungIdx
public int getRungIdx() -
getVisiblePos
public com.badlogic.gdx.math.Vector2 getVisiblePos() -
setVisiblePos
public void setVisiblePos(com.badlogic.gdx.math.Vector2 visiblePos)
-