org.vizzini.example.gin.ui
Class EnvironmentUIText

java.lang.Object
  extended by org.vizzini.ui.game.AbstractEnvironmentUIText
      extended by org.vizzini.ui.game.cardgame.AbstractCardEnvUIText
          extended by org.vizzini.example.gin.ui.EnvironmentUIText
All Implemented Interfaces:
IScoreListener, IStateListener, IEnvironmentUI, IListener

public class EnvironmentUIText
extends AbstractCardEnvUIText

Provides functionality for a text environment user interface for Gin in the game framework.

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

Constructor Summary
EnvironmentUIText()
           
 
Method Summary
 void stateChange(StateEvent event)
          Respond to state change events.
protected  void writeCard(ICard card, PrintStream out)
          Write the given card to the given print stream.
protected  void writeCards(ITokenCollection cards, PrintStream out)
          Write the given card collection to the given print stream.
 void writeTable(Environment table, PrintStream out)
          Write the given table to the given print stream.
 
Methods inherited from class org.vizzini.ui.game.AbstractEnvironmentUIText
assignAgentListeners, configure, getEnvironment, isAudioOn, removeAgentListeners, reset, scoreChange, setAudioOn, setEnvironment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvironmentUIText

public EnvironmentUIText()
Method Detail

stateChange

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

Since:
v0.1

writeTable

public void writeTable(Environment table,
                       PrintStream out)
Write the given table to the given print stream.

Parameters:
table - The table to write.
out - Print stream to which to write.
Since:
v0.1

writeCard

protected void writeCard(ICard card,
                         PrintStream out)
Write the given card to the given print stream.

Since:
v0.1

writeCards

protected void writeCards(ITokenCollection cards,
                          PrintStream out)
Write the given card collection to the given print stream.

Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02