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 achievementvoid
spawnBonusItem()
This func is used to spawn bonus items at the game world when an achievement is triggered.
-
Constructor Details
-
Method Details
-
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.
-