org.vizzini.game.boardgame
Class DefaultBoardGameToken

java.lang.Object
  extended by org.vizzini.game.AbstractToken
      extended by org.vizzini.game.DefaultToken
          extended by org.vizzini.game.boardgame.DefaultBoardGameToken
All Implemented Interfaces:
Serializable, Cloneable, IBoardGameToken, IToken

public class DefaultBoardGameToken
extends DefaultToken
implements IBoardGameToken

Provides a default token for the game framework.

Since:
v0.1
Version:
v0.3
Author:
Jeffrey M. Thompson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.vizzini.game.AbstractToken
UNKNOWN_NAME
 
Fields inherited from interface org.vizzini.game.IToken
AGENT_PROPERTY, NAME_PROPERTY, POSITION_PROPERTY, TEAM_PROPERTY
 
Constructor Summary
DefaultBoardGameToken()
          Construct this object.
 
Method Summary
 List getPossibleActions(IAgent agent0, IEnvironment environment, IAdjudicator adjudicator)
          Return a list of possible actions.
 
Methods inherited from class org.vizzini.game.DefaultToken
configure
 
Methods inherited from class org.vizzini.game.AbstractToken
addPropertyChangeListener, clone, copy, equals, getAgent, getIndex, getName, getPosition, getPropertyChangeManager, getTeam, getValue, hashCode, isFiringPositionChanges, removePropertyChangeListener, setAgent, setFiringPositionChanges, setIndex, setName, setPosition, setTeam, setValue, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.vizzini.game.IToken
addPropertyChangeListener, clone, configure, getAgent, getIndex, getName, getPosition, getTeam, getValue, removePropertyChangeListener, setAgent, setName, setPosition, setTeam, setValue
 

Constructor Detail

DefaultBoardGameToken

public DefaultBoardGameToken()
Construct this object.

Since:
v0.2
Method Detail

getPossibleActions

public List getPossibleActions(IAgent agent0,
                               IEnvironment environment,
                               IAdjudicator adjudicator)
Return a list of possible actions.

Specified by:
getPossibleActions in interface IBoardGameToken
Parameters:
environment - The current environment.
adjudicator - Adjudicator for determining legal actions.
agent0 - The agent.
Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02