Node object for minimax tree.
More...
Node object for minimax tree.
Definition at line 20 of file Node.java.
◆ Node() [1/3]
host.labyrinth.Node.Node |
( |
| ) |
|
|
package |
Null initialize constructor.
Definition at line 25 of file Node.java.
◆ Node() [2/3]
host.labyrinth.Node.Node |
( |
Node |
parent, |
|
|
int |
nodeDepth, |
|
|
int [] |
nodeMove, |
|
|
Board |
nodeBoard, |
|
|
double |
nodeEvaluation |
|
) |
| |
|
package |
The main constructor for the Node.
Definition at line 27 of file Node.java.
◆ Node() [3/3]
host.labyrinth.Node.Node |
( |
Board |
nodeBoard | ) |
|
|
package |
A special constructor for creating a root Node.
Definition at line 37 of file Node.java.
◆ addChild()
boolean host.labyrinth.Node.addChild |
( |
Node |
child | ) |
|
|
package |
Add a child to the tree.
- Parameters
-
- Returns
- the status of the operation
Definition at line 102 of file Node.java.
◆ getChildren()
ArrayList<Node> host.labyrinth.Node.getChildren |
( |
| ) |
|
|
package |
◆ getNodeBoard()
Board host.labyrinth.Node.getNodeBoard |
( |
| ) |
|
|
package |
◆ getNodeDepth()
int host.labyrinth.Node.getNodeDepth |
( |
| ) |
|
|
package |
◆ getNodeEvaluation()
double host.labyrinth.Node.getNodeEvaluation |
( |
| ) |
|
|
package |
get nodeEvluation
Definition at line 62 of file Node.java.
◆ getNodeMove()
int [] host.labyrinth.Node.getNodeMove |
( |
| ) |
|
|
package |
◆ getParent()
Node host.labyrinth.Node.getParent |
( |
| ) |
|
|
package |
◆ getPath()
Node host.labyrinth.Node.getPath |
( |
| ) |
|
|
package |
◆ setChildren()
void host.labyrinth.Node.setChildren |
( |
ArrayList< Node > |
children | ) |
|
|
package |
◆ setNodeBoard()
void host.labyrinth.Node.setNodeBoard |
( |
Board |
nodeBoard | ) |
|
|
package |
◆ setNodeDepth()
void host.labyrinth.Node.setNodeDepth |
( |
int |
nodeDepth | ) |
|
|
package |
◆ setNodeEvaluation()
void host.labyrinth.Node.setNodeEvaluation |
( |
double |
nodeEvaluation | ) |
|
|
package |
set nodeEvaluation
Definition at line 85 of file Node.java.
◆ setNodeMove()
void host.labyrinth.Node.setNodeMove |
( |
int [] |
nodeMove | ) |
|
|
package |
◆ setParent()
void host.labyrinth.Node.setParent |
( |
Node |
parent | ) |
|
|
package |
◆ setPath()
void host.labyrinth.Node.setPath |
( |
Node |
path | ) |
|
|
package |
◆ children
ArrayList<Node> host.labyrinth.Node.children |
|
private |
Fwd reference to leaf Nodes.
Definition at line 112 of file Node.java.
◆ nodeBoard
Board host.labyrinth.Node.nodeBoard |
|
private |
Reference to Board's copy of the current node.
Definition at line 115 of file Node.java.
◆ nodeDepth
int host.labyrinth.Node.nodeDepth |
|
private |
◆ nodeEvaluation
double host.labyrinth.Node.nodeEvaluation |
|
private |
◆ nodeMove
int [] host.labyrinth.Node.nodeMove |
|
private |
The Node's move data [tile, initTile, points, roll].
Definition at line 114 of file Node.java.
◆ parent
Node host.labyrinth.Node.parent |
|
private |
◆ path
Node host.labyrinth.Node.path |
|
private |
The minimax evaluation path.
Definition at line 117 of file Node.java.
The documentation for this class was generated from the following file: