Class EngineerFactory

java.lang.Object
com.csse3200.game.entities.factories.EngineerFactory

public class EngineerFactory extends Object
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

    • createEngineer

      public static Entity createEngineer()
      Creates an Engineer entity, based on a base Human entity, with the appropriate components and animations
      Returns:
      entity
    • createAnimationRenderComponent

      public static AnimationRenderComponent createAnimationRenderComponent()
    • createBaseHumanNPC

      public static Entity createBaseHumanNPC()
      Creates a generic human npc to be used as a base entity by more specific NPC creation methods.
      Returns:
      entity