All Packages Class Hierarchy
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
_
Index of all Fields and Methods
- addChild(TreeNode).
Method in class TreeNode
-
Adds a node to then end of this node's child list and updates the child's
parent node to be this node.
- addContinuationItems(OTNode).
Method in class ListPanel
-
Adds the continuations of the given node's opening to the list.
- addItem(OTNode).
Method in class ListPanel
-
Adds the given node's opening to the list.
- atLastMove().
Method in class Othello
-
Returns whether or not the current move is the last of the selected
opening.
- Board(Othello).
Constructor for class Board
-
Board class constructor.
- child().
Method in class TreeNode
-
Gets the first child of this node.
- clear().
Method in class Board
-
Sets the data structures back to their initial state.
- constrain(Container, Component, int, int, int, int).
Method in class GBHelper
-
- constrain(Container, Component, int, int, int, int, int, int, int, int).
Method in class GBHelper
-
- constrainFill(Container, Component, int, int, int, int).
Method in class GBHelper
-
- constrainFill(Container, Component, int, int, int, int, int, int, int, int).
Method in class GBHelper
-
- continuationsOnlyChangedCallback(boolean).
Method in class Othello
-
Updates the list when the user clicks on the Continuations Only
toggle button.
- data().
Method in class OTNode
-
Gets the opening data associated with this node.
- firstMove().
Method in class Othello
-
Sets the current move of the selected opening to the first move.
- frequency().
Method in class Opening
-
Gets the frequency of this opening.
- frequencyPercent().
Method in class Opening
-
Gets the frequency percentage of this opening.
- GBHelper().
Constructor for class GBHelper
-
- getMinimumSize().
Method in class Board
-
Calculates the size of the board.
- init().
Method in class Board
-
Creates the needed fonts, loads the disc images and initializes the
data structures.
- init().
Method in class Othello
-
Creates the user interface, reads "openings.txt" and "orientations.txt",
fills the openings list.
- initialSetup().
Method in class Othello
-
Returns whether or not the current state of the board is the initial
setup that contains only the four inner discs.
- IntHolder().
Constructor for class IntHolder
-
- ListItem().
Constructor for class ListItem
-
- ListPanel(Othello).
Constructor for class ListPanel
-
Creates the interface components.
- listSelectCallback(OTNode, boolean).
Method in class Othello
-
Called when an opening is selected from the list, this method updates
the interface to display the new opening.
- move().
Method in class OTNode
-
Gets the move associated with this node.
- moves().
Method in class Opening
-
Gets the complete move string of this opening.
- name().
Method in class Opening
-
Gets the name of this opening.
- next().
Method in class Node
-
Gets the next node from this node.
- nextMove().
Method in class Othello
-
Sets the current move of ths selected opening to the next move.
- Node().
Constructor for class Node
-
The Node constructor.
- Opening().
Constructor for class Opening
-
The Opening constructor.
- Othello().
Constructor for class Othello
-
- otNode().
Method in class ListItem
-
Gets the opening tree node for this list item.
- OTNode().
Constructor for class OTNode
-
The OTNode constructor.
- paint(Graphics).
Method in class Board
-
Draws the board.
- parent().
Method in class TreeNode
-
Gets the parent of this node.
- placeDisc(int, int, boolean).
Method in class Board
-
Makes one move.
- PlayerThread(Othello).
Constructor for class PlayerThread
-
- previousOpening().
Method in class Othello
-
Finds the parent opening for the current opening and then displays
a list of all child openings of that parent opening.
- println().
Method in class OTNode
-
For debugging purposes only.
- removeAll().
Method in class ListPanel
-
Removes all items from the list.
- run().
Method in class PlayerThread
-
Call this method to start playing through the moves.
- selectItem(OTNode).
Method in class ListPanel
-
Makes the given node's opening selected in the list.
- setData(Opening).
Method in class OTNode
-
Sets the opening data.
- setFrequency(int).
Method in class Opening
-
Sets the frequency of this opening.
- setFrequencyPercent(double).
Method in class Opening
-
Sets the frequency precentage of this opening
- setMove(String).
Method in class OTNode
-
Sets the single move associated with this node.
- setMoves(String).
Method in class Opening
-
Sets the complete move sequence of this opening.
- setName(String).
Method in class Opening
-
Sets the name of this opening.
- setNext(Node).
Method in class Node
-
Sets the next node of this node.
- setOTNode(OTNode).
Method in class ListItem
-
Sets the opening tree node of this list item.
- setParent(TreeNode).
Method in class TreeNode
-
Sets the parent of this node.
- stop().
Method in class Othello
-
Stops playing through the moves of the selected opening.
- TreeNode().
Constructor for class TreeNode
-
The TreeNode constructor.
- update(Graphics).
Method in class Board
-
Draws the board.
- value.
Variable in class IntHolder
-
- _addContinuationItems(OTNode).
Method in class ListPanel
-
Recursively adds all of the continations under the given node.
- _alpha_openings.
Variable in class Othello
-
The top node of the frequency sorted opening nodes.
- _board.
Variable in class Board
-
A 2x2 array of disc types (EMPTY,WHITE,BLACK).
- _board.
Variable in class Othello
-
Handles the drawing of the board.
- _curr_lookup.
Variable in class Othello
-
The current board orientation lookup table.
- _currMove().
Method in class Othello
-
Replays the current move of the selected opening.
- _fillAlphaList().
Method in class Othello
-
Fills the list with all of the openings, sorted by frequency.
- _fillContinuationsList().
Method in class Othello
-
Fills the list with the continuations of the currently selected opening.
- _findTreeNode(String).
Method in class Othello
-
Returns the tree node for the given move sequence.
- _flip(int, int, int, int).
Method in class Board
-
Flips the discs intersecting the placed disc in one direction.
- _getMovePos(String, IntHolder, IntHolder).
Method in class Othello
-
Translates a single move into a row/col pair for the currently selected
board orientation.
- _last_c.
Variable in class Board
-
Used to determine where to draw the last move indicator.
- _last_r.
Variable in class Board
-
Used to determine where to draw the last move indicator.
- _lastMove().
Method in class Othello
-
Makes the remaining number of moves in the selected opening.
- _list_panel.
Variable in class Othello
-
Handles the updating and manipulation of the list.
- _makeMove(String).
Method in class Othello
-
Performs one move by translating the move into a row/col for the
currently selected board orientation.
- _makeMoves(int).
Method in class Othello
-
Makes a number of moves and updates _unplayed_moves.
- _nextMove().
Method in class Othello
-
Makes one additional move of the selected opening.
- _o1_lookup.
Variable in class Othello
-
The base orientation lookup table.
- _o2_lookup.
Variable in class Othello
-
A lookup table for the second board orientation.
- _o3_lookup.
Variable in class Othello
-
A lookup table for the third board orientation.
- _o4_lookup.
Variable in class Othello
-
A lookup table for the fourth board orientation.
- _opening.
Variable in class Othello
-
The current opening.
- _openings.
Variable in class Othello
-
The root node of a hierarchical tree of nodes that is organized by move.
- _paint(Graphics).
Method in class Board
-
Draws the board.
- _parseName(StringTokenizer).
Method in class Othello
-
Parses the opening name from the string.
- _parseOrientation(StringTokenizer, int[]).
Method in class Othello
-
Parses the orientation array from a string.
- _played_moves.
Variable in class Othello
-
Stores the moves of the selected opening that have been made.
- _player_thread.
Variable in class Othello
-
Thread object for playing the moves.
- _prevMove().
Method in class Othello
-
Resets the board and makes one fewer move of the selected opening than
previously was shown.
- _prevOpening(OTNode).
Method in class Othello
-
Returns the parent opening of the given opening.
- _readOpenings().
Method in class Othello
-
Reads and processes "openings.txt".
- _readOrientations().
Method in class Othello
-
Reads "orientations.txt" which contains 3 rows of 64 integer values
that form three of the orientation lookup tables (_o2_lookup,_o3_lookup,
and _o4_lookup).
- _resetBoard().
Method in class Othello
-
Clears the board, initializes the unplayed and played moves.
- _squarePos(int).
Method in class Board
-
Returns the position on the board in pixels for the given row or column.
- _translateMovesString(String).
Method in class Othello
-
Translates a move sequence to the current board orientation.
- _translateRowColumn(IntHolder, IntHolder).
Method in class Othello
-
Translates a row/col pair into a new row/pair for the currently
selected board orientation.
- _unplayed_moves.
Variable in class Othello
-
Stores the moves of the selected opening that have not yet been made.
- _updateBtns().
Method in class Othello
-
Updates the push buttons' enabled/disabled states.
- _updateMoveSequenceLabel().
Method in class Othello
-
Updates the on-screen label with the move string of the selected
opening that has been translated using the current board orientation.