Class ClueReward
java.lang.Object
com.csse3200.game.missions.rewards.Reward
com.csse3200.game.missions.rewards.ItemReward
com.csse3200.game.missions.rewards.ClueReward
A reward that spawns a ShipPartTile and ShipDebris on collection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
collect()
When called, changes the isCollected variable to true and adds the reward items to the player's inventory.Methods inherited from class com.csse3200.game.missions.rewards.Reward
isCollected, read, setCollected
-
Constructor Details
-
ClueReward
-
-
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 classItemReward
-