Class Player

    • Constructor Detail

      • Player

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

      • update

        public void update()
        Is run once per frame
        Overrides:
        update in class Entity
      • cleanUp

        public void cleanUp()
        Cleans up hanging data parts
        Overrides:
        cleanUp in class Entity
      • getAmmo

        public int getAmmo()
        Returns:
        the amount of ammo available to the player
      • getFaction

        public Faction getFaction()
        Added for Assessment 2
        Overrides:
        getFaction in class Ship
        Returns:
        the Faction attached to the pirate component of this object