Class ClueReward


public class ClueReward extends ItemReward
A reward that spawns a ShipPartTile and ShipDebris on collection.
  • Constructor Details

    • ClueReward

      public ClueReward(Entity clueItem)
  • Method Details

    • collect

      public void collect()
      When called, changes the isCollected variable to true and adds the reward items to the player's inventory. Also spawns a ShipPartTile and ShipDebris around the base location contained in the Map Item. Also plays the success sound effect
      Overrides:
      collect in class ItemReward