Class Controller

java.lang.Object
nz.ac.vuw.ecs.swen225.gp22.app.Keys
nz.ac.vuw.ecs.swen225.gp22.app.Controller
All Implemented Interfaces:
KeyListener, EventListener

public class Controller extends Keys
Controller that connects key actions to actions.
Author:
Molly
  • Constructor Details

    • Controller

      public Controller(Base b)
      Menu commands, exiting, replaying, making new levels.
      Parameters:
      b - Base that actions happen
    • Controller

      public Controller(Base b, boolean paused)
      Controller for when game is running.
      Parameters:
      b - base which commands get run on
      paused - is the game paused?
    • Controller

      public Controller(Base b, JDialog dialog)
      Controller for Pop-up window.
      Parameters:
      b - current base
      dialog - current pop-up