A B C D E F G H I L M N O P R S T U V W

S

ScorePanel - Class in gameboard
Created on November 4, 2006, 8:26 AM
Displays the current score the players, and the color of the player if playing a networked game.
ScorePanel() - Constructor for class gameboard.ScorePanel
Creates a new instance of ScorePanel
sendAckData(String) - Method in class network.NetComms
Originally used to send data that did not require an ack, such as an ack itself.
sendData(String) - Method in class network.NetComms
Originally used to send data that needed an ack.
sendData(String, boolean) - Method in class network.NetComms
Orginally used to send data, the boolean specified whether an ack was required or not.
Now used as a wrapper for sendData2().
sendData2(String) - Method in class network.NetComms
Sends the data using a tcp socket.
sendOpponnentColor() - Method in class main.EangTermProject
Sends the opponents color when requested.
sendPlacedPiece(Point) - Method in class main.EangTermProject
Sends the point when a piece is placed on the board.
sendPosition(Point) - Method in class main.EangTermProject
Sends the position when the mouse is over a valid move.
sendSocket() - Method in class network.SocketComms
Sends the data buffer to the remote host.
ServerComms - Class in network
Created on November 4, 2006, 4:18 PM
t.5 Made changes to communications.
ServerComms() - Constructor for class network.ServerComms
Creates a new instance of ServerComms
setAckRequired(boolean) - Method in class network.AbCommsTCP
Set whether an ack is required or not.
setActive(boolean) - Method in class sprite.Sprite
Sets the active status of the sprite.
setActivePlayer() - Method in class main.EangTermProject
Sets the current active player.
Prevents the game board from recieving events if the player is not the players turn.
setAlreadyConnected(boolean) - Method in class network.AbCommsTCP
Set the connection status of the socket.
setBaseImageExt(String) - Method in class sprite.sprite2d.AnimateImageSprite
Sets the extension to use.
setBaseImageName(String) - Method in class sprite.sprite2d.AnimateImageSprite
Sets the base image name.
setBgColor(Color) - Method in class gameboard.AbsThreadedJP
Sets the color of the background.
setBlackScore(int) - Method in class gameboard.ScorePanel
Sets the black players score.
setBoard(int) - Method in class gameboard.AbsThreadedJP
Sets which board is being used.
setBoardCheck() - Method in class main.EangTermProject
USED FOR DEBUGGING.
Used to test a possible case when the mouse listeners are not correctly reset.
setBoardSkip() - Method in class main.EangTermProject
USED FOR DEBUGGING.
Used to force the white player to have to skip a turn.
setBuffer(byte[]) - Method in class network.AbCommsTCP
Sets the data buffer that is to be sent.
setClip(Clip) - Method in class sprite.spritesound.SoundSprite
Sets the clip.
setCommsConnected(boolean) - Method in class main.EangTermProject
Sets the comms connection state.
setConnected(boolean) - Method in class network.NetComms
Sets whether the socket is connected or not.
setConnectedAddress(InetAddress) - Method in class network.AbCommsTCP
Sets the connected address.
setConnectToAddress(String) - Method in class network.NetComms
Sets the connect addres using a string.
setConnectToAddress(InetAddress) - Method in class network.NetComms
Sets the connect to address.
setConnectToName(String) - Method in class network.NetComms
Sets the name/address to connect to.
setCurrentPlayer(String) - Method in class gameboard.OthelloBoard
Sets the color of the current player.
setCurrentPlayer(String) - Method in class gameboard.OthelloCell
Sets the current player.
setCurrentPlayer() - Method in class main.EangTermProject
Sets the current player color that is placing a piece on the board.
setDf(DecimalFormat) - Method in class sprite.spritesound.SoundSprite
Sets the decimal format.
setEnemyOver(Point, Color) - Method in class gameboard.OthelloBoard
Sets the color of the enemy over the cell specified.
setEnemyPlaced(Point, Color) - Method in class gameboard.OthelloBoard
Sets an enemy's piece on the board.
setFileName(String) - Method in class sprite.spritesound.SoundSprite
Sets the file name.
setFill(boolean) - Method in class sprite.sprite2d.Sprite2D
Sets the fill state of the sprite.
setFilled(boolean) - Method in class gameboard.OthelloCell
Sets the fill state of the sprite.
setFlipSound(SoundSprite) - Method in class gameboard.OthelloCell
Sets the flip sound.
setFontColor(Color) - Method in class gameboard.SplashPanel
Sets the new color for the font.
setFontSize(int) - Method in class gameboard.SplashPanel
Sets the new font size to be used.
setGameSleep(int) - Method in class gameboard.AbsThreadedJP
Sets the sleep time for the animation loop.
setHeight(int) - Method in class sprite.sprite2d.Sprite2D
Sets the height of the sprite.
setHosting() - Method in class network.CommDialog
Sets the dialog when player is hosting.
setHostName(String) - Method in class network.CommDialog
Sets the host name.
setImage(String, String, int, int) - Method in class gameboard.SplashPanel
Sets the image for the image sprite.
Creates a new AnimateImageSprite object.
setImageCount(int) - Method in class sprite.sprite2d.AnimateImageSprite
Sets the number of images in the array.
Used to determine the number of images that need to be loaded.
setImageDirection(int) - Method in class sprite.sprite2d.AnimateImageSprite
Sets the direction of animation.
setImageOn(int) - Method in class sprite.sprite2d.AnimateImageSprite
Sets the current image.
setIsLooping(boolean) - Method in class sprite.spritesound.SoundSprite
Sets the loop state.
setIsPlaying(boolean) - Method in class sprite.spritesound.SoundSprite
Set the current playing state.
setLevel(int) - Method in class gameboard.AbsThreadedJP
Sets the level.
setListenPort(int) - Method in class network.NetComms
Sets the listen port.
setMessage(JTextArea) - Method in class gameboard.InvalidMoveDialog
Sets the message.
setMessage(String) - Method in class gameboard.SplashPanel
Sets the new message to be dispalyed.
setMute(boolean) - Method in class gameboard.OthelloBoard
Sets the mute state.
setMute(boolean) - Method in class gameboard.OthelloCell
Sets the mute state.
setMute(boolean) - Method in class gameboard.SplashPanel
Sets the mute state.
setPanelsVisible(boolean) - Method in class main.EangTermProject
Hides the panels so they do not overlap the splash panel.
setPauseComms(boolean) - Method in class network.AbCommsTCP
Sets the pause state of communications.
setPauseGame(boolean) - Method in class gameboard.AbsThreadedJP
Sets the current pause state of the game.
setPlayer(String) - Method in class gameboard.InvalidMoveDialog
Sets the player string for the player that has no valid moves.
setPlayer(String) - Method in class gameboard.ScorePanel
Sets the player.
setPlayer(String) - Method in class main.EangTermProject
Sets the player color
Also sets the player color on the Score panel, but only if playing a networked game.
setPlayerColor(String) - Method in class main.EangTermProject
Sets the players color.
setPort(int) - Method in class network.AbCommsTCP
Set the port number to use.
setRemoteHost(String) - Method in class network.AbCommsTCP
Sets the remote host connected to.
setRunner(Thread) - Method in class network.AbCommsTCP
Sets the running thread.
setRunning(boolean) - Method in class network.AbCommsTCP
Set the thread's current running state.
setScore(String, int) - Method in class gameboard.ScorePanel
Sets the score for the specified player.
setSendPort(int) - Method in class network.NetComms
Sets the send port.
setSize(int, int) - Method in class network.NetStatusPanel
Sets the size of the panel.
setSleepOffset(int) - Method in class gameboard.AbsThreadedJP
Sets the sleep offset.
setSocket(Socket) - Method in class network.AbCommsTCP
Sets the socket to use for communications.
setSound(SoundSprite) - Method in class gameboard.SplashPanel
Sets the sound sprite for the panel.
setSounds() - Method in class gameboard.OthelloBoard
Sets up the sounds that are played.
setSplashMessage(String[]) - Method in class gameboard.SplashPanel
Sets the string array that stores the message string.
The message string is split based on line breaks and stored in an array
The array is then looped through during printing to print each line on a sperate line.
setSpriteColor(String) - Method in class gameboard.CurrentPlayerPanel
Sets the color of the sprites.
setSpriteColor(String) - Method in class gameboard.OthelloCell
Sets the color of the sprites.
setSpriteColor(Color) - Method in class sprite.sprite2d.Sprite2D
Sets the sprite's color.
setSpritePlacedColor() - Method in class gameboard.OthelloCell
Used to set the direction of animation.
setStart() - Method in class gameboard.OthelloBoard
Sets the initial pieces on the game board.
setStart(int) - Method in class sprite.sprite2d.AnimateImageSprite
Sets the starting image.
setStartX(double) - Method in class sprite.sprite2d.Sprite2D
Sets the starting x position.
setStartY(double) - Method in class sprite.sprite2d.Sprite2D
Sets that starting y position.
setTheImage(BufferedImage[]) - Method in class sprite.sprite2d.AnimateImageSprite
Sets the image array.
setThePoint(Point) - Method in class gameboard.OthelloCell
Sets the point that stores the location of the cell in the board.
setTheSocket(InetAddress, int) - Method in class network.SocketComms
Creates a new socket for connecting.
setTheSprite(AnimateImageSprite) - Method in class gameboard.OthelloCell
Sets the sprite.
setTransparent(boolean) - Method in class sprite.sprite2d.AnimateImageSprite
Sets the transparency state of the background.
setTransparentColor(int) - Method in class sprite.sprite2d.AnimateImageSprite
Sets the color that should be transparent.
setTurn(String) - Method in class gameboard.OthelloBoard
Sets the correct players turn.
setUpColor() - Method in class main.EangTermProject
Sets up the color when playing a network game.
This is only done by the player connecting to the host.
setUpConnection() - Method in class main.EangTermProject
Prompts the user for the connection settings when playing a networked game.
setVisible(boolean) - Method in class sprite.Sprite
Sets the visibility of the sprite.
setWaitingForColor(boolean) - Method in class main.EangTermProject
Sets if still waiting for the player's color or not.
setWhiteScore(int) - Method in class gameboard.ScorePanel
Sets the white players score.
setWidth(int) - Method in class sprite.sprite2d.Sprite2D
Sets the width of the sprite.
setXPosition(double) - Method in class sprite.sprite2d.Sprite2D
Sets the x position.
setYPosition(double) - Method in class sprite.sprite2d.Sprite2D
Sets the y position.
sleepOff - Static variable in class constants.OthelloCons
The sleep offset used when flipping pieces.
SocketComms - Class in network
Created on November 5, 2006, 9:14 AM
Handles communications when sending data to a remote host.

Extends AbCommsTCP, sends the data packet in a loop until the loop is terminated.
The communication loop is terminated either by the object using SocketComms, such as when an ack is received, or if no ack is required.
SocketComms() - Constructor for class network.SocketComms
Creates a new instance of SocketComms
SoundSprite - Class in sprite.spritesound
Created on November 20, 2006, 5:14 PM Creates a sound sprite which can load and play sound files.
SoundSprite() - Constructor for class sprite.spritesound.SoundSprite
Creates a new instance of SoundSprite
SplashPanel - Class in gameboard
Created on November 9, 2006, 8:40 AM
Used to display messages.
SplashPanel() - Constructor for class gameboard.SplashPanel
Creates a new instance of SplashPanel
sprite - package sprite
 
Sprite - Class in sprite
Last updated September 21, 2006
The base sprite bean.
Sprite() - Constructor for class sprite.Sprite
Creates a new sprite.
sprite.sprite2d - package sprite.sprite2d
 
sprite.spritesound - package sprite.spritesound
 
Sprite2D - Class in sprite.sprite2d
Last updated September 23, 2006.
Sprite2D() - Constructor for class sprite.sprite2d.Sprite2D
Creates a new Sprite2D().
spriteColor - Variable in class sprite.sprite2d.Sprite2D
The color of the sprite.
start() - Method in class network.NetStatusPanel
Starts the thread that repaints the panel.
startComms() - Method in class network.AbCommsTCP
Starts the communications.
startGame() - Method in class gameboard.AbsThreadedJP
Starts the game.
startHosting(String) - Method in class main.EangTermProject
Starts up a network socket to wait for a connection.
startUpListen() - Method in class network.NetComms
Starts listening for comms.
stillValidMoves() - Method in class main.EangTermProject
Checks to see if there are still any valid moves.
If the current player does not have any valid moves, then a message is displayed and their turn is skipped. If no valid moves exist for either player, then the game is terminated and the ending splash panel is displayed.
stop() - Method in class main.EangTermProject
Stops the game.
Attempts to stop all threads that are currently running.
stop() - Method in class network.NetStatusPanel
Stops the thread the repaints the panel.
stop() - Method in class sprite.spritesound.SoundSprite
stops the sound clip.
stopComms() - Method in class main.EangTermProject
Stops the communications if the comms thread is not null.
stopComms() - Method in class network.AbCommsTCP
Stops the communications.
stopComms() - Method in class network.NetComms
Stops the communications after trying to send a disconnect.
stopComms() - Method in class network.ServerComms
Stops comms.
stopComms() - Method in class network.SocketComms
Stops comms.
Calls the super.stopComms in AbComms and tries to close the output stream.
stopCurrentPlayer() - Method in class main.EangTermProject
Stops the current player panel thread if it is not null.
stopCurrentScore() - Method in class main.EangTermProject
Stops the current score panel thread if it is not null.
stopGame() - Method in class gameboard.AbsThreadedJP
Stops the game.
stopGame() - Method in class gameboard.OthelloBoard
Stops the game.
Stops each cell thread.
stopGameBoard() - Method in class main.EangTermProject
Stops the game board if it is not null.
stopIntro() - Method in class main.EangTermProject
Stops the splash thread if it is not null.
suspend() - Method in class gameboard.OthelloCell
Suspends the cell.
suspend() - Method in class sprite.Sprite
Stops the sprite.

A B C D E F G H I L M N O P R S T U V W