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

public class FenceComponent extends Component
  • 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.
      Overrides:
      create in class Component
    • 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.