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
static Entity
Create a player entity.static void
setupPlayerAnimator
(AnimationRenderComponent animator) Registers player animations to the AnimationRenderComponent.
-
Method Details
-
createPlayer
Create a player entity.- Returns:
- entity
-
setupPlayerAnimator
Registers player animations to the AnimationRenderComponent. -
createFishingRodAnimatorEntity
-