Package de.tum.cit.fop.maze.Gameplay
Class WaveManager
java.lang.Object
de.tum.cit.fop.maze.Gameplay.WaveManager
Manages enemy spawning waves in endless mode with increasing difficulty.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetScore()Calculates the player's score based on survival time.voidsetGameField(GameField newMap) Updates the game field reference for spawning enemies.voidupdate(float delta) Updates wave manager, increasing difficulty and spawning enemies over time.
-
Constructor Details
-
WaveManager
-
-
Method Details
-
getScore
public int getScore()Calculates the player's score based on survival time.- Returns:
- Score value
-
setGameField
Updates the game field reference for spawning enemies.- Parameters:
newMap- The new game field
-
update
public void update(float delta) Updates wave manager, increasing difficulty and spawning enemies over time.- Parameters:
delta- Time since last update
-