games.strategy.kingstable.ui.display
Class KingsTableDisplay

java.lang.Object
  extended by games.strategy.kingstable.ui.display.KingsTableDisplay
All Implemented Interfaces:
IDisplay, IChannelSubscribor, IKingsTableDisplay

public class KingsTableDisplay
extends java.lang.Object
implements IKingsTableDisplay

Display for a King's Table game.

Version:
$LastChangedDate: 2007-07-07 13:15:40 -0700 (Sat, 07 Jul 2007) $
Author:
Lane Schwartz

Constructor Summary
KingsTableDisplay(KingsTableFrame ui)
          Construct a new display for a King's Table game.
 
Method Summary
 void initialize(IDisplayBridge bridge)
          before recieving messages, this method will be called by the game engine.
 void performPlay(Territory start, Territory end, java.util.Collection<Territory> captured)
          Ask the user interface for this display to process a play and zero or more captures.
 void setGameOver()
          Set the game over status for this display to true.
 void setStatus(java.lang.String status)
          Graphically notify the user of the current game status.
 void shutDown()
          Process a user request to exit the program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KingsTableDisplay

public KingsTableDisplay(KingsTableFrame ui)
Construct a new display for a King's Table game. The display

Parameters:
ui -
See Also:
IDisplay
Method Detail

initialize

public void initialize(IDisplayBridge bridge)
Description copied from interface: IDisplay
before recieving messages, this method will be called by the game engine.

Specified by:
initialize in interface IDisplay
See Also:
IDisplay.initialize(games.strategy.engine.display.IDisplayBridge)

shutDown

public void shutDown()
Process a user request to exit the program.

Specified by:
shutDown in interface IDisplay
See Also:
games.strategy.engine.display.IDisplay#shutdown()

setStatus

public void setStatus(java.lang.String status)
Graphically notify the user of the current game status.

Specified by:
setStatus in interface IKingsTableDisplay
Parameters:
error - the status message to display

setGameOver

public void setGameOver()
Set the game over status for this display to true.

Specified by:
setGameOver in interface IKingsTableDisplay

performPlay

public void performPlay(Territory start,
                        Territory end,
                        java.util.Collection<Territory> captured)
Ask the user interface for this display to process a play and zero or more captures.

Specified by:
performPlay in interface IKingsTableDisplay
Parameters:
start - Territory where the play began
end - Territory where the play ended
captured - Collection of Territorys whose pieces were captured during the play