Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
B
C
D
E
G
H
I
L
M
N
O
P
R
S
T
V
W
X
A
about
- Variable in class Contest1.
GameController
aboutThis
- Variable in class Contest1.
GameController
AboutThis
- class Contest1.
AboutThis
.
A simple class to show an "about" dialog for this contest solution.
AboutThis()
- Constructor for class Contest1.
AboutThis
Default constructor.
assignNeighbors(int, int)
- Method in class Contest1.
Cell
Assigns the neighbors of this cell.
B
Board
- class Contest1.
Board
.
Board is the container class for a Game Board.
Board()
- Constructor for class Contest1.
Board
Class construtor.
boundary
- Variable in class Contest1.
GameBoard
The boundary of the virtual board.
C
ccols
- Variable in class Contest1.
GameBoard
The number of visible cell columns.
Cell
- class Contest1.
Cell
.
Cell is a class that represents a triangular cell on the game board.
cell_color
- Variable in class Contest1.
GameBoard
The color of the cells.
Cell(int, int, Point, Dimension, boolean)
- Constructor for class Contest1.
Cell
Constructor for a triangularly shaped cell.
cells
- Variable in class Contest1.
GameBoard
The board's cells.
center
- Variable in class Contest1.
GameController
changeState()
- Method in class Contest1.
Cell
Switch the boolean state of cell's isalive value.
clearBoard()
- Method in class Contest1.
GameBoard
Clear the game board.
columns
- Static variable in class Contest1.
Config
The number of columns of cells on game board.
come2life
- Static variable in class Contest1.
Config
The exact number of live neighbors required for a cell to come to life in the next generation.
Config
- class Contest1.
Config
.
A class that provides support for game board parameters and initial configurations.
Config()
- Constructor for class Contest1.
Config
Contest1
- package Contest1
crows
- Variable in class Contest1.
GameBoard
The number of visible cell rows.
D
default_cursor
- Variable in class Contest1.
GameBoard.Mlistener
die()
- Method in class Contest1.
Cell
Sets the value of cell's isalive variable to
false
.
E
exit
- Variable in class Contest1.
GameController
exit(ActionEvent)
- Method in class Contest1.
GameController
G
gameboard
- Variable in class Contest1.
GameController
gameboard
- Variable in class Contest1.
Board
The GameBoard to contain.
GameBoard
- class Contest1.
GameBoard
.
A class that represents a Game Board.
GameBoard.Mlistener
- class Contest1.
GameBoard.Mlistener
.
A class that handles mouse events on the board.
GameBoard.Mlistener(GameBoard)
- Constructor for class Contest1.
GameBoard.Mlistener
GameBoard()
- Constructor for class Contest1.
GameBoard
The default constructor.
GameBoard(int, int)
- Constructor for class Contest1.
GameBoard
Constructor.
gameControl(ActionEvent)
- Method in class Contest1.
GameController
GameController
- class Contest1.
GameController
.
A class that represents a Game Controller.
GameController(GameBoard)
- Constructor for class Contest1.
GameController
Constructor.
GameOfLife
- class Contest1.
GameOfLife
.
A class that represents a Game Of Life.
GameOfLife()
- Constructor for class Contest1.
GameOfLife
Default constructor.
generation
- Variable in class Contest1.
GameBoard
The current generation of the board.
getBoundary()
- Method in class Contest1.
GameBoard
Gets the boundary spanned by the virtual rows and columns.
getCells()
- Method in class Contest1.
GameBoard
Gets this game board's cells.
getGameBoard()
- Method in class Contest1.
Board
Gets the game board managed by this container.
getGeneration()
- Method in class Contest1.
GameBoard
Gets the current generation.
getNeighbors()
- Method in class Contest1.
Cell
Gets the cell's neighbors.
getVisibleRowColumnOffset()
- Method in class Contest1.
GameBoard
Gets the row and column offset of the origin of the visible portion of the game board.
glider
- Variable in class Contest1.
GameController
glider(Cell[][], int)
- Static method in class Contest1.
Config
Initialize a glider configuration near the middle row of the board.
H
hbound
- Static variable in class Contest1.
Config
The maximum number of live neighbors allowed to sustain life in next generation.
I
increment
- Variable in class Contest1.
GameController
isalive
- Variable in class Contest1.
Cell
The state of this cell.
isAlive()
- Method in class Contest1.
Cell
Returns value of isalive variable.
L
layout
- Variable in class Contest1.
GameController
layoutBoard(Cell[][], int[])
- Static method in class Contest1.
Config
Visually verifys the game board dimension as specified in the problem statement.
lbound
- Static variable in class Contest1.
Config
The minimum number of live neighbors required to sustain life in next generation.
live()
- Method in class Contest1.
Cell
Sets value of cell's isalive variable to
true,
.
M
main(String[])
- Static method in class Contest1.
GameOfLife
Main method.
menuBar
- Variable in class Contest1.
GameController
menugame
- Variable in class Contest1.
GameController
mouseEntered(MouseEvent)
- Method in class Contest1.
GameBoard.Mlistener
mouseExited(MouseEvent)
- Method in class Contest1.
GameBoard.Mlistener
mousePressed(MouseEvent)
- Method in class Contest1.
GameBoard.Mlistener
N
neighbors
- Variable in class Contest1.
Cell
Triangles have 12 neighbors.
newGeneration()
- Method in class Contest1.
GameBoard
Advances the board state one generation, obeying the rules of the game.
nextGeneration()
- Method in class Contest1.
GameBoard
Advances the game one generation.
O
oscillator
- Variable in class Contest1.
GameController
oscillator(Cell[][])
- Static method in class Contest1.
Config
Initialize an oscillator configuration near center of board.
P
paintComponent(Graphics)
- Method in class Contest1.
GameBoard
Overrides paintComponent() of JPanel to handle painting the board's graphics Context.
pause
- Variable in class Contest1.
GameController
pauseGame()
- Method in class Contest1.
GameBoard
Pauses the game thread.
point_up
- Variable in class Contest1.
Cell
Tells whether this triangle is situated on baord with its point up or down.
pointDownNeighborCol
- Variable in class Contest1.
Cell
The offset column indicies for "point down" neighbors.
pointDownNeighborRow
- Variable in class Contest1.
Cell
The offset row indicies for "point down" neighbors.
pointUpNeighborCol
- Variable in class Contest1.
Cell
The offset column indicies for "point up" neighbors.
pointUpNeighborRow
- Variable in class Contest1.
Cell
The offset row indicies for "point up" neighbors.
preferred_board_xdimension
- Static variable in class Contest1.
Config
The preferred width of game board.
preferred_board_ydimension
- Static variable in class Contest1.
Config
The preferred height of game board.
processWindowEvent(WindowEvent)
- Method in class Contest1.
GameController
R
randomize
- Variable in class Contest1.
GameController
randomize(Cell[][])
- Static method in class Contest1.
Config
Randomize the initial cell configuartion on the board.
resume
- Variable in class Contest1.
GameController
resumeGame()
- Method in class Contest1.
GameBoard
Resumes the game thread.
row_rect
- Variable in class Contest1.
GameBoard
An array of rectangles that describes the boundary of each cell row.
rows
- Static variable in class Contest1.
Config
The number of rows of cells on game board.
run()
- Method in class Contest1.
GameController
Update the generation counter.
run()
- Method in class Contest1.
GameBoard
Animate the play.
S
sleeptime
- Static variable in class Contest1.
Config
The sleeptime for the generation loop.
south
- Variable in class Contest1.
GameController
startGame
- Variable in class Contest1.
GameController
startGame()
- Method in class Contest1.
GameBoard
Starts the game thread.
startgame(ActionEvent)
- Method in class Contest1.
GameController
statusBar
- Variable in class Contest1.
GameController
stop
- Variable in class Contest1.
GameController
stopGame()
- Method in class Contest1.
GameBoard
Stops the game thread.
T
t
- Variable in class Contest1.
GameController
t
- Variable in class Contest1.
GameBoard
Animation thread.
threadSuspended
- Variable in class Contest1.
GameController
threadSuspended
- Variable in class Contest1.
GameBoard
State of the animation thread.
V
vcols
- Variable in class Contest1.
GameBoard
The number of virtual cell columns.
vrows
- Variable in class Contest1.
GameBoard
The number of virtual cell rows.
W
whatAboutThis(ActionEvent)
- Method in class Contest1.
GameController
X
xhairs
- Variable in class Contest1.
GameBoard.Mlistener
A
B
C
D
E
G
H
I
L
M
N
O
P
R
S
T
V
W
X
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES