Package com.csse3200.game.components
Class IdentifierComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.IdentifierComponent
Component that stores a string identifier for an entity.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new IdentifierComponent with the given ID. -
Method Summary
Methods inherited from class com.csse3200.game.components.Component
create, dispose, earlyUpdate, getEntity, getPrio, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
IdentifierComponent
Creates a new IdentifierComponent with the given ID.- Parameters:
id- the identifier string
-
-
Method Details
-
getId
- Returns:
- the identifier string
-