org.vizzini.example.gin
Class Environment

java.lang.Object
  extended by org.vizzini.game.AbstractEnvironment
      extended by org.vizzini.game.cardgame.AbstractCardTable
          extended by org.vizzini.example.gin.Environment
All Implemented Interfaces:
Serializable, Cloneable, IEnvironment

public class Environment
extends AbstractCardTable

Provides a Gin card table.

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

Constructor Summary
Environment()
           
 
Method Summary
protected  IAgent getAgent(ITeam team)
          Return the first agent for the given team.
 IAgent getAgentOne()
          Return agent one.
 IAgent getAgentTwo()
          Return agent two.
protected  ICardCollection getHand(IAgent agent)
          Return the given agent's hand.
 ICardCollection getHandOne()
          Return agent one's hand.
 ICardCollection getHandTwo()
          Return agent two's hand.
 ITeam getTeamOne()
          Return team one.
 ITeam getTeamTwo()
          Return team two.
 void reset()
          Reset this environment.
 
Methods inherited from class org.vizzini.game.cardgame.AbstractCardTable
configure, getDiscardPile, getDrawPile, getSuit, performAction, performAction, performAction, performAction, undoAction
 
Methods inherited from class org.vizzini.game.AbstractEnvironment
addStateListener, clone, copy, createInitialTokens, equals, get, getAdjudicator, getAgentCollection, getStateManager, getTeamCollection, getTokenCollection, getTokenCollectionClass, getTurnNumber, hashCode, incrementTurnNumber, isFiringStateChanges, open, performActions, removeStateListener, setAdjudicator, setAgentCollection, setFiringStateChanges, setTokenCollectionClass, setTurnNumber, update
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Environment

public Environment()
Method Detail

getAgentOne

public IAgent getAgentOne()
Return agent one.

Since:
v0.1

getAgentTwo

public IAgent getAgentTwo()
Return agent two.

Since:
v0.1

getHandOne

public ICardCollection getHandOne()
Return agent one's hand.

Since:
v0.1

getHandTwo

public ICardCollection getHandTwo()
Return agent two's hand.

Since:
v0.1

getTeamOne

public ITeam getTeamOne()
Return team one.

Since:
v0.1

getTeamTwo

public ITeam getTeamTwo()
Return team two.

Since:
v0.1

reset

public void reset()
Reset this environment.

Specified by:
reset in interface IEnvironment
Overrides:
reset in class AbstractCardTable
Since:
v0.1

getAgent

protected IAgent getAgent(ITeam team)
Return the first agent for the given team.

Since:
v0.1

getHand

protected ICardCollection getHand(IAgent agent)
Return the given agent's hand.

Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02