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.
sleepOffset
int sleepOffset
- An offset that can be used to control the sleep time, while keeping the base sleep time the same.
propertySupport
java.beans.PropertyChangeSupport propertySupport
- The property change support for when a property changes.
message
javax.swing.JTextArea message
- the Text area that contains the message.
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.lang.String currentPlayer
- The color of the current player.
validSound
SoundSprite validSound
- The sound to play when a valid move is made.
invalidSound
SoundSprite invalidSound
- The sound to play when a invalid move is made.
mute
boolean mute
- The mute state of the sound.
enemyOver
java.awt.Point enemyOver
- A representation of the point the enemy is currently over.
propertySupport
java.beans.PropertyChangeSupport propertySupport
- The property change support for when a property changes.
theSprite
AnimateImageSprite 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.lang.String currentPlayer
flipSound
SoundSprite flipSound
- The sound to play when flipped.
mute
boolean mute
- The mute for the sound.
flipping
boolean flipping
- The current flip status.
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.
theImage
AnimateImageSprite theImage
- The image sprite. This may be defined and can be used to indicate that although it appears as if nothing is occuring, the thread is still alive.
sound
SoundSprite sound
- The sound to be played.
mute
boolean mute
- The mute state of the sound.
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.
soundOn
javax.swing.JCheckBoxMenuItem soundOn
- Turn the sound on or off.
previousPauseState
boolean previousPauseState
- The pause state of the game.
comms
NetComms comms
- The communication panel. Handles communication and can be displayed to show comm status.
player
java.lang.String player
- The string representing the player.
introSplash
SplashPanel introSplash
- The splash panel used throughout the game.
waitingForColor
boolean waitingForColor
- Status of waiting for the color.
debug
boolean debug
- Used for debugging. Set to true for debugging.
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.
socket
java.net.Socket 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
ServerComms reciever
sender
SocketComms 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
server
java.net.ServerSocket server
out
java.io.PrintWriter out
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.
theImage
java.awt.image.BufferedImage[] theImage
imageCount
int imageCount
baseImageName
java.lang.String baseImageName
baseImageExt
java.lang.String baseImageExt
imageOn
int imageOn
start
int start
imageDirection
int imageDirection
transparentColor
int transparentColor
transparent
boolean transparent
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
|
Package sprite.spritesound |
fileName
java.lang.String fileName
clip
javax.sound.sampled.Clip clip
isLooping
boolean isLooping
isPlaying
boolean isPlaying
df
java.text.DecimalFormat df