|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGameTree
The IGameTree interface provides a facade to work with a game state space representation.
Method Summary | |
---|---|
IGameNode |
addChild(IGameNode parent,
IGameState child,
IMove[] moves)
Adds a new state to the tree and returns the new generated node. |
IGameNode |
getNextNode(IGameNode parent,
IMove[] moves)
Returns the child game node of a parent which was derived through moves. |
IGameNode |
getRootNode()
Returns the root node of the game tree. |
void |
setTerminal(IGameState terminalState)
Announces a terminal state. |
Method Detail |
---|
IGameNode addChild(IGameNode parent, IGameState child, IMove[] moves)
IGameNode getNextNode(IGameNode parent, IMove[] moves)
IGameNode getRootNode()
void setTerminal(IGameState terminalState)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |