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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidSets this fence's texture orientation based off the adjacent fences.voidSets this gate's texture orientation based off the adjacent fences.voidcreate()Called when the entity is created and registered.Methods inherited from class com.csse3200.game.components.Componentdispose, earlyUpdate, getEntity, read, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update, write
- 
Constructor Details- 
FenceComponentpublic FenceComponent(boolean isGate) 
- 
FenceComponentpublic FenceComponent()
 
- 
- 
Method Details- 
createpublic 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.
- 
configFencepublic void configFence()Sets this fence's texture orientation based off the adjacent fences.
- 
configGatepublic void configGate()Sets this gate's texture orientation based off the adjacent fences.
 
-