Class PlayerFactory
java.lang.Object
com.csse3200.game.entities.factories.PlayerFactory
Factory to create a player entity.
Predefined player properties are loaded from a config stored as a json file and should have the properties stores in 'PlayerConfig'.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Entity
createCombatPlayer
(String imagePath) Create a player NPC to spawn in Combatstatic Entity
Creates a boss NPC to be used as a boss entity by more specific NPC creation methods.static Entity
createPlayer
(GdxGame game) static String
-
Method Details
-
createPlayer
-
createCombatPlayer
Create a player NPC to spawn in Combat -
getSelectedAnimalImagePath
-
createCombatPlayerStatic
Creates a boss NPC to be used as a boss entity by more specific NPC creation methods.- Returns:
- entity
-