Class PlayerFactory

java.lang.Object
com.deco2800.game.entities.factories.PlayerFactory

public class PlayerFactory
extends java.lang.Object
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 Type Method Description
    static Entity createPlayer()
    Create a player entity.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createPlayer

      public static Entity createPlayer()
      Create a player entity. Initializes all attached components.
      Returns:
      entity