Class EntityReward

java.lang.Object
com.csse3200.game.missions.rewards.Reward
com.csse3200.game.missions.rewards.EntityReward

public class EntityReward extends Reward
An Entity Reward class for when a player completes a Quest and receives reward entity as a result
  • Constructor Details

    • EntityReward

      public EntityReward(List<Entity> rewardEntities)
      Constructor for the EntityReward class
      Parameters:
      rewardEntities - The list of entities to be rewarded
  • Method Details

    • collect

      public void collect()
      Collects the reward by spawning the reward entities at the player's position
      Specified by:
      collect in class Reward