|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.game.boardgame.action.BoardGameActionFactory
public class BoardGameActionFactory
Provides a factory for game actions.
Constructor Summary | |
---|---|
protected |
BoardGameActionFactory()
Construct this object. |
Method Summary | |
---|---|
IGridBoardAction |
getAction(IGridBoard gridBoard,
IAgent agent,
IntegerPosition position)
Return an action appropriate for the given parameters. |
IGridBoardAction |
getAction(IGridBoard gridBoard,
IAgent agent,
IntegerPosition position,
Class tokenClass)
Return an action appropriate for the given parameters. |
IGridBoardAction |
getAction(IGridBoard gridBoard,
IAgent agent,
IntegerPosition fromPosition,
IntegerPosition toPosition)
Return an action appropriate for the given parameters. |
static BoardGameActionFactory |
getInstance()
Return the singleton instance. |
RedoAction |
getRedoAction(IAgent agent)
Return an RedoAction for the given parameters. |
UndoAction |
getUndoAction(IAgent agent)
Return an UndoAction for the given parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BoardGameActionFactory()
Method Detail |
---|
public static BoardGameActionFactory getInstance()
public IGridBoardAction getAction(IGridBoard gridBoard, IAgent agent, IntegerPosition position)
public IGridBoardAction getAction(IGridBoard gridBoard, IAgent agent, IntegerPosition fromPosition, IntegerPosition toPosition)
public IGridBoardAction getAction(IGridBoard gridBoard, IAgent agent, IntegerPosition position, Class tokenClass)
public RedoAction getRedoAction(IAgent agent)
RedoAction
for the given parameters.
public UndoAction getUndoAction(IAgent agent)
UndoAction
for the given parameters.
|
||||||||||
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 |