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

A

acknowledge() - Method in class nl.bluering.ppracing.NetSend
Sends acknowledgement with ID to the client
acknowledge(int) - Method in class nl.bluering.ppracing.NetReceive
The client receives it's ID from the server
actionPerformed(ActionEvent) - Method in class nl.bluering.ppracing.newgamewindow
this method is called any time a button is pressed or an option selected.
actionPerformed(ActionEvent) - Method in class nl.bluering.ppracing.newnetwindow
this method is called any time a button is pressed or an option selected.
actionPerformed(ActionEvent) - Method in class nl.bluering.ppracing.Ppracing
Detects when a button is pressed
addplayer(Socket) - Method in class nl.bluering.ppracing.NetSClient
Adds a player and creates in/outcoming connections
ai(int, int, int, int, int) - Method in class nl.bluering.ppracing.Player
This method does a depth-first search for the longest arc-distance that can be made within the given number of moves (level).
ask() - Method in class nl.bluering.ppracing.Player
Is used to make the computer do a move

C

Car - class nl.bluering.ppracing.Car.
This is the data class for the users car.
Car(int, int, Color) - Constructor for class nl.bluering.ppracing.Car
Builds a new car
carmove(int, String) - Method in class nl.bluering.ppracing.NetReceive
Is called when a player has moved it's car
carmove(String) - Method in class nl.bluering.ppracing.NetSend
Sends a move to the server or players
checkterrain() - Method in class nl.bluering.ppracing.Player
Checks if the car has hit the grass.
chooseserver() - Method in class nl.bluering.ppracing.newnetwindow
Shows a dialog for entering the server-IP
Circuit - class nl.bluering.ppracing.Circuit.
This class constructs a new circuit, and makes a representation of it in a BufferedImage
Circuit(int, int, int, Ppracing) - Constructor for class nl.bluering.ppracing.Circuit
Constructs a new circuit
Circuit(Ppracing) - Constructor for class nl.bluering.ppracing.Circuit
For testing purposes only:
circuit(String) - Method in class nl.bluering.ppracing.NetReceive
Is called when a client receives the circuit from the server
circuit(String) - Method in class nl.bluering.ppracing.NetSend
The server sends the circuit to the client
clicked(int, int) - Method in class nl.bluering.ppracing.Player
For user input from mouse
COM - Static variable in class nl.bluering.ppracing.Player
The type of the player: Computer, Human or Network-player
correct - Variable in class nl.bluering.ppracing.Circuit
 
currentplayer() - Method in class nl.bluering.ppracing.Game
 
cursor(boolean) - Method in class nl.bluering.ppracing.Paperview
Sets wether or not the cursor should be drawn

D

decode(String) - Method in class nl.bluering.ppracing.NetReceive
This functions decodes the specified message string, and calls the appropriate function
disconnect() - Method in class nl.bluering.ppracing.NetSend
Disconnects client from server
disconnect(int) - Method in class nl.bluering.ppracing.NetReceive
Either a client disconnects from the server or the server disconnects this client
dographics() - Method in class nl.bluering.ppracing.Circuit
Draws the circuit
doremove() - Method in class nl.bluering.ppracing.NetSClient
This method removes all marked players.
DOWN - Static variable in class nl.bluering.ppracing.Player
The directions to which a player can go
download() - Method in class nl.bluering.ppracing.Circuit
 
drawcar() - Method in class nl.bluering.ppracing.Paperview
Draws the cars of all players to the graphics object provided to paint(Graphics g)
drawcircle(int, int, Color) - Method in class nl.bluering.ppracing.Paperview
Draws a circle on the given location with the given color
drawcursor() - Method in class nl.bluering.ppracing.Paperview
Draws the cursor of the current player onto the Graphics object
drawline(int, int, int, int, Color) - Method in class nl.bluering.ppracing.Paperview
Draws a line on the given coordinates with the given color
drawstart() - Method in class nl.bluering.ppracing.Circuit
Little function for drawing the start-finish line

E

enabled - Variable in class nl.bluering.ppracing.NetSClient
 
endgame() - Method in class nl.bluering.ppracing.NetClient
Is called when the endgame-signal is received
endgame() - Method in class nl.bluering.ppracing.NetReceive
Is called when the server ends the game
endgame(String) - Method in class nl.bluering.ppracing.NetSClient
The server ends the game
endgame(String) - Method in class nl.bluering.ppracing.NetSend
The server ends the current game

F

fault() - Method in class nl.bluering.ppracing.Car
Is called when the grass is hit, to keep track of erronous counted turns
fillcircle(int, int, Color) - Method in class nl.bluering.ppracing.Paperview
Draws a filled circle on the given location with the given color
finished() - Method in class nl.bluering.ppracing.Game
 

G

Game - class nl.bluering.ppracing.Game.
 
Game(Ppracing) - Constructor for class nl.bluering.ppracing.Game
 
getcar() - Method in class nl.bluering.ppracing.Player
 
getcirc() - Method in class nl.bluering.ppracing.Game
 
getcolor() - Method in class nl.bluering.ppracing.Car
 
getgame() - Method in class nl.bluering.ppracing.Ppracing
 
getgridsize() - Method in class nl.bluering.ppracing.Game
 
gethistory(int) - Method in class nl.bluering.ppracing.Car
 
getid() - Method in class nl.bluering.ppracing.NetClient
 
getid() - Method in class nl.bluering.ppracing.NetSClient
 
getname() - Method in class nl.bluering.ppracing.Player
 
getpaper() - Method in class nl.bluering.ppracing.Ppracing
 
getplayer(int) - Method in class nl.bluering.ppracing.Game
 
getplayercount() - Method in class nl.bluering.ppracing.Game
 
getplayerlist() - Method in class nl.bluering.ppracing.NetClient
 
getplayerlist() - Method in class nl.bluering.ppracing.NetSClient
 
getplayerturns() - Method in class nl.bluering.ppracing.Car
 
getplayertype() - Method in class nl.bluering.ppracing.NetClient
 
getplayertype() - Method in class nl.bluering.ppracing.NetSClient
 
getsizex() - Method in class nl.bluering.ppracing.Circuit
 
getsizey() - Method in class nl.bluering.ppracing.Circuit
 
getspeed() - Method in class nl.bluering.ppracing.Car
 
getstartx() - Method in class nl.bluering.ppracing.Car
 
getstartx1() - Method in class nl.bluering.ppracing.Circuit
 
getstartx2() - Method in class nl.bluering.ppracing.Circuit
 
getstarty() - Method in class nl.bluering.ppracing.Car
 
getstarty() - Method in class nl.bluering.ppracing.Circuit
 
getturns() - Method in class nl.bluering.ppracing.Car
 
getvector() - Method in class nl.bluering.ppracing.Car
 
getx() - Method in class nl.bluering.ppracing.Car
 
getx() - Method in class nl.bluering.ppracing.Vector
 
gety() - Method in class nl.bluering.ppracing.Car
 
gety() - Method in class nl.bluering.ppracing.Vector
 

H

HUM - Static variable in class nl.bluering.ppracing.Player
The type of the player: Computer, Human or Network-player

I

incircuit(String) - Method in class nl.bluering.ppracing.NetClient
Loads the circuit send by the server
indisconnect() - Method in class nl.bluering.ppracing.NetClient
Is called when the server disconnects this client
indisconnect(int) - Method in class nl.bluering.ppracing.NetSClient
A client disconnects from the server
inid(int) - Method in class nl.bluering.ppracing.NetClient
Gives this client an id number
init() - Method in class nl.bluering.ppracing.Circuit
Initialises a new circuit
init() - Method in class nl.bluering.ppracing.Loader
 
init() - Method in class nl.bluering.ppracing.newnetwindow
Initializes first window, with choice for server or client
init() - Method in class nl.bluering.ppracing.Ppracing
The init method is called when the applet is loaded by the browser.
inmessage(int, String) - Method in class nl.bluering.ppracing.NetSClient
The server gets a message from a player The message goes to all other players
inmessage(String) - Method in class nl.bluering.ppracing.NetClient
Is called when a message is received from the server
inmessage(String) - Method in class nl.bluering.ppracing.newnetwindow
Displays a message in the chatbox
inmove(int, String) - Method in class nl.bluering.ppracing.NetSClient
A player sends a move to the server
inmove(String) - Method in class nl.bluering.ppracing.NetClient
Receives the current player's move from the server
inname(int, String) - Method in class nl.bluering.ppracing.NetSClient
This function is called by NetReceive, to set the name of the connected player.
inname(String[]) - Method in class nl.bluering.ppracing.NetClient
Is called when a list of players is recieved from the server
isai() - Method in class nl.bluering.ppracing.Player
 
isnet() - Method in class nl.bluering.ppracing.Player
 
isnetgame() - Method in class nl.bluering.ppracing.Game
 
isserver() - Method in class nl.bluering.ppracing.Game
 

K

keyPressed(KeyEvent) - Method in class nl.bluering.ppracing.Ppracing
Detects when a key is pressed
keyReleased(KeyEvent) - Method in class nl.bluering.ppracing.Ppracing
 
keyTyped(KeyEvent) - Method in class nl.bluering.ppracing.Ppracing
 

L

LEFT - Static variable in class nl.bluering.ppracing.Player
The directions to which a player can go
length() - Method in class nl.bluering.ppracing.Vector
 
Loader - class nl.bluering.ppracing.Loader.
Ppracing has two versions: - Light version (Works on all java-mahines) - Full version (Java 2 (JRE 1.3) or higher needed) This class detects which version of java is installed.
Loader() - Constructor for class nl.bluering.ppracing.Loader
 

M

main(String[]) - Static method in class nl.bluering.ppracing.Circuit
 
main(String[]) - Static method in class nl.bluering.ppracing.Player
Method for testing purposes....
main(String[]) - Static method in class nl.bluering.ppracing.Ppracing
this method is quick & dirty trick for running this applet as an application.
Mainview - class nl.bluering.ppracing.Mainview.
This class builds a scrolling pane around the Paperview.
message(int, String) - Method in class nl.bluering.ppracing.NetReceive
Is called when a message from the server or a client is received
message(String) - Method in class nl.bluering.ppracing.NetSend
Sends a message to the server or each player
message(String) - Method in class nl.bluering.ppracing.newnetwindow
Displays an message and returns to the server/client selection
message(String) - Method in class nl.bluering.ppracing.Ppracing
sets a given text in the message label.
mouseClicked(MouseEvent) - Method in class nl.bluering.ppracing.Ppracing
Detects mouse clicks
mouseEntered(MouseEvent) - Method in class nl.bluering.ppracing.Ppracing
 
mouseExited(MouseEvent) - Method in class nl.bluering.ppracing.Ppracing
 
mousePressed(MouseEvent) - Method in class nl.bluering.ppracing.Ppracing
 
mouseReleased(MouseEvent) - Method in class nl.bluering.ppracing.Ppracing
 
move() - Method in class nl.bluering.ppracing.Mainview
This routine scrolls the screen towards the next player.
move(int) - Method in class nl.bluering.ppracing.Player
For actually moving the car
move(Vector) - Method in class nl.bluering.ppracing.Car
Moves the car using the given vector
moveai() - Method in class nl.bluering.ppracing.Player
This function is called by ask() to move the computer player
movecar(int, int) - Method in class nl.bluering.ppracing.Player
Internal function for moving the car to the new position.

N

NET - Static variable in class nl.bluering.ppracing.Player
The type of the player: Computer, Human or Network-player
NetClient - class nl.bluering.ppracing.NetClient.
This class provides the functionality for playing a network game as client.
NetClient(String, Ppracing, String, newnetwindow) - Constructor for class nl.bluering.ppracing.NetClient
Creates a new client and connects to the server on port 8192
NetReceive - class nl.bluering.ppracing.NetReceive.
This class implements the procedures for receiving data from the server or a client
NetReceive(Socket, int, NetClient) - Constructor for class nl.bluering.ppracing.NetReceive
Creates a new platform for the client to receive messages from the specified server
NetReceive(Socket, int, NetSClient) - Constructor for class nl.bluering.ppracing.NetReceive
Creates a new platform for the server to receive messages from the specified client
NetSClient - class nl.bluering.ppracing.NetSClient.
This class provides the functionality for playing a network game as server.
NetSClient(Ppracing, String, newnetwindow) - Constructor for class nl.bluering.ppracing.NetSClient
Creates a new server-client and starts the server
NetSend - class nl.bluering.ppracing.NetSend.
This class implements the procedures for sending data from the server or a client
NetSend(Socket, int, NetClient) - Constructor for class nl.bluering.ppracing.NetSend
Creates a new sendingplatform for a client
NetSend(Socket, int, NetSClient) - Constructor for class nl.bluering.ppracing.NetSend
Creates a new sendingplatform for the server
NetServer - class nl.bluering.ppracing.NetServer.
This class runs as a seperate thread, and deals with incoming new clients
NetServer(NetSClient) - Constructor for class nl.bluering.ppracing.NetServer
Constructs a new serversocket for communication with clientsockets
newgame() - Method in class nl.bluering.ppracing.NetReceive
Is called when the server sends a newgame-request
newgame() - Method in class nl.bluering.ppracing.NetSend
The server starts a new game
newgame(int[], String[]) - Method in class nl.bluering.ppracing.Game
This method is called to start a new game
newgamewindow - class nl.bluering.ppracing.newgamewindow.
This class presents a window for starting a new game It consists of two parts: - Number of players selection - Selection of players and names
newgamewindow(Ppracing) - Constructor for class nl.bluering.ppracing.newgamewindow
create a new newgamewindow.
newnetgame(NetClient) - Method in class nl.bluering.ppracing.Game
Starts a new game with this player as client
newnetgame(NetSClient) - Method in class nl.bluering.ppracing.Game
Starts a new game with this player as server
newnetwindow - class nl.bluering.ppracing.newnetwindow.
This class presents a window for starting a new game It consists of several parts: - Selection of name - Selection of client / server - Connection-window with chat-functionality
newnetwindow(Ppracing) - Constructor for class nl.bluering.ppracing.newnetwindow
Constructs a new window for the networkgame
nextplayer() - Method in class nl.bluering.ppracing.Game
Shifts the turn to the next player
normalgame() - Method in class nl.bluering.ppracing.newgamewindow
Create a dialog for a normal game, on one computer

O

onturn() - Method in class nl.bluering.ppracing.Game
 
outcircuit() - Method in class nl.bluering.ppracing.NetSClient
The server sends the circuit to all players
outdisconnect() - Method in class nl.bluering.ppracing.NetClient
Disconnects this client from the server
outdisconnect(int) - Method in class nl.bluering.ppracing.NetSClient
The server disconnects a client
outmessage(String) - Method in class nl.bluering.ppracing.NetClient
Sends a message to the server
outmessage(String) - Method in class nl.bluering.ppracing.NetSClient
The server sends a message to the players The message goes to all other players
outmove(int) - Method in class nl.bluering.ppracing.NetClient
Sends this clients' move to the server
outmove(int) - Method in class nl.bluering.ppracing.NetSClient
The server does a move
outname() - Method in class nl.bluering.ppracing.NetClient
Sends this clients' name to the server
outname() - Method in class nl.bluering.ppracing.NetSClient
Sends the player-list to all connected players

P

paint(Graphics) - Method in class nl.bluering.ppracing.Circuit
Paint the buffered image onto the screen
paint(Graphics) - Method in class nl.bluering.ppracing.Mainview
 
paint(Graphics) - Method in class nl.bluering.ppracing.Paperview
Paints the circuit and the cars to the given Graphics object
paint(Graphics) - Method in class nl.bluering.ppracing.Ppracing
Updates the graphics
Paperview - class nl.bluering.ppracing.Paperview.
This class provides the visuals for the racing-board It renders the circuit to a Graphics object, and adds the cars and their movement to it.
Paperview(Circuit, Ppracing) - Constructor for class nl.bluering.ppracing.Paperview
Creates a new Canvas for viewing the board
Player - class nl.bluering.ppracing.Player.
This class implements both the data concerning each player, as well as functions for calculating the route for the computer players.
Player(String, int, Ppracing, int, int, Color) - Constructor for class nl.bluering.ppracing.Player
Constructs a new player
players(String) - Method in class nl.bluering.ppracing.NetReceive
Is called when a list of players is received, the list needs decoding.
players(String[]) - Method in class nl.bluering.ppracing.NetSend
Sends playerlist to each client
PORT - Static variable in class nl.bluering.ppracing.NetClient
 
PORT - Static variable in class nl.bluering.ppracing.NetServer
 
Ppracing - class nl.bluering.ppracing.Ppracing.
Paper & Pencil Racing Designed by bluering software development .

R

rebuffer() - Method in class nl.bluering.ppracing.Paperview
Buffers the current image, for faster painting.
removeplayer(int) - Method in class nl.bluering.ppracing.NetSClient
This method disables the player on the given ID.
RIGHT - Static variable in class nl.bluering.ppracing.Player
The directions to which a player can go
run() - Method in class nl.bluering.ppracing.Mainview
this method is the one that runs in its own thread to do the animation. it calls move() every 30 milliseconds.
run() - Method in class nl.bluering.ppracing.NetReceive
Is called when the thread is started This function keeps checking for new messages, until stopped
run() - Method in class nl.bluering.ppracing.NetSend
Is called when the thread is started This function attempts to send the message 30 times, then cancelles the action
run() - Method in class nl.bluering.ppracing.NetServer
Is called when the thread is started This function waits for clients to connect, and then reports them to the ServerClient

S

SAME - Static variable in class nl.bluering.ppracing.Player
The directions to which a player can go
send(String, String) - Method in class nl.bluering.ppracing.NetSend
Tells this class to start sending the new message.
sendmove(int) - Method in class nl.bluering.ppracing.Game
 
sendname(String) - Method in class nl.bluering.ppracing.NetSend
Sends the clients name to the server
setid(int) - Method in class nl.bluering.ppracing.NetReceive
Sets the ID of the client, only needed for feedback when debugging
setid(int) - Method in class nl.bluering.ppracing.NetSend
Resets the client id to the new value
setmessages() - Method in class nl.bluering.ppracing.Ppracing
 
setname(int, String) - Method in class nl.bluering.ppracing.NetReceive
Is called when a client sends it's name to the server
setname(String) - Method in class nl.bluering.ppracing.NetSend
The client sends it's name to the server
settype(int) - Method in class nl.bluering.ppracing.Player
 
setx(int) - Method in class nl.bluering.ppracing.Vector
 
sety(int) - Method in class nl.bluering.ppracing.Vector
 
showclient() - Method in class nl.bluering.ppracing.newnetwindow
Shows the window with functionality for the client
showcurrentplayer() - Method in class nl.bluering.ppracing.Ppracing
sets a given text in the player label.
showmessage(String) - Method in class nl.bluering.ppracing.NetClient
Shows the incoming message in the chatbox of the newnetwindow
showmessage(String) - Method in class nl.bluering.ppracing.NetSClient
Shows a message on the chatbox in the newnetwin
showserver() - Method in class nl.bluering.ppracing.newnetwindow
Shows the window with functionality for the server
start() - Method in class nl.bluering.ppracing.Mainview
is called if a new thread is created for the animation.
start() - Method in class nl.bluering.ppracing.NetReceive
Starts this class in a new thread
start() - Method in class nl.bluering.ppracing.NetSend
Function to start this thread, must be called once
start() - Method in class nl.bluering.ppracing.NetServer
Starts the server in a new thread
startgame() - Method in class nl.bluering.ppracing.NetClient
Is called when the startgame-signal is received
startgame() - Method in class nl.bluering.ppracing.NetSClient
The server starts the game
startpos(int) - Method in class nl.bluering.ppracing.Game
 
startx1 - Variable in class nl.bluering.ppracing.Circuit
 
startx2 - Variable in class nl.bluering.ppracing.Circuit
 
starty - Variable in class nl.bluering.ppracing.Circuit
 
stop() - Method in class nl.bluering.ppracing.Mainview
is called if someone wants the thread to stop.
stop() - Method in class nl.bluering.ppracing.NetClient
Stops all in/outcoming connections
stop() - Method in class nl.bluering.ppracing.NetReceive
Stops this Thread
stop() - Method in class nl.bluering.ppracing.NetSClient
Stops the server and terminates all connections
stop() - Method in class nl.bluering.ppracing.NetSend
Stops this thread
stop() - Method in class nl.bluering.ppracing.NetServer
Stops this the thread

T

takeover(int) - Method in class nl.bluering.ppracing.Game
 
terrain(int, int) - Method in class nl.bluering.ppracing.Circuit
 
toString() - Method in class nl.bluering.ppracing.Car
 
toString() - Method in class nl.bluering.ppracing.Player
 
toString() - Method in class nl.bluering.ppracing.Vector
 
type() - Method in class nl.bluering.ppracing.Player
 

U

undo() - Method in class nl.bluering.ppracing.Car
This function undos the last players' move
undo() - Method in class nl.bluering.ppracing.Game
this method undoes a move, if possible.
UP - Static variable in class nl.bluering.ppracing.Player
The directions to which a player can go
update(Graphics) - Method in class nl.bluering.ppracing.Mainview
 
update(Graphics) - Method in class nl.bluering.ppracing.Paperview
Overrules the default update function, thus reducing flickering
updatelist(String[]) - Method in class nl.bluering.ppracing.newnetwindow
Updates the playerlist, using the given String[]
upload(String) - Method in class nl.bluering.ppracing.Circuit
Sets the circuit to the given String.

V

Vector - class nl.bluering.ppracing.Vector.
Dataclass for saving the car-movements
Vector(int, int) - Constructor for class nl.bluering.ppracing.Vector
Constructs a new Vector

W

win() - Method in class nl.bluering.ppracing.Game
This checks if there is a winner.

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