org.vizzini.ui.game
Class AbstractTokenUIText

java.lang.Object
  extended by org.vizzini.ui.game.AbstractTokenUIText
All Implemented Interfaces:
IStateful, ITokenUI

public abstract class AbstractTokenUIText
extends Object
implements ITokenUI

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

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

Constructor Summary
AbstractTokenUIText()
           
 
Method Summary
 void configure(Properties properties, int index)
          Configure this token.
 IToken getToken()
          Return this token's agent.
 void setToken(IToken token)
          Set the associated token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.vizzini.math.IStateful
getAbsoluteState, getState, getStatefulParent, setStatefulParent
 

Constructor Detail

AbstractTokenUIText

public AbstractTokenUIText()
Method Detail

configure

public void configure(Properties properties,
                      int index)
               throws InstantiationException,
                      IllegalAccessException
Configure this token.

Specified by:
configure in interface ITokenUI
Parameters:
properties - Source of configuration information.
index - Index of this token's properties.
Throws:
InstantiationException
IllegalAccessException
Since:
v0.3

getToken

public IToken getToken()
Return this token's agent.

Specified by:
getToken in interface ITokenUI
Since:
v0.1

setToken

public void setToken(IToken token)
Set the associated token.

Specified by:
setToken in interface ITokenUI
Parameters:
token - The associated token.
Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02