Class FenceComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.placeables.FenceComponent
- All Implemented Interfaces:
com.badlogic.gdx.utils.Json.Serializable
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets this fence's texture orientation based off the adjacent fences.void
Sets this gate's texture orientation based off the adjacent fences.void
create()
Called when the entity is created and registered.Methods inherited from class com.csse3200.game.components.Component
dispose, earlyUpdate, getEntity, read, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update, write
-
Constructor Details
-
FenceComponent
public FenceComponent(boolean isGate) -
FenceComponent
public FenceComponent()
-
-
Method Details
-
create
public void create()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. -
configFence
public void configFence()Sets this fence's texture orientation based off the adjacent fences. -
configGate
public void configGate()Sets this gate's texture orientation based off the adjacent fences.
-