Package snap.viewx

Class GameController

All Implemented Interfaces:
PropChange.DoChange

public class GameController extends ViewOwner
The controller class for a GameView.
  • Constructor Details

    • GameController

      public GameController()
      Constructor.
  • Method Details

    • isShowControls

      public boolean isShowControls()
      Returns whether to show controls (Act, Run, Reset).
    • createUI

      protected View createUI()
      Override to add controls.
      Overrides:
      createUI in class ViewOwner
    • getGameView

      public GameView getGameView()
      Returns the GameView.
    • resetGameView

      protected void resetGameView()
      Reset GameView.