Class EngineerFactory
java.lang.Object
com.csse3200.game.entities.factories.EngineerFactory
Factory to create non-playable human character (NPC) entities with predefined components.
These may be modified to become controllable characters in future sprints.
Each NPC entity type should have a creation method that returns a corresponding entity. Predefined entity properties can be loaded from configs stored as json files which are defined in "NPCConfigs".
If needed, this factory can be separated into more specific factories for entities with similar characteristics.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AnimationRenderComponent
static Entity
Creates a generic human npc to be used as a base entity by more specific NPC creation methods.static Entity
Creates an Engineer entity, based on a base Human entity, with the appropriate components and animations
-
Method Details
-
createEngineer
Creates an Engineer entity, based on a base Human entity, with the appropriate components and animations- Returns:
- entity
-
createAnimationRenderComponent
-
createBaseHumanNPC
Creates a generic human npc to be used as a base entity by more specific NPC creation methods.- Returns:
- entity
-