Package de.tum.cit.fop.maze.UI
Class AchievementUI
java.lang.Object
de.tum.cit.fop.maze.UI.AchievementUI
UI component for displaying achievement notifications.
Handles the visual presentation and timing of achievement popups.
-
Constructor Summary
ConstructorsConstructorDescriptionAchievementUI(com.badlogic.gdx.scenes.scene2d.Stage stage, MazeRunnerGame game, SoundController soundController) Constructs an AchievementUI. -
Method Summary
Modifier and TypeMethodDescriptionvoidTriggers the "Cheater!" achievement.voidTriggers the "And so it ends" achievement.voidTriggers the "First blood" achievement.voidTriggers the "Now you see me, now you don't" achievement.voidTriggers the "Thirst for blood" achievement.voidTriggers the "Gamer" achievement.voidTriggers the "Wake up" achievement.voidTriggers the "Graph Dracula" achievement.
-
Constructor Details
-
AchievementUI
public AchievementUI(com.badlogic.gdx.scenes.scene2d.Stage stage, MazeRunnerGame game, SoundController soundController) Constructs an AchievementUI.- Parameters:
stage- The stage to add actors to.game- The main game instance.soundController- The sound controller for playing achievement sounds.
-
-
Method Details
-
startAchievement
public void startAchievement()Triggers the "Wake up" achievement. -
endAchievement
public void endAchievement()Triggers the "And so it ends" achievement. -
firstBloodAchievement
public void firstBloodAchievement()Triggers the "First blood" achievement. -
upgradesAchievement
public void upgradesAchievement()Triggers the "Graph Dracula" achievement. -
killsAchievement
public void killsAchievement()Triggers the "Thirst for blood" achievement. -
invisAchievement
public void invisAchievement()Triggers the "Now you see me, now you don't" achievement. -
consoleAchievement
public void consoleAchievement()Triggers the "Cheater!" achievement. -
pointsAchievement
public void pointsAchievement()Triggers the "Gamer" achievement.
-