|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.game.AbstractEnvironment
org.vizzini.game.cardgame.AbstractCardTable
org.vizzini.example.gin.Environment
public class Environment
Provides a Gin card table.
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 |
---|
public Environment()
Method Detail |
---|
public IAgent getAgentOne()
public IAgent getAgentTwo()
public ICardCollection getHandOne()
public ICardCollection getHandTwo()
public ITeam getTeamOne()
public ITeam getTeamTwo()
public void reset()
reset
in interface IEnvironment
reset
in class AbstractCardTable
protected IAgent getAgent(ITeam team)
protected ICardCollection getHand(IAgent agent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |