Class NPCFactory
java.lang.Object
com.deco2800.game.entities.factories.NPCFactory
Factory to create non-playable character (NPC) entities with predefined components.
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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic EntitycreateBobo(Entity target) static EntitycreateDoris(NpcInteractionDisplay npcInteractionDisplay) static EntitycreateGhost(Entity target) Creates a ghost entity.static EntitycreateGhostKing(Entity target) Creates a ghost king entity.static EntitycreateHeph(NpcInteractionDisplay npcInteractionDisplay) static EntitycreateKnight(Entity target) static EntitycreateMetis(NpcInteractionDisplay npcInteractionDisplay) static Entitystatic EntitycreateNeutralLives(Entity target) static EntitycreateOrpheus(NpcInteractionDisplay npcInteractionDisplay) static EntitycreatePiranha(Entity target) static EntitycreateRobot(Entity target) static EntitycreateSlime(Entity target) static EntitycreateZoe(NpcInteractionDisplay npcInteractionDisplay)
-
Method Details
-
createKnight
-
createRobot
-
createSlime
-
createBobo
-
createPiranha
-
createGhost
Creates a ghost entity.- Parameters:
target- entity to chase- Returns:
- entity
-
createGhostKing
Creates a ghost king entity.- Parameters:
target- entity to chase- Returns:
- entity
-
createZoe
-
createMetis
-
createDoris
-
createHeph
-
createOrpheus
-
createNereus
-
createNeutralLives
-