Class BombshipFactory
java.lang.Object
com.csse3200.game.entities.factories.BombshipFactory
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 Details
-
createBombship
Creates an Engineer entity, based on a base Human entity, with the appropriate components and animations- Returns:
- entity
-
createBaseshipNPC
Creates a generic human npc to be used as a base entity by more specific NPC creation methods.- Returns:
- entity
-