gizmoball.gui
Class ScreenManager

java.lang.Object
  extended by gizmoball.gui.ScreenManager

public class ScreenManager
extends java.lang.Object

Manages screens and provides the screens a way to access the classes they observe.


Method Summary
 void displayKeyInputScreen()
          Displays input screen.
 void displayPlayScreen()
          Displays game screen.
 void focusOnPaletteScreen()
          Requests focus to the palette screen.
 GamePlayModel getGamePlayModel()
          Returns current game model.
 PaletteModel getPaletteModel()
          Returns current palette model.
 java.awt.Rectangle getPlayBounds()
          Returns the bounds of the play screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getGamePlayModel

public GamePlayModel getGamePlayModel()
Returns current game model.

Returns:
gpm

getPaletteModel

public PaletteModel getPaletteModel()
Returns current palette model.

Returns:
gpm

displayPlayScreen

public void displayPlayScreen()
Displays game screen.


displayKeyInputScreen

public void displayKeyInputScreen()
Displays input screen.


getPlayBounds

public java.awt.Rectangle getPlayBounds()
Returns the bounds of the play screen.

Returns:
playScr.getBounds()

focusOnPaletteScreen

public void focusOnPaletteScreen()
Requests focus to the palette screen.