Class Player

    • Constructor Detail

      • Player

        public Player()
        Adds ship with PlayerController component, loading its speed from GameManager settings.
    • Method Detail

      • getHealth

        public int getHealth()
        Overrides:
        getHealth in class Ship
      • setSpeed

        public void setSpeed​(float newSpeed)
      • addPlunder

        public void addPlunder​(int money)
      • cleanUp

        public void cleanUp()
        Description copied from class: Entity
        Similar to the Component's cleanUp event
        Overrides:
        cleanUp in class Entity
      • getAmmo

        public int getAmmo()