Package de.tum.cit.fop.maze.MVC
Class GameController
java.lang.Object
de.tum.cit.fop.maze.MVC.GameController
Main game controller handling input, updates, and game logic.
-
Constructor Summary
ConstructorsConstructorDescriptionGameController(MazeRunnerGame game, Player player, HUD hud, GameField gameField, SoundController gameScreenSoundController, GameScreen gameScreen) -
Method Summary
Modifier and TypeMethodDescriptionGets the game controller's sound controller.Gets the wave manager for endless mode.voidsetGameField(GameField newMap) Updates the game field reference.voidsetWaveManager(WaveManager waveManager) Sets the wave manager for endless mode.voidGenerates and transitions to the next level in endless mode.voidupdate(float delta) Main update loop handling player state, input, and game objects.
-
Constructor Details
-
GameController
public GameController(MazeRunnerGame game, Player player, HUD hud, GameField gameField, SoundController gameScreenSoundController, GameScreen gameScreen)
-
-
Method Details
-
update
public void update(float delta) Main update loop handling player state, input, and game objects.- Parameters:
delta- Time since last update
-
getSoundController
Gets the game controller's sound controller.- Returns:
- The sound controller instance
-
setGameField
Updates the game field reference.- Parameters:
newMap- The new game field
-
startNextLevel
public void startNextLevel()Generates and transitions to the next level in endless mode. -
getWaveManager
Gets the wave manager for endless mode.- Returns:
- The wave manager instance
-
setWaveManager
Sets the wave manager for endless mode.- Parameters:
waveManager- The wave manager to set
-