Package com.deco2800.game.components.npc
Class EntityClassification
java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.npc.EntityClassification
Classification System for NPC to be used by EffectsNearBY
and other releated checking of entity types
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Types of entities -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor method for Entity Classification -
Method Summary
Modifier and TypeMethodDescriptionvoid
Set entity type, useful for reassigning ENEMY to BOSSMethods inherited from class com.deco2800.game.components.Component
create, dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
EntityClassification
Constructor method for Entity Classification- Parameters:
type
- the type of entity
-
-
Method Details
-
setEntityType
Set entity type, useful for reassigning ENEMY to BOSS- Parameters:
type
- NPCClassifcation to set
-
getEntityType
- Returns:
- Returns the entity type
-