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
Send ack data.
Can also be used to send any data in which an ack is not required.
SendComms - Class in network
Created on November 5, 2006, 9:14 AM
Handles communications when sending data to a remote host.

Extends AbCommsDG, sends the data packet in a loop until the loop is terminated.
The communication loop is terminated either by the object using SendComms, such as when an ack is received, or if no ack is required.
SendComms() - Constructor for class network.SendComms
Creates a new instance of SendComms
sendData(String) - Method in class network.NetComms
Tries to send the data to the remote host.
sendData(String, boolean) - Method in class network.NetComms
Sends the data and whether or not an ack is required.
sendOpponnentColor() - Method in class main.EangTermProject
Send the connecting players color.
sendPlacedPiece(Point) - Method in class main.EangTermProject
Send the point of the piece placed on the board.
sendPosition(Point) - Method in class main.EangTermProject
Send the position.
setAckRequired(boolean) - Method in class network.AbCommsDG
Sets the ack state.
setActive(boolean) - Method in class sprite.Sprite
Sets the active status of the sprite.
setActivePlayer() - Method in class main.EangTermProject
Sets the active player.
setAlreadyConnected(boolean) - Method in class network.AbCommsDG
Set the connection state.
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.
setBoardSkip() - Method in class main.EangTermProject
Set the board when a players turn is skipped.
setBuffer(byte[]) - Method in class network.AbCommsDG
Sets the buffer with the byte array containing the data to be sent.
setCommsConnected(boolean) - Method in class main.EangTermProject
Sets the connected state of communications.
setConnected(boolean) - Method in class network.NetComms
Set the connection state.
setConnectedAddress(InetAddress) - Method in class network.AbCommsDG
Sets teh connected address.
setConnectToAddress(String) - Method in class network.NetComms
Sets the inet address of the remote host.
setConnectToAddress(InetAddress) - Method in class network.NetComms
Sets the address of the remote host to connect to.
setConnectToName(String) - Method in class network.NetComms
Sets the name of the host to connect.
setCurrentPlayer(Color) - Method in class gameboard.OthelloBoard
Sets the color of the current player.
setCurrentPlayer(Color) - Method in class gameboard.OthelloCell
Sets the color of the current player.
setCurrentPlayer() - Method in class main.EangTermProject
Sets the current player color that is placing a piece on the board.
setEnemyOver(Point, Color) - Method in class gameboard.OthelloBoard
Sets the point representing the cell the enemy is over.
setEnemyPlaced(Point, Color) - Method in class gameboard.OthelloBoard
Sets an enemy piece on the board.
setFill(boolean) - Method in class sprite.sprite2d.Sprite2D
Sets the fill state of the sprite.
setFilled(boolean) - Method in class gameboard.OthelloCell
Sets the filled sate of the game piece.
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 up if hosting a game.
setHostName(String) - Method in class network.CommDialog
Sets the host name.
setLevel(int) - Method in class gameboard.AbsThreadedJP
Sets the level.
setListenPort(int) - Method in class network.NetComms
Sets the port to listen on.
setMessage(String) - Method in class gameboard.SplashPanel
Sets the new message to be dispalyed.
setPacket(DatagramPacket) - Method in class network.AbCommsDG
Sets the datagram packet used for communications.
setPauseComms(boolean) - Method in class network.AbCommsDG
Set 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.ScorePanel
Sets the player.
setPlayer(String) - Method in class main.EangTermProject
Sets the player string.
setPlayerColor(String) - Method in class main.EangTermProject
Sets the player color
setPort(int) - Method in class network.AbCommsDG
Sets the port number to send to.
setRemoteHost(String) - Method in class network.AbCommsDG
Sets the remote host.
setRunner(Thread) - Method in class main.EangTermProject
Sets the thread.
setRunner(Thread) - Method in class network.AbCommsDG
Sets the currently running thread.
setRunning(boolean) - Method in class main.EangTermProject
Set the running state.
setRunning(boolean) - Method in class network.AbCommsDG
Sets the running state of the thread.
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.
setSocket(DatagramSocket) - Method in class network.AbCommsDG
Sets the data gram socket.
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(Color) - Method in class gameboard.CurrentPlayerPanel
Sets the color of the sprites.
setSpriteColor(Color) - Method in class gameboard.OthelloCell
Sets the color of the sprites.
setSpriteColor(Color) - Method in class sprite.sprite2d.Sprite2D
Sets the sprite's color.
setStart() - Method in class gameboard.OthelloBoard
Sets the initial pieces on the game board.
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.
setThePoint(Point) - Method in class gameboard.OthelloCell
Sets the point that stores the location of the cell in the board.
setTheSprite(Sprite2D) - Method in class gameboard.OthelloCell
Sets the main sprite.
setTurn(String) - Method in class gameboard.OthelloBoard
Sets whose turn it is.
setUnderSideSprite(Sprite2D) - Method in class gameboard.OthelloCell
Set shte new underside sprite.
setUpColor() - Method in class main.EangTermProject
Set up the color of the players playing.
setUpConnection() - Method in class main.EangTermProject
Set up connection configuration.
setVisible(boolean) - Method in class sprite.Sprite
Sets the visibility of the sprite.
setWaitingForColor(boolean) - Method in class main.EangTermProject
Set status of waiting for the color.
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.
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
 
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.
startApp() - Method in class main.EangTermProject
Start the thread for the main app.
startComms() - Method in class network.AbCommsDG
Starts the communications.
startGame() - Method in class gameboard.AbsThreadedJP
Starts the game.
startHosting(String) - Method in class main.EangTermProject
Starts hosting.
stillValidMoves() - Method in class main.EangTermProject
Checks to see if there are still valid moves.
stop() - Method in class main.EangTermProject
Stops the game and all threads running.
stop() - Method in class network.NetStatusPanel
Stops the thread the repaints the panel.
stopApp() - Method in class main.EangTermProject
Stops the thread from running.
stopComms() - Method in class main.EangTermProject
Stops the comms thread.
stopComms() - Method in class network.AbCommsDG
Stops the communications.
stopComms() - Method in class network.NetComms
Trys to stop all communication threads.
stopCurrentPlayer() - Method in class main.EangTermProject
stops the current player thread.
stopCurrentScore() - Method in class main.EangTermProject
Stops the current score thread.
stopGame() - Method in class gameboard.AbsThreadedJP
Stops the game.
stopGame() - Method in class gameboard.OthelloBoard
Stops the game.
stopGameBoard() - Method in class main.EangTermProject
Stops the game board thread.
stopIntro() - Method in class main.EangTermProject
Stops the intro/splash thread.
suspend() - Method in class gameboard.OthelloCell
Suspsends the sprites.
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