Class GameController

java.lang.Object
de.tum.cit.fop.maze.MVC.GameController

public class GameController extends Object
Main game controller handling input, updates, and game logic.
  • Constructor Details

  • 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

      public SoundController getSoundController()
      Gets the game controller's sound controller.
      Returns:
      The sound controller instance
    • setGameField

      public void setGameField(GameField newMap)
      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

      public WaveManager getWaveManager()
      Gets the wave manager for endless mode.
      Returns:
      The wave manager instance
    • setWaveManager

      public void setWaveManager(WaveManager waveManager)
      Sets the wave manager for endless mode.
      Parameters:
      waveManager - The wave manager to set