Package com.deco2800.game.map
Class MapComponent
java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.map.MapComponent
If entity has a MapComponent they are added to the map.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
Called when the entity is created and registered.void
display()
void
dispose()
Called when the component is disposed.com.badlogic.gdx.graphics.Color
getName()
boolean
void
void
setDisplayColour
(com.badlogic.gdx.graphics.Color colour) void
void
update()
Called once per frame of the game, and should be used for most component logic.Methods inherited from class com.deco2800.game.components.Component
earlyUpdate, getEntity, isAnimationRenderComponent, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate
-
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. -
dispose
public void dispose()Description copied from class:Component
Called when the component is disposed. Dispose of any internal resources here. -
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. -
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
-
getName
-