Class AchievementsBonusItems

java.lang.Object
com.deco2800.game.components.achievements.AchievementsBonusItems

public class AchievementsBonusItems
extends java.lang.Object
The AchievementsBonusItems class is used to spawn bonus items at the game world when there is a achievement unlocked by the player character
  • Constructor Summary

    Constructors 
    Constructor Description
    AchievementsBonusItems​(Entity target)  
  • Method Summary

    Modifier and Type Method Description
    Entity getTarget()  
    void setBonusItem()
    adding a "spawnBonusItem" event for the AchievementsHelper and it could triggered when the player character unlocked one achievement
    void spawnBonusItem()
    This func is used to spawn bonus items at the game world when an achievement is triggered.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getTarget

      public Entity getTarget()
    • setBonusItem

      public void setBonusItem()
      adding a "spawnBonusItem" event for the AchievementsHelper and it could triggered when the player character unlocked one achievement
    • spawnBonusItem

      public void spawnBonusItem()
      This func is used to spawn bonus items at the game world when an achievement is triggered. The type of bonus items spawned is random.