Class MapComponent

java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.map.MapComponent

public class MapComponent extends Component
If entity has a MapComponent they are added to the map.
  • Constructor Details

    • MapComponent

      public MapComponent()
  • 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
    • dispose

      public void dispose()
      Description copied from class: Component
      Called when the component is disposed. Dispose of any internal resources here.
      Overrides:
      dispose in class Component
    • update

      public void update()
      Description copied from class: Component
      Called once per frame of the game, and should be used for most component logic. Not called if component is disabled.
      Overrides:
      update in class Component
    • display

      public void display()
    • noDisplay

      public void noDisplay()
    • isDisplay

      public boolean isDisplay()
    • setDisplayColour

      public void setDisplayColour(com.badlogic.gdx.graphics.Color colour)
    • getColour

      public com.badlogic.gdx.graphics.Color getColour()
    • setName

      public void setName(String name)
    • getName

      public String getName()