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

A

actionPerformed(ActionEvent) - Method in class Tracksail.CreateGameActionListener
Attempt to create a race in the server for this player.
actionPerformed(ActionEvent) - Method in class Tracksail.ExitActionListener
If we're in the lobby room, exit the program.
actionPerformed(ActionEvent) - Method in class Tracksail.JoinGameActionListener
 
actionPerformed(ActionEvent) - Method in class Tracksail.SayItActionListener
Reads the message written in the text field and sends it to other players through the server.
actionPerformed(ActionEvent) - Method in class Tracksail.StartGameActionListener
If we are the master player, begin racing.
actionPerformed(ActionEvent) - Method in class Tracksail.TurnLeftAction
Send a navigation command to the server to turn the player's boat portboard.
actionPerformed(ActionEvent) - Method in class Tracksail.TurnRightAction
Send a navigation command to the server to turn the player's boat starboard.
active - Variable in class Tracksail
Tells if we're still executing the program.
add(float, float) - Method in class Vector2
Adds another vector to this vector.
add(Vector2) - Method in class Vector2
Adds another vector to this vector.
add(Vector2, Vector2) - Static method in class Vector2
Returns the sum of two vectors as a new vector.
addGame(Game) - Method in class Server
Adds a race to the list on the server.
addListDataListener(ListDataListener) - Method in class GameListModel
Adds a list data listener.
addListDataListener(ListDataListener) - Method in class TrackListModel
Adds a list data listener.
addPlayer(Player) - Method in class Game
Adds a player to the race.
addPlayer(Player) - Method in class Server
Adds a player to the list on the server.
addPort(int, Vector2, Vector2) - Method in class Track
Adds a gate.
average(Vector2, Vector2) - Static method in class Vector2
Returns the mean of two vectors as a new vector.

B

button_cancel - Variable in class StartupDialog
cancel button
button_start - Variable in class StartupDialog
start button

C

ClientInterface - interface ClientInterface.
Interface ClientInterface is an interface through which the server executes remote calls to the client.
calcSailDirection(int) - Method in class Player
Calculates the direction of the sail in relation to the world.
calcWindPush(int, int) - Method in class Player
Calculates the force pushing the boat forward.
changeTrack(int, String) - Method in class Server
Loads a new track to a race (if it's not in a racing state).
changeTrack(int, String) - Method in interface ServerInterface
Loads a new track to a race (if it's not in a racing state).
change_wind_time - Variable in class Game
time when the direction and strength of the wind will next be changed
chat_messages - Variable in class Tracksail
Multiline text area where chat messages are output to
chat_scroll - Variable in class Tracksail
This makes the text area to scroll up so only the latest messages are seen at the bottom
chat_text - Variable in class Tracksail
The latest chat messages.
cleanup() - Method in class Server
Kicks the players from the server and ends all races.
clearRaceResult() - Method in class Game
Clears the result array.
client - Variable in class Player
interface to the client object of this player
connect() - Method in class Tracksail
Establishes a RMI connection to the server.
crashWithOtherPlayers(Player) - Method in class Game
Makes the collision detections between the given player and other players.
crashWithPlayer(Player) - Method in class Port
Checks the collisions between a player and the gate buoys.
crashWithPlayer(Player) - Method in class Track
Checks and handles the player collisions to the gate buoys.
createGUI() - Method in class Tracksail
This method constructs the client GUI.
createGame(int, String) - Method in class Server
Creates a new race and places the player in it.
createGame(int, String) - Method in interface ServerInterface
Creates a new race and places the player in it.
createRotatedImages(String, int) - Method in class Tracksail
Creates a rotated image series.
create_game_button - Variable in class Tracksail
Button to create a new race
cur_lap - Variable in class Player
Stores the lap the player is in.

D

direction - Variable in class Player
direction of the player's boat in degrees
direction_images - Variable in class Tracksail.JRenderView
image series for the guiding arrow
dist_to_next_port - Variable in class Player
distance to the next gate to pass
div(float) - Method in class Vector2
Divides a vector with a scalar.
doModal() - Method in class StartupDialog
Show the dialog.
dotProduct(Vector2) - Method in class Vector2
Returns the dot product of this vector with another vector.
drawImage(Graphics, BufferedImage, int, int) - Method in class Tracksail.JRenderView
Draw the image so that the center of the image is at (x, y).
drawRotatedImage(Graphics, BufferedImage[], int, int, int) - Method in class Tracksail.JRenderView
Draw one image from a rotated image series.
drawSea(Graphics) - Method in class Tracksail.JRenderView
Draw the sea.
drawTrack(Graphics) - Method in class Tracksail.JRenderView
Draw the track with buoys.
duplicate() - Method in class Vector2
Returns a copy of this vector.

E

elements - Variable in class GameListModel
race information as an array
elements - Variable in class TrackListModel
list elements (track names)
end_time - Variable in class Game
time when the current race state (racing/not racing) ends
error(String) - Method in class Tracksail
Common error handler.
exit_button - Variable in class Tracksail
Button to leave the program if we're at the lobby room.

F

finished - Variable in class Player
has the player reached the goal
frame - Variable in class Tracksail
Main window

G

Game - class Game.
Class Game runs one race.
Game(int, String, int, Server) - Constructor for class Game
Constructor.
GameInfo - class GameInfo.
Class GameInfo contains basic information about a race.
GameInfo(int, String, int, int, boolean) - Constructor for class GameInfo
Constructor.
GameListModel - class GameListModel.
Model for JList.
GameListModel() - Constructor for class GameListModel
 
game - Variable in class Player
player's current race
game - Variable in class Tracksail
Current state of the race (if we are in one)
gameListChanged() - Method in class Server
Sends an updated race list to all players.
gameStateChange(boolean) - Method in interface ClientInterface
Gives a player the race state when it changes (racing/paused).
gameStateChange(boolean) - Method in class Tracksail
The server tells the player the state of the race when it changes (racing/paused).
game_id - Variable in class Tracksail
Unique id of the race the player is in (if we are in one)
game_list - Variable in class Tracksail
List of the races available
game_list_model - Variable in class Tracksail
Model for the race list
game_loop() - Method in class Tracksail
Game loop.
game_name_text - Variable in class Tracksail
Text field for the name of a new race
game_status - Variable in class Game
A text that tells the race state.
games - Variable in class Server
List of the races on the server.
getBufferedImage(String) - Method in class Tracksail
Loads an image from a file.
getClient() - Method in class Player
Returns the interface of the player's client object.
getCurLap() - Method in class Player
Returns the lap the player is in.
getDirection() - Method in class Player
Returns the movement angle of the player's boat.
getDirection() - Method in class Vector2
Returns the direction angle of this vector in radians.
getDirectionVector() - Method in class Player
Returns the movement direction vector of the player's boat.
getDistToNextPort() - Method in class Player
Returns the distance to the next gate.
getElementAt(int) - Method in class GameListModel
Returns the requested GameInfo object.
getElementAt(int) - Method in class TrackListModel
Returns the name of the track with the given index.
getGame() - Method in class Player
Returns the race the player is in.
getGame(int) - Method in class Server
Returns the specified Game object.
getGame(int) - Method in interface ServerInterface
Returns the specified Game object.
getGameById(int) - Method in class Server
Returns the race with the given id.
getGameList() - Method in class Server
Collects a race list.
getGameStatus() - Method in class Game
Returns the text that gives the race status.
getGamesIterator() - Method in class Server
Returns an iterator for the races.
getHostName() - Method in class StartupDialog
Reads the host name.
getId() - Method in class Game
Returns the id of this race.
getId() - Method in class Player
Returns the unique id of the player.
getInfo() - Method in class Game
Returns the information related to this race.
getMasterId() - Method in class Game
Returns the id of the master player of this race.
getMaxGameDuration() - Method in class Track
Returns the maxDuration attribute
getMaxWindDirection() - Method in class Track
Returns the maxWindDirection attribute
getMaxWindVelocity() - Method in class Track
Returns the maxWindVelocity attribute
getMinWindDirection() - Method in class Track
Returns the minWindDirection attribute
getMinWindVelocity() - Method in class Track
Returns the minWindVelocity attribute
getMinimumSize() - Method in class Tracksail.JRenderView
Returns the minimum size of this component.
getName() - Method in class Game
Returns the name of this race.
getName() - Method in class Player
Returns the name of the player.
getName() - Method in class Track
Returns the name attribute
getNextPort() - Method in class Player
Returns the number of the gate the player must pass through next.
getNextUniqueId() - Method in class Server
Returns the next unused unique_id.
getNumGames() - Method in class Server
Returns the number of races.
getNumPlayers() - Method in class Game
Returns the number of players in this race.
getNumPlayers() - Method in class Server
Returns the number of players on the server.
getNumberOfLaps() - Method in class Track
Returns the laps attribute
getPlayer(int) - Method in class Server
Returns the specified Player object.
getPlayer(int) - Method in interface ServerInterface
Returns the specified Player object.
getPlayerById(int) - Method in class Server
Returns the player with the given id.
getPlayerName() - Method in class StartupDialog
Reads the player name.
getPlayersIterator() - Method in class Game
Returns an iterator for the players.
getPlayersIterator() - Method in class Server
Returns an iterator for the players.
getPortCount() - Method in class Track
Returns the number of gates in this track.
getPortPB(int) - Method in class Track
Returns the location of the portboard buoy of the given gate.
getPortSB(int) - Method in class Track
Returns the location of the starboard buoy of the given gate.
getPosition() - Method in class Player
Returns a copy of the position vector of the player's boat.
getPreferredSize() - Method in class Tracksail.JRenderView
Returns the ideal size of this component.
getRaceResult() - Method in class Game
Returns the result array.
getRandomIntRange(int, int) - Method in class Game
Returns the next random number from the given range.
getSelectedItem() - Method in class TrackListModel
Returns the name of the selected track.
getSize() - Method in class GameListModel
Returns the number of race information objects.
getSize() - Method in class TrackListModel
Returns the number of the tracks in this list.
getTimeS() - Method in class Game
Returns the time of the server clock in seconds.
getTrack() - Method in class Game
Returns a reference to the currect track object.
getTrackName() - Method in class Game
Returns the name of the current track.
getWindChangeInterval() - Method in class Track
Returns the windChangeInterval attribute
getWindDirection() - Method in class Game
Returns the direction of the wind in this race.
getWindVelocity() - Method in class Game
Returns the wind velocity in this race.
getX() - Method in class Vector2
Returns the value of the vector's x component.
getY() - Method in class Vector2
Returns the value of the vector's y component.
green_image - Variable in class Tracksail.JRenderView
image of green buoy

H

host_name - Variable in class Tracksail
Name of the host

I

id - Variable in class Game
race id
id - Variable in class GameInfo
unique id of this race
id - Variable in class Player
player's unique id
info_text - Variable in class Tracksail
Uneditable text field for the program to write information to
init() - Method in class Tracksail
Initialize program.
initPorts(int) - Method in class Track
Initialises the gates by reserving memory for them.
isFinished() - Method in class Player
Returns the value of finished.
isRacing() - Method in class Game
Returns the race state.
is_lobby - Variable in class Tracksail
Are we in a lobby room or in a race room? True means we're in a lobby, false means we're in a race
is_master - Variable in class Tracksail
Is this player the master of the current race?
is_racing - Variable in class Game
is this race in a racing state or not
is_racing - Variable in class GameInfo
is the race currently in racing state
itemStateChanged(ItemEvent) - Method in class Tracksail.ChangeTrackItemListener
The master player has chosen a new track from the track list.

J

joinGame(int, int) - Method in class Server
Places the player in a race.
joinGame(int, int) - Method in interface ServerInterface
Places the player in a race.
join_button - Variable in class Tracksail
Button to join a race

K

kick(String) - Method in interface ClientInterface
Kicks a player out.
kick(String) - Method in class Tracksail
Kicks out a player.
kickAll() - Method in class ServerCommandHandler
Kicks all the players out from the server.
kickPlayer(int) - Method in class ServerCommandHandler
Kicks the given player out from the server.

L

laps - Variable in class Track
how many laps a race sailed on this track lasts
leaveGame(int, int) - Method in class Server
Exits a race.
leaveGame(int, int) - Method in interface ServerInterface
Exits a race.
left - Variable in class Port
portboard buoy of the port
length() - Method in class Vector2
Returns the length of this vector.
lengthSq() - Method in class Vector2
Returns the quadratic length of this vector.
linearInterpolate(Vector2, Vector2, float) - Static method in class Vector2
Interpolate linearly between two vectors.
listeners - Variable in class GameListModel
list of list data listeners
listeners - Variable in class TrackListModel
list of registered list data listeners
loadTrack(String) - Method in class Game
Loads a new track to the race.
lobby_panel - Variable in class Tracksail
Panel that's visible when in lobby room
loginPlayer(String, ClientInterface) - Method in class Server
Logs the player in to the server.
loginPlayer(String, ClientInterface) - Method in interface ServerInterface
Logs the player in to the server.
logoutPlayer(int) - Method in class Server
Logs the player out from the server.
logoutPlayer(int) - Method in interface ServerInterface
Logs the player out from the server.
lookAt(Vector2) - Method in class Tracksail.JRenderView
Set the center of our view.
look_at - Variable in class Tracksail.JRenderView
The point in the world where we direct our view to.

M

MaxPlayers - Static variable in class Game
maximum number of players in one race
main(String[]) - Static method in class Server
Main.
main(String[]) - Static method in class Tracksail
This is where the execution begins.
main_panel - Variable in class Tracksail
Main panel where all other content is placed
master_id - Variable in class Game
id of the master player
master_id - Variable in class GameInfo
id of the player who owns this race
maxDuration - Variable in class Track
maximum duration of a race sailed on this track in seconds
maxWindDirection - Variable in class Track
maximum direction of the wind in degrees
maxWindVelocity - Variable in class Track
maximum velocity of the wind in m/s
minWindDirection - Variable in class Track
minimum direction of the wind in degrees
minWindVelocity - Variable in class Track
minimum velocity of the wind in m/s
mount_left - Variable in class Port
anchoring point of the portboard buoy
mount_right - Variable in class Port
anchoring point of the starboard buoy
move(float, int, int) - Method in class Player
Moves the boat for a certain timeslice.
move(float) - Method in class Port
Moves the buoys towards the anchoring position if they aren't there.
move(float) - Method in class Track
Moves all the gates as needed.
movePlayers(float) - Method in class Game
Moves all the players and makes the collision detections.
mul(float) - Method in class Vector2
Multiplies a vector with a scalar.

N

name - Variable in class Game
race name
name - Variable in class GameInfo
name of this race
name - Variable in class Player
player's name
name - Variable in class Track
track name
next_port - Variable in class Player
the next gate to pass
next_unique_id - Static variable in class Server
Counter for the unique id.
normalize() - Method in class Vector2
Normalises this vector, meaning it's length should be 1.0.
num_finished - Variable in class Game
number of players who have reached the goal
num_players - Variable in class GameInfo
number of players in this race

O

ok - Variable in class StartupDialog
Stores the state of the dialog.

P

Player - class Player.
Class Player represents one player.
Player(int, String, ClientInterface) - Constructor for class Player
Constructor.
Port - class Port.
Class Port implements a gate.
Port(Vector2, Vector2) - Constructor for class Port
Constructor.
paintComponent(Graphics) - Method in class Tracksail.JRenderView
Draw a component.
parseTrack(String) - Method in class TrackFileParser
The actual creation of a Track object.
passed(Vector2, Vector2) - Method in class Port
Checks if the line segment p1-p2 (the interval traveled by the boat) intersects with this gate while going to the allowed direction.
passedPort(int, int) - Method in class Player
Tells the player (s)he has just passed a gate.
passedPort(int, Vector2, Vector2) - Method in class Track
Check if the line segment (p1-<p2) passed the port_id:th gate.
pix_per_m - Variable in class Tracksail.JRenderView
Tells how many pixels on the screen represent one metre.
player_id - Variable in class Tracksail
Player's unique id
player_name - Variable in class Tracksail
Player name
players - Variable in class Game
A list of all players in this race.
players - Variable in class Server
A list of the players that are on the server
ports - Variable in class Track
gates of this track in an array
pos - Variable in class Player
position of the player's boat
preparePlayerToRace(Game, int) - Method in class Player
Prepares the player for a race.
preparePlayers() - Method in class Game
Prepares players for the race.
printHelp() - Method in class ServerCommandHandler
Prints out helpful text.
printPlayers() - Method in class ServerCommandHandler
Prints out the players currently connected to the server.
printTracks() - Method in class ServerCommandHandler
Prints out the tracks that are currently played.

Q

quit() - Method in class Game
Exits the race.

R

race_panel - Variable in class Tracksail
This is the panel that's visible when we're racing
race_result - Variable in class Game
list of results is a String array where the name of each player reaching the goal is stored
rand - Variable in class Game
Random object to generate random numbers
readFile(File) - Method in class TrackFileParser
The track file is first read in a vector.
readObject(ObjectInputStream) - Method in class Game
Reads an object from a stream.
readObject(ObjectInputStream) - Method in class GameInfo
Reads an Object from a stream.
readObject(ObjectInputStream) - Method in class Player
Reads an object form a stream.
readObject(ObjectInputStream) - Method in class Track
Reads an object from the given stream.
readObject(ObjectInputStream) - Method in class Vector2
Reads an object from the given stream.
readParams(String, StringTokenizer) - Method in class ServerCommandHandler
Handles parameters belonging to some commands.
red_image - Variable in class Tracksail.JRenderView
image of red buoy
registry - Static variable in class Server
Registry
removeAllPlayers() - Method in class Game
Removes all players from the race.
removeGame(Game) - Method in class Server
Removes a race from the list on the server.
removeListDataListener(ListDataListener) - Method in class GameListModel
Removes a list data listener.
removeListDataListener(ListDataListener) - Method in class TrackListModel
Removes a list data listener.
removePlayer(Player) - Method in class Game
Removes a player from the race.
removePlayer(Player) - Method in class Server
Removes a player from the list on the server.
render_view - Variable in class Tracksail
Racing view.
right - Variable in class Port
starboard buoy of the port
run() - Method in class Game
The race is ran in this run method of the thread.
run() - Method in class ServerCommandHandler
A loop that waits for commands from the console and when they arrive calls the correct method for them.
running - Variable in class Game
Is the race being run? The race loop is executed as long as running == true.

S

Server - class Server.
Class Server implements the server-side of RMI.
Server() - Constructor for class Server
The constructor for the server.
ServerCommandHandler - class ServerCommandHandler.
Class ServerCommandHandler handles the server commands.
ServerCommandHandler(Server) - Constructor for class ServerCommandHandler
Constructor.
ServerInterface - interface ServerInterface.
Interface ServerInterface is an interface through which the client (Tracksail) executes remote calls to the server.
StartupDialog - class StartupDialog.
Class StartupDialog represents the dialog where we ask for the player and host names.
StartupDialog(JFrame) - Constructor for class StartupDialog
Constructor.
s - Variable in class ServerCommandHandler
 
sail_images - Variable in class Tracksail.JRenderView
image series for the sail
sail_slider - Variable in class Tracksail
Slider to set the sail control rope tightness
sail_value - Variable in class Player
openness of the sail, an integer in range 0..100
say(String) - Method in class Game
Sends a message to all players in this race.
sayToAll(String) - Method in class Server
Sends a chat message to everybody.
sayToAll(String) - Method in interface ServerInterface
Sends a chat message to everybody.
sayToGame(int, String) - Method in class Server
Sends a chat message to the specified race.
sayToGame(int, String) - Method in interface ServerInterface
Sends a chat message to the specified race.
sayToLobby(String) - Method in class Server
Sends a chat message to everybody in the lobby room.
sayToLobby(String) - Method in interface ServerInterface
Sends a chat message to everybody in the lobby room.
say_it - Variable in class Tracksail
Button that sends a chat message from this player
say_text - Variable in class Tracksail
Text field for the player to write chat messages to
seatile_image - Variable in class Tracksail.JRenderView
image of sea waves
selected - Variable in class TrackListModel
the track that's selected in the ComboBox
sendText(String) - Method in interface ClientInterface
Sends a text message to the client.
sendText(String) - Method in class Tracksail
Sends a message to the client.
server - Variable in class Game
Server object this race belongs to
set(float, float) - Method in class Vector2
Sets the values of vector components.
set(Vector2) - Method in class Vector2
Sets the values of vector components.
setCurLap(int) - Method in class Player
Sets a new lap number to the player.
setDirection(int) - Method in class Player
Sets the movement direction of the player's boat.
setDistToNextPort(Vector2) - Method in class Player
Calculates the disctance between the player's boat and a given location (the next gate).
setElements(GameInfo[]) - Method in class GameListModel
Sets the given race information as the content of the model.
setElements(String[]) - Method in class TrackListModel
Sets the content of the model (track names).
setFinished(boolean) - Method in class Player
Sets the value of finished.
setGame(Game) - Method in class Player
Joins the player in a race.
setMaxGameDuration(int) - Method in class Track
Sets the maxDuration attribute.
setMaxWindDirection(int) - Method in class Track
Sets the maxWindDirection attribute.
setMaxWindVelocity(int) - Method in class Track
Sets the maxWindVelocity attribute.
setMinWindDirection(int) - Method in class Track
Sets the minWindDirection attribute.
setMinWindVelocity(int) - Method in class Track
Sets the minWindVelocity attribute.
setName(String) - Method in class Track
Sets the name attribute.
setNextPort(int) - Method in class Player
Sets the next gate the player must pass through.
setNumberOfLaps(int) - Method in class Track
Sets the laps attribute.
setPosition(float, float) - Method in class Player
Sets the coordinates of the player's boat.
setPosition(Vector2) - Method in class Player
Sets the position vector of the player's boat.
setSail(int, int) - Method in class Server
Adjusts a sail.
setSail(int, int) - Method in interface ServerInterface
Adjusts a sail.
setSailValue(int) - Method in class Player
Adjusts the position of the player's sail.
setSelectedItem(Object) - Method in class TrackListModel
Sets the selected track.
setStatusText(String) - Method in class Game
Sets the text that gives the race status.
setWindChangeInterval(int) - Method in class Track
Sets the windChangeInterval attribute.
setX(float) - Method in class Vector2
Gives a value to the vector's x component.
setY(float) - Method in class Vector2
Gives a value to the vector's y component.
ship_images - Variable in class Tracksail.JRenderView
image series for the boat
size - Variable in class Tracksail.JRenderView
size of the window in pixels
startGame() - Method in class Game
Begins a race.
startGame(int) - Method in class Server
Starts racing in a race.
startGame(int) - Method in interface ServerInterface
Starts racing in a race.
start_button - Variable in class Tracksail
Button to start the race
start_time - Variable in class Game
starting time of the race
stateChanged(ChangeEvent) - Method in class Tracksail.SailChangeListener
Sends the new sail value of the player to the server.
stopGame() - Method in class Game
Ends a race.
sub(float, float) - Method in class Vector2
Subtracts another vector from this vector.
sub(Vector2) - Method in class Vector2
Subtracts another vector from this vector.
sub(Vector2, Vector2) - Static method in class Vector2
Returns the difference of two vectors as a new vector.
switchToGame() - Method in class Tracksail
Changes from lobby state to racing state.
switchToLobby() - Method in class Tracksail
Changes from racing state to lobby state.

T

Track - class Track.
Class Track represents a track/course in the game.
Track() - Constructor for class Track
Default constructor.
TrackFileParser - class TrackFileParser.
Class TrackFileParser reads and parses a track file (../tracks/*.track) from the disk and creates a new Track object based on it.
TrackFileParser() - Constructor for class TrackFileParser
Default constructor.
TrackListModel - class TrackListModel.
TrackListModel is a model for JComboBox.
TrackListModel() - Constructor for class TrackListModel
 
Tracksail - class Tracksail.
Class Tracksail implements the client program of Tracksail.
Tracksail() - Constructor for class Tracksail
Constructor.
Tracksail.ChangeTrackItemListener - class Tracksail.ChangeTrackItemListener.
Handles the changes of the choice in the track list.
Tracksail.ChangeTrackItemListener() - Constructor for class Tracksail.ChangeTrackItemListener
 
Tracksail.CreateGameActionListener - class Tracksail.CreateGameActionListener.
Handles clicking the 'create game' button.
Tracksail.CreateGameActionListener() - Constructor for class Tracksail.CreateGameActionListener
 
Tracksail.ExitActionListener - class Tracksail.ExitActionListener.
Handles clicking the 'Exit' button.
Tracksail.ExitActionListener() - Constructor for class Tracksail.ExitActionListener
 
Tracksail.JRenderView - class Tracksail.JRenderView.
Custom GUI component, a drawing area on which all graphics of the game are drawn.
Tracksail.JRenderView() - Constructor for class Tracksail.JRenderView
Constructor.
Tracksail.JoinGameActionListener - class Tracksail.JoinGameActionListener.
Handles clicking the 'join game' button.
Tracksail.JoinGameActionListener() - Constructor for class Tracksail.JoinGameActionListener
 
Tracksail.SailChangeListener - class Tracksail.SailChangeListener.
Handles changes in the slider controlling the sail.
Tracksail.SailChangeListener() - Constructor for class Tracksail.SailChangeListener
 
Tracksail.SayItActionListener - class Tracksail.SayItActionListener.
Handles events that are generated when the player clicks the 'say' button or hits enter with focus in the chat input text area.
Tracksail.SayItActionListener() - Constructor for class Tracksail.SayItActionListener
 
Tracksail.StartGameActionListener - class Tracksail.StartGameActionListener.
Handles clicking the 'start game' in a race.
Tracksail.StartGameActionListener() - Constructor for class Tracksail.StartGameActionListener
 
Tracksail.TurnLeftAction - class Tracksail.TurnLeftAction.
Handles clicking the '<' button.
Tracksail.TurnLeftAction(String) - Constructor for class Tracksail.TurnLeftAction
Constructor.
Tracksail.TurnRightAction - class Tracksail.TurnRightAction.
Handles clicking the '>' button.
Tracksail.TurnRightAction(String) - Constructor for class Tracksail.TurnRightAction
Constructor.
Tracksail.WindowCloser - class Tracksail.WindowCloser.
Handles events that are generated when the player closes the window.
Tracksail.WindowCloser() - Constructor for class Tracksail.WindowCloser
 
text_host - Variable in class StartupDialog
text field for the host name
text_name - Variable in class StartupDialog
text field for the player name
toString() - Method in class GameInfo
Returns an image of this race.
track - Variable in class Game
track used in this race
track_list - Variable in class Server
A list of the names of the tracks that can be used.
track_list - Variable in class Tracksail
List to change the track
track_list_model - Variable in class Tracksail
Model for the track list
ts_server - Variable in class Tracksail
An interface used to call the remote methods of the server
turnLeft() - Method in class Player
Rotates the player's boat to portboard.
turnLeft(int) - Method in class Server
Turns a boat portboard.
turnLeft(int) - Method in interface ServerInterface
Turns a boat portboard.
turnRight() - Method in class Player
Rotates the player's boat to starboard.
turnRight(int) - Method in class Server
Turns a boat starboard.
turnRight(int) - Method in interface ServerInterface
Turns a boat starboard.
turn_left_button - Variable in class Tracksail
Button to turn the boat portboard
turn_right_button - Variable in class Tracksail
Button to turn the boat starboard

U

uninit() - Method in class Tracksail
Logs a player out from the server.
updateGameList(GameInfo[]) - Method in interface ClientInterface
Gives the client an updated race list.
updateGameList(GameInfo[]) - Method in class Tracksail
Send an updated race list from the server to the client.
updateTrackList(String[]) - Method in interface ClientInterface
Gives the client an updated track list.
updateTrackList() - Method in class Server
Updates the track list by reading the names of all tracks from the tracklist file in the tracks directory.
updateTrackList(String[]) - Method in class Tracksail
Send an updated track list from the server to the client.

V

Vector2 - class Vector2.
Class Vector2 represents a two-dimensional vector.
Vector2() - Constructor for class Vector2
Default constructor creates a zero vector.
Vector2(float, float) - Constructor for class Vector2
Constructor.
Vector2(Vector2) - Constructor for class Vector2
Constructor.
version - Static variable in class Server
 
version - Static variable in class Tracksail
 

W

windChangeInterval - Variable in class Track
how often to change the wind direction and velocity in seconds
wind_direction - Variable in class Game
direction of the wind in this race, given in degrees
wind_images - Variable in class Tracksail.JRenderView
image series for the wind sock
wind_velocity - Variable in class Game
velocity of the wind in this race, given in m/s
windowClosing(WindowEvent) - Method in class Tracksail.WindowCloser
Release the system resources reserved by the window and give permission to leave the program.
worldToScreenX(float) - Method in class Tracksail.JRenderView
Calculate the x coordinate of a point of the world on screen (pixel position).
worldToScreenY(float) - Method in class Tracksail.JRenderView
Calculate the y coordinate of a point of the world on screen (pixel position).
writeObject(ObjectOutputStream) - Method in class Game
Writes the race data to an Object stream.
writeObject(ObjectOutputStream) - Method in class GameInfo
Writes the game information to an Object stream.
writeObject(ObjectOutputStream) - Method in class Player
Writes an object to a stream.
writeObject(ObjectOutputStream) - Method in class Track
Writes an object in the given stream.
writeObject(ObjectOutputStream) - Method in class Vector2
Writes an object to the given stream.

X

x - Variable in class Vector2
the value of the vector's x coordinate

Y

y - Variable in class Vector2
the value of the vector's y coordinate

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