public class GameTree extends java.lang.Object implements ConstGameTree
| Constructor and Description |
|---|
GameTree() |
GameTree(int boardSize,
Komi komi,
ConstPointList handicap,
java.lang.String rules,
TimeSettings timeSettings) |
GameTree(int boardSize,
Node root)
Probably only needed by SgfReader.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBoardSize() |
GameInfo |
getGameInfo(ConstNode node)
Find the game information valid for this node.
|
ConstGameInfo |
getGameInfoConst(ConstNode node) |
Node |
getGameInfoNode(ConstNode node)
Find the node with game information valid for this node.
|
Node |
getNode(ConstNode node)
Get a non-const reference to a const node.
|
Node |
getRoot() |
ConstNode |
getRootConst() |
boolean |
hasVariations() |
void |
keepOnlyMainVariation() |
public GameTree()
public GameTree(int boardSize,
Komi komi,
ConstPointList handicap,
java.lang.String rules,
TimeSettings timeSettings)
public GameTree(int boardSize,
Node root)
public int getBoardSize()
getBoardSize in interface ConstGameTreepublic GameInfo getGameInfo(ConstNode node)
public Node getGameInfoNode(ConstNode node)
public ConstGameInfo getGameInfoConst(ConstNode node)
getGameInfoConst in interface ConstGameTreegetGameInfo(net.sf.gogui.game.ConstNode)public Node getNode(ConstNode node)
public Node getRoot()
public ConstNode getRootConst()
getRootConst in interface ConstGameTreepublic boolean hasVariations()
hasVariations in interface ConstGameTreepublic void keepOnlyMainVariation()