org.vizzini.ui.game
Class AbstractGameUIText

java.lang.Object
  extended by org.vizzini.ui.game.AbstractGameUIText
All Implemented Interfaces:
IConcedeListener, IGameListener, IStateListener, IGameUI, IBusyListener, IListener
Direct Known Subclasses:
AbstractCardGameUIText, AbstractChessGameUIText, GameUIText, GameUIText

public abstract class AbstractGameUIText
extends Object
implements IGameUI

Provides base functionality for text game user interfaces in the game framework.

Since:
v0.1
Version:
v0.2
Author:
Jeffrey M. Thompson

Constructor Summary
AbstractGameUIText()
          Construct this object.
 
Method Summary
 void busy(BusyEvent event)
          Respond to busy events.
 void concede(ConcedeEvent event)
          Respond to concede events.
protected  void createAgents()
          Create the agents for this game.
 void gameChange(GameEvent event)
          Respond to game events.
 IEnvironmentUI getEnvironmentUI()
          Return the environment user interface component.
 IGame getGame()
          Return the game component.
protected  GameUISupport getGameUISupport()
          Return the game UI support object.
protected  Properties getProperties()
          Return the configuration properties.
 void init()
          Initialize this applet.
protected  String readInput()
          Read string input from standard in until a carriage return is read.
 void start()
          Start this applet.
 void stateChange(StateEvent event)
          Respond to state events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGameUIText

public AbstractGameUIText()
Construct this object.

Since:
v0.1
Method Detail

getEnvironmentUI

public IEnvironmentUI getEnvironmentUI()
Return the environment user interface component.

Specified by:
getEnvironmentUI in interface IGameUI
Since:
v0.1

getGame

public IGame getGame()
Return the game component.

Specified by:
getGame in interface IGameUI
Since:
v0.1

busy

public void busy(BusyEvent event)
Respond to busy events.

Specified by:
busy in interface IBusyListener
Since:
v0.1

concede

public void concede(ConcedeEvent event)
Respond to concede events.

Specified by:
concede in interface IConcedeListener
Since:
v0.1

gameChange

public void gameChange(GameEvent event)
Respond to game events.

Specified by:
gameChange in interface IGameListener
Since:
v0.1

init

public void init()
Initialize this applet.

Specified by:
init in interface IGameUI
Since:
v0.1

start

public void start()
Start this applet.

Specified by:
start in interface IGameUI
Since:
v0.1

stateChange

public void stateChange(StateEvent event)
Respond to state events.

Specified by:
stateChange in interface IStateListener
Since:
v0.2

getGameUISupport

protected GameUISupport getGameUISupport()
Return the game UI support object.

Since:
v0.1

getProperties

protected Properties getProperties()
Return the configuration properties.

Since:
v0.1

createAgents

protected void createAgents()
Create the agents for this game.

Since:
v0.1

readInput

protected String readInput()
Read string input from standard in until a carriage return is read.

Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02