|
||||||||||
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
public abstract class AbstractCardTable
Provides a regular card deck for card games in the game framework.
Constructor Summary | |
---|---|
AbstractCardTable()
|
Method Summary | |
---|---|
void |
configure(Properties properties)
Configure this environment. |
ICardCollection |
getDiscardPile()
Return the discard pile. |
ICardCollection |
getDrawPile()
Return the draw pile. |
ISuit |
getSuit(String name)
Return the suit with the given name. |
protected void |
performAction(DiscardAction action)
Process a discard action. |
protected void |
performAction(DrawAction action)
Process a draw action. |
void |
performAction(IAction action)
Perform the given action. |
protected void |
performAction(TakeDiscardAction action)
Process a take discard action. |
void |
reset()
Reset this environment. |
void |
undoAction(IAction action)
Undo the given action. |
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 AbstractCardTable()
Method Detail |
---|
public void configure(Properties properties) throws InstantiationException, IllegalAccessException
configure
in interface IEnvironment
configure
in class AbstractEnvironment
properties
- Source of configuration information.
InstantiationException
IllegalAccessException
public ICardCollection getDiscardPile()
public ICardCollection getDrawPile()
public ISuit getSuit(String name)
public void performAction(IAction action)
action
- Action.public void reset()
reset
in interface IEnvironment
reset
in class AbstractEnvironment
public void undoAction(IAction action)
action
- Action.protected void performAction(DiscardAction action)
protected void performAction(DrawAction action)
protected void performAction(TakeDiscardAction action)
|
||||||||||
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 |