Class FriendlyComponent
java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.friendly.FriendlyComponent
Component to indicate that this Entity is friendly - used by the gate to
distinguish friendly entities.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getId()
Returns unique identifier ID for this friendly unitMethods inherited from class com.deco2800.game.components.Component
create, dispose, earlyUpdate, getEntity, isAnimationRenderComponent, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Field Details
-
globalFriendlyId
public static int globalFriendlyId -
friendlyId
public int friendlyId
-
-
Constructor Details
-
FriendlyComponent
public FriendlyComponent()
-
-
Method Details
-
getId
public int getId()Returns unique identifier ID for this friendly unit- Returns:
- id number identifying a friendly unit
-