Serialized Form
runner
java.lang.Thread runner
- Handles the games animation thread.
running
boolean running
- The current run state of the game. The thread will continue to run while true.
gameFinished
boolean gameFinished
- The status of the game, whether it is finished or not.
notStarted
boolean notStarted
- The state of the start of the game, if it has been started or not.
dbImage
java.awt.Image dbImage
- The double buffer image used to help eliminate flicker.
g2d
java.awt.Graphics2D g2d
- The 2D graphics of dbImage.
pauseGame
boolean pauseGame
- The pause state of the game. Nothing is done if the game is paused.
notMoved
boolean notMoved
- State used to control new direction input from keyboard. Only allows one direction change between worm moves.
level
int level
- The current level the player is on.
board
int board
- The current board layout being played.
bgColor
java.awt.Color bgColor
- The color of the back ground.
gameSleep
int gameSleep
- The game sleep time, decreased as level increases.
propertySupport
java.beans.PropertyChangeSupport propertySupport
- The property change support for when a property changes.
gameBoard
OthelloCell[][] gameBoard
- The cells that make up the game board.
currentPlayer
java.awt.Color currentPlayer
- The color of the current player.
propertySupport
java.beans.PropertyChangeSupport propertySupport
- The property change support for when a property changes.
theSprite
Sprite2D theSprite
- The circle sprite that represents the piece placed by a player.
underSideSprite
Sprite2D underSideSprite
- The circle sprite for the underside.
filled
boolean filled
- If the panel is filled or not.
thePoint
java.awt.Point thePoint
currentPlayer
java.awt.Color currentPlayer
whiteScore
int whiteScore
- The white players score.
blackScore
int blackScore
- The black players score.
gameBoard
OthelloBoard gameBoard
- The panel for the othello game board.
currentPlayer
OthelloCell currentPlayer
- The panel that shows who the current player is.
currentScore
OthelloCell currentScore
- The panel that shows the current score.
theMenuBar
javax.swing.JMenuBar theMenuBar
- The menu bar that displays the menu.
fileMenu
javax.swing.JMenu fileMenu
- The file menu.
startItem
javax.swing.JMenuItem startItem
- The start menu item under the file menu.
previousPauseState
boolean previousPauseState
- The pause state of the game.
propertySupport
java.beans.PropertyChangeSupport propertySupport
- The property change support for when a property changes.
|
Class sprite.Sprite extends java.lang.Object implements Serializable |
propertySupport
java.beans.PropertyChangeSupport propertySupport
- The property change support for when a property changes.
visible
boolean visible
- Whether the sprite is visible or not.
active
boolean active
- Whether the sprite is active or not.
xPosition
double xPosition
- The horizontal x position of the CENTER of the sprite.
yPosition
double yPosition
- The verticle y position of the CENTER of the sprite.
width
int width
- The horizontal width of the sprite.
height
int height
- The verticle height of the sprite.
spriteColor
java.awt.Color spriteColor
- The color of the sprite.
fill
boolean fill
- The fill state of the sprite.
startX
double startX
- starting x position
startY
double startY
- starting y position