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 ConstGameTree
public GameInfo getGameInfo(ConstNode node)
public Node getGameInfoNode(ConstNode node)
public ConstGameInfo getGameInfoConst(ConstNode node)
getGameInfoConst
in interface ConstGameTree
getGameInfo(net.sf.gogui.game.ConstNode)
public Node getNode(ConstNode node)
public Node getRoot()
public ConstNode getRootConst()
getRootConst
in interface ConstGameTree
public boolean hasVariations()
hasVariations
in interface ConstGameTree
public void keepOnlyMainVariation()