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.
enemyOver
java.awt.Point enemyOver
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.
playerSet
boolean playerSet
- Whether the player's color has been set or not.
player
java.lang.String player
- The players color.
message
java.lang.String message
- The message displayed in the panel.
splashMessage
java.lang.String[] splashMessage
- The message split into an array based on line breaks.
fontColor
java.awt.Color fontColor
- The color to be used when displaying the message.
fontSize
int fontSize
- The font size to be used. The default value is 14.
gameBoard
OthelloBoard gameBoard
- The panel for the othello game board.
currentPlayer
OthelloCell currentPlayer
- The panel that shows who the current player is.
currentScore
ScorePanel 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.
netMenu
javax.swing.JMenu netMenu
- Menu for network game.
startServer
javax.swing.JMenuItem startServer
- Menu item to start server.
connectNet
javax.swing.JMenuItem connectNet
- Menu item to connect to someone.
previousPauseState
boolean previousPauseState
- The pause state of the game.
comms
NetComms comms
player
java.lang.String player
introSplash
SplashPanel introSplash
waitingForColor
boolean waitingForColor
running
boolean running
runner
java.lang.Thread runner
debug
boolean debug
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.
pauseComms
boolean pauseComms
- The pause state of the game. Nothing is done if the game is paused.
remoteHost
java.lang.String remoteHost
- The string representation of the remote hosts name/ip.
packet
java.net.DatagramPacket packet
- The datagram packet used for communications.
socket
java.net.DatagramSocket socket
- The datagram socket used for communications.
alreadyConnected
boolean alreadyConnected
- Whether comms is connected to a remote host or not.
connectedAddress
java.net.InetAddress connectedAddress
- The raw internet address of the remote Host.
port
int port
- The port to use for communicating.
buffer
byte[] buffer
- The buffer of the data in the Datagram Packet.
ackRequired
boolean ackRequired
- Whether an ack (acknowledgement) is required or not.
propertySupport
java.beans.PropertyChangeSupport propertySupport
- The property change support for when a property changes.
host
javax.swing.JTextField host
listenPort
javax.swing.JTextField listenPort
sendToPort
javax.swing.JTextField sendToPort
hosting
java.lang.String hosting
propertySupport
java.beans.PropertyChangeSupport propertySupport
- The property change support for when a property changes.
reciever
RecieveComms reciever
sender
SendComms sender
connectToName
java.lang.String connectToName
connectToAddress
java.net.InetAddress connectToAddress
connected
boolean connected
sendPort
int sendPort
listenPort
int listenPort
propertySupport
java.beans.PropertyChangeSupport propertySupport
- The property change support for when a property changes.
status
javax.swing.JTextArea status
tempScroll
javax.swing.JScrollPane tempScroll
running
boolean running
runner
java.lang.Thread runner
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