D G H I M O P R S T W

D

doNextGen() - Method in class org.soder_shef.life.GameOfLife
Runs a single generation of the game of Life and updates the game board.

G

GameBoard - class org.soder_shef.life.GameBoard.
The GameBoard class makes a 2-D board for running Life (or other cellular automata that need a 2-D board with only two states for each cell).
GameBoard(int, int) - Constructor for class org.soder_shef.life.GameBoard
Create a GameBoard with dimensions cols, rows with default cell size (10 pixels).
GameBoard(int, int, int) - Constructor for class org.soder_shef.life.GameBoard
Create a GameBoard with dimensions cols, rows with cell size cellSize.
GameEventHandlerExample - class org.soder_shef.life.GameEventHandlerExample.
Example event handler used by SetupGameOfLifeThread
GameEventHandlerExample(GameBoard) - Constructor for class org.soder_shef.life.GameEventHandlerExample
 
GameOfLife - class org.soder_shef.life.GameOfLife.
The GameOfLife class extends the GameBoard class to include the rules of Conway's original game of Life.
GameOfLife(int, int) - Constructor for class org.soder_shef.life.GameOfLife
Create a new GameOfLife of size cols, rows with default cell size (defined in superclass).
GameOfLife(int, int, int) - Constructor for class org.soder_shef.life.GameOfLife
Create a new GameOfLife of size cols, rows with cell size cellSize.
GameOfLife(GameBoard) - Constructor for class org.soder_shef.life.GameOfLife
Create a new GameOfLife copying GameBoard gb.
getCellSize() - Method in class org.soder_shef.life.GameBoard
Returns the size of an individual cell
getState(int, int) - Method in class org.soder_shef.life.GameBoard
Returns the state of the board at the specified position.

H

height() - Method in class org.soder_shef.life.GameBoard
Returns the height of the board

I

init() - Method in class org.soder_shef.life.SetupLifeAppletExample
 

M

mouseClicked(MouseEvent) - Method in class org.soder_shef.life.GameEventHandlerExample
 
mouseClicked(MouseEvent) - Method in class org.soder_shef.life.RunGameOfLifeThread
 
mouseEntered(MouseEvent) - Method in class org.soder_shef.life.GameEventHandlerExample
 
mouseEntered(MouseEvent) - Method in class org.soder_shef.life.RunGameOfLifeThread
 
mouseExited(MouseEvent) - Method in class org.soder_shef.life.GameEventHandlerExample
 
mouseExited(MouseEvent) - Method in class org.soder_shef.life.RunGameOfLifeThread
 
mousePressed(MouseEvent) - Method in class org.soder_shef.life.GameEventHandlerExample
 
mousePressed(MouseEvent) - Method in class org.soder_shef.life.RunGameOfLifeThread
 
mouseReleased(MouseEvent) - Method in class org.soder_shef.life.GameEventHandlerExample
 
mouseReleased(MouseEvent) - Method in class org.soder_shef.life.RunGameOfLifeThread
 

O

org.soder_shef.life - package org.soder_shef.life
 

P

paint(Graphics) - Method in class org.soder_shef.life.GameBoard
Paints the board.
paintCell(int, int, Graphics) - Method in class org.soder_shef.life.GameBoard
Paints a single sell of the board.

R

RunGameOfLifeThread - class org.soder_shef.life.RunGameOfLifeThread.
Example of running a game of life in its own window using threads.
RunGameOfLifeThread(int, GameBoard) - Constructor for class org.soder_shef.life.RunGameOfLifeThread
 
reset() - Method in class org.soder_shef.life.GameBoard
Resets the board (set all cells to false)
run() - Method in class org.soder_shef.life.RunGameOfLifeThread
 
run() - Method in class org.soder_shef.life.SetupGameOfLifeThread
 

S

SetupGameOfLifeThread - class org.soder_shef.life.SetupGameOfLifeThread.
Example of setting up a game of life in its own window using threads.
SetupGameOfLifeThread(int, int, int) - Constructor for class org.soder_shef.life.SetupGameOfLifeThread
 
SetupLifeAppletExample - class org.soder_shef.life.SetupLifeAppletExample.
Example applet I made to test my Life package
SetupLifeAppletExample() - Constructor for class org.soder_shef.life.SetupLifeAppletExample
 
setState(int, int, boolean) - Method in class org.soder_shef.life.GameBoard
Set the state of the cell at the specified position.

T

toString() - Method in class org.soder_shef.life.GameBoard
Returns a string representation of the board.

W

width() - Method in class org.soder_shef.life.GameBoard
Returns the width of the board

D G H I M O P R S T W