Index of all Fields and Methods
All Packages  Class Hierarchy

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 Z

Index of all Fields and Methods

A

addVisibility(int, int, int). Method in class games.Battle.server.ServerBoard.ServerBoard
makes the given cell and the surrounding region to the horizon visible to the given player
applet. Static variable in class games.Battle.client.ClientApplet.ClientImages
The applet representing the source of the URL.
applet. Static variable in class games.Battle.client.ClientApplet.ClientSounds
The applet used to obtain the URL.
artillery(int, int). Method in class games.Battle.server.ServerBoard.ServerCell
set shells coming into the cell from a particular player.
asciiDump(). Method in class games.Battle.client.ClientApplet.ClientBoard
Debugging method
asciiDump(). Method in class games.Battle.shared.comm.Command
Dump a text version of this command, for debugging.
asciiDump(). Method in class games.Battle.shared.comm.CountPacket
Dump a text version of this packet, for debugging.
asciiDump(). Method in class games.Battle.server.GeoMorph.GeoTile
produce debugging output for this tile
asciiDump(). Method in class games.Battle.shared.comm.InfoPacket
Produces a printout for debugging purposes.
asciiDump(). Method in class games.Battle.shared.comm.PlayerInfo
produce text output for this PlayerInfo
asciiDump(byte[]). Method in class games.Battle.shared.comm.TurnDiff
Debugging output
asciiDump(int). Method in class games.Battle.server.ServerBoard.ServerBoard
produce debugging output
authorizePlayer(PlayerInfo). Method in class games.Battle.server.EuropaCore.EuropaCore
return the player file's official record on this player, or null if the player info passed in does not match any existing player
authorizePlayer(PlayerInfo). Method in class games.Battle.server.EuropaCore.PlayerFile
validate a particular login attempt

B

BattleGame(Socket[], int, GameReferee, Logger). Constructor for class games.Battle.server.BattleGame.BattleGame
construct a new game
BattlePacket(). Constructor for class games.Battle.shared.comm.BattlePacket
board. Variable in class games.Battle.shared.comm.TurnDiff
the board.
Board(). Constructor for class games.Battle.shared.sys.Board
Builds a generic board and fills it with cells.
BOARD_DIFF. Static variable in class games.Battle.shared.sys.Symbols
indicate a board diff packet by the server (not yet used)
BOARD_H. Static variable in class games.Battle.shared.sys.Symbols
The height of the board in pixels
BOARD_W. Static variable in class games.Battle.shared.sys.Symbols
The width of the board in pixels
BUILD. Static variable in class games.Battle.shared.sys.Symbols
command to build a city (not implemented)
buildAll(Applet). Static method in class games.Battle.client.ClientApplet.ClientImages
Build all images.
buildGunImages(). Static method in class games.Battle.client.ClientApplet.ClientImages
Build all variations of the gun images by rotating the original gun image.
buildSmudgeImages(). Static method in class games.Battle.client.ClientApplet.ClientImages
Build all variations of the terrain smudge images by rotating the orginal image.

C

calculateRatings(Rating[]). Static method in class games.Rating.Rating
Adjust ratings to reflect the result of a match or a tournament.
catBytes(Vector). Method in class games.Battle.shared.comm.PlayerInfo
catBytes takes a vector of byte arrays and concatenates them into one long byte aray which is then returned to the caller.
Cell(int, int). Constructor for class games.Battle.shared.sys.Cell
construct a general battle game cell
changeInfo(). Method in class games.Battle.client.EuropaClient.EuropaClient
Creates a dialog box allowing the user to change his or her user information.
chatMessage(PlayerInfo, String). Method in class games.Battle.server.EuropaCore.EuropaCore
register a chat message from user "id"
CHATMSG. Static variable in class games.Battle.shared.comm.ShellCommand
CHATMSG preceeds an InfoPacket with the text of the player's choice.
checkCompatibility(GeoTile). Method in class games.Battle.server.GeoMorph.GeoTile
compare us to the other tile and add the other tile to our legal neighbour lists in each direction
checkpointInterval. Variable in class games.Battle.server.EuropaCore.PlayerFile
checkpointInterval is the delay between writes of the player file.
city. Static variable in class games.Battle.client.ClientApplet.ClientImages
The city image.
cityX. Variable in class games.Battle.server.GeoMorph.GeoTile
the location of the city hint for this tile (place a city here, if anywhere!)
cityY. Variable in class games.Battle.server.GeoMorph.GeoTile
the location of the city hint for this tile (place a city here, if anywhere!)
CLEAR_PIPES. Static variable in class games.Battle.shared.sys.Symbols
command to connect a pipe, sent from client to server.
clearArtillery(). Method in class games.Battle.server.ServerBoard.ServerCell
empty out all incoming shells
clearModified(). Method in class games.Battle.shared.sys.Board
clear the modified flag for all cells on the board
clearModified(). Method in class games.Battle.shared.sys.Cell
clear the contents modified flag
clearParatroops(). Method in class games.Battle.server.ServerBoard.ServerCell
empty out all incoming paratroops
clearPipes(). Method in class games.Battle.shared.sys.Cell
clear all the pipes in this cell.
clearTerrainModified(). Method in class games.Battle.shared.sys.Board
clear the terrainModified flag for all cells on the board
clearTerrainModified(). Method in class games.Battle.shared.sys.Cell
clear the terrain modified flag
click. Static variable in class games.Battle.client.ClientApplet.ClientSounds
The click sound.
ClientAbortDialog(Applet, Thread). Constructor for class games.Battle.client.ClientApplet.ClientAbortDialog
Builds the dialog box, telling it which applet to kill if the user requests it, and which thread to suspend to make the dialog box appear modal.
ClientApplet(). Constructor for class games.Battle.client.ClientApplet.ClientApplet
Default constructor.
ClientApplet(PlayerInfo, EuropaClient, String, int). Constructor for class games.Battle.client.ClientApplet.ClientApplet
Data constructor.
ClientArcadeAnimator(Graphics, int, int, Image[], int, int). Constructor for class games.Battle.client.ClientApplet.ClientArcadeAnimator
Construct a ClientArcadeAnimator.
ClientBoard(). Constructor for class games.Battle.client.ClientApplet.ClientBoard
Construct a client game board.
ClientBoardComponent(ClientBoard). Constructor for class games.Battle.client.ClientApplet.ClientBoardComponent
Construct a ClientBoardComponent with the given ClientBoard.
ClientCell(int, int). Constructor for class games.Battle.client.ClientApplet.ClientCell
Build a client cell, which is located at the given (r,c) pair
ClientCommLink(Component). Constructor for class games.Battle.client.ClientApplet.ClientCommLink
Construct a ClientCommLink class, using the given component to draw itself in.
ClientFrame(String, ClientApplet). Constructor for class games.Battle.client.ClientApplet.ClientFrame
Construct a ClientFrame with the given title and containing the given applet.
ClientImages(). Constructor for class games.Battle.client.ClientApplet.ClientImages
ClientLook(ClientBoardComponent). Constructor for class games.Battle.client.ClientApplet.ClientLook
Initialize the ClientLook data members.
ClientLookArcade(ClientBoardComponent). Constructor for class games.Battle.client.ClientApplet.ClientLookArcade
Construct a ClientLookArcade with the given ClientBoardComponent.
ClientLookTraditional(ClientBoardComponent). Constructor for class games.Battle.client.ClientApplet.ClientLookTraditional
Construct a ClientLookTraditional instance with the given ClientBoardComponent.
ClientSounds(). Constructor for class games.Battle.client.ClientApplet.ClientSounds
ClientTimeoutAgent(long, Applet). Constructor for class games.Battle.client.ClientApplet.ClientTimeoutAgent
Construct a timeout agent with the given resolution and activation message.
ClientUpdater(ClientBoard, ClientLook). Constructor for class games.Battle.client.ClientApplet.ClientUpdater
Construct a ClientUpdater with the given ClientBoard and ClientLook.
clone(). Method in class games.Battle.server.GeoMorph.GeoTile
return an exact copy of this tile
ClosableFrame(String). Constructor for class win.ClosableFrame.ClosableFrame
construct the frame
cols. Static variable in class games.Battle.shared.sys.Rules
the number of columns in the game world grid.
Command. Static variable in class games.Battle.shared.comm.InfoPacket
Command is a command error level: some action should be taken as a result of this information, either automatically or under the user's directoin.
Command(). Constructor for class games.Battle.shared.comm.Command
Creates a default command which can then be filled using the readFrom(is) method.
Command(int, short, int, int, int, int). Constructor for class games.Battle.shared.comm.Command
Creates a command based on the given data, which it can then send to a data stream using the writeTo(os) method.
commandString. Static variable in class games.Battle.shared.sys.Symbols
strings for debugging client->server messages, arranged so that index matches value
Common(). Constructor for class games.Battle.shared.sys.Common
component. Variable in class games.Battle.client.ClientApplet.ClientLook
A reference to the ClientBoardComponent instance for this game board.
connectToServer(). Method in class games.Battle.client.ClientApplet.ClientApplet
Connect to the game server with the ip address and port we have been constructed with.
CountPacket(). Constructor for class games.Battle.shared.comm.CountPacket
construct a CountPacket with a value of 0.
CountPacket(int). Constructor for class games.Battle.shared.comm.CountPacket
construct a CountPacket with a particular value.

D

DEFAULT_COLORS. Static variable in class games.Battle.shared.comm.GameInit
the default colours used by games.
destroy(). Method in class games.Battle.client.ClientApplet.ClientApplet
Try to clean up everything that's going on in the game client when the client is being shut down.
DIG. Static variable in class games.Battle.shared.sys.Symbols
command to dig land (not implemented)
disableSounds(). Static method in class games.Battle.client.ClientApplet.ClientSounds
For those who don't like sounds, they can turn them off.
DISCONNECT. Static variable in class games.Battle.shared.comm.ShellCommand
DISCONNECT quits the connection with the server.
DummyRef(). Constructor for class games.Battle.server.BattleGame.DummyRef

E

earth. Static variable in class games.Battle.client.ClientApplet.ClientImages
The background earth or floor image
EAST. Static variable in class games.Battle.server.GeoMorph.GeoTile
direction constant: east
EAST. Static variable in class games.Battle.shared.sys.Symbols
EAST, the east direction for a pipe
EAST_PIPE. Static variable in class games.Battle.shared.sys.Symbols
command to connect a pipe, sent from client to server.
enableSounds(). Static method in class games.Battle.client.ClientApplet.ClientSounds
For those who like sounds, they can turn them on.
equals(Object). Method in class games.Battle.shared.comm.GameInfo
ERROR. Static variable in class games.Battle.shared.sys.Symbols
command to signal an error, sent from client to server
ErrorWindow(EuropaClient, String). Constructor for class games.Battle.client.EuropaClient.ErrorWindow
Constructs a Error window as a child of the given client and displaying the given message.
EuropaClient(). Constructor for class games.Battle.client.EuropaClient.EuropaClient
Construct a EuropaClient instance free from the bonds of a frame window.
EuropaClient(Frame). Constructor for class games.Battle.client.EuropaClient.EuropaClient
Construct an EuropaClient window, and set an internal reference to an encapsulating frame.
EuropaCore(String[]). Constructor for class games.Battle.server.EuropaCore.EuropaCore
construct the EuropaCore server.
EuropaQueueComponent(GameInfo, EuropaClient). Constructor for class games.Battle.client.EuropaClient.EuropaQueueComponent
Create a EuropaQueueComponent with the given GameInfo and EuropaClient.
exit(int). Static method in class games.Battle.shared.sys.Common
wraps System.exit() to be friendly as a standlaone application and as an applet.
extractCount(byte). Static method in class games.Battle.shared.sys.Common
extract the run length encoding count from a packed byte.
extractOccupancy(byte). Static method in class games.Battle.shared.sys.Common
extract the occupancy from a packed byte
extractPipes(byte). Static method in class games.Battle.shared.sys.Common
extract the pipes froma packed byte.
extractTerrain(byte). Static method in class games.Battle.shared.sys.Common
extract the terrain fom a packed byte
extractTroops(byte). Static method in class games.Battle.shared.sys.Common
extract the number of troops from a packed byte

F

FatalError. Static variable in class games.Battle.shared.comm.InfoPacket
FatalError is the ultimate error level: this operation must be retried but the socket may disappear anyway if the server really gives up.
fight. Static variable in class games.Battle.client.ClientApplet.ClientSounds
The various fighting sounds.
FILL. Static variable in class games.Battle.shared.sys.Symbols
command to fill land (not implemented)
findAllCompatibleTiles(Vector). Method in class games.Battle.server.GeoMorph.GeoTile
given a vector of tiles set up our own compatibility lists
fire. Static variable in class games.Battle.client.ClientApplet.ClientImages
The 3 fire images.
fromBytes(byte[]). Method in class games.Battle.shared.comm.BattlePacket
Converts the given array of bytes into a particular BattlePacket.
fromBytes(byte[]). Method in class games.Battle.shared.comm.Command
With the given array of bytes, fill this command object with data.
fromBytes(byte[]). Method in class games.Battle.shared.comm.CountPacket
With the given array of bytes, fill this object with data.
fromBytes(byte[]). Method in class games.Battle.shared.comm.GameInfo
Produce a GameInfo from an array of bytes.
fromBytes(byte[]). Method in class games.Battle.shared.comm.GameInit
Fill this GameInit packet with the given array of bytes.
fromBytes(byte[]). Method in class games.Battle.shared.comm.InfoPacket
Converts the given array of bytes into a particular InfoPacket.
fromBytes(byte[]). Method in class games.Battle.shared.comm.PlayerInfo
Converts the given array of bytes into a particular PlayerInfo.
fromBytes(byte[]). Method in class games.Battle.shared.comm.ShellCommand
With the given array of bytes, fill this command object with data.
fromBytes(byte[]). Method in class games.Battle.shared.comm.TerrainInit
Fill a board with the terrain initialization data in the buffer.
fromBytes(byte[]). Method in class games.Battle.shared.comm.TurnDiff
Build a turn diff based on the data inside the given array of bytes

G

GAME_INIT. Static variable in class games.Battle.shared.sys.Symbols
indicate a game init packet by the server (not yet used)
gameId. Variable in class games.Battle.client.EuropaClient.EuropaClient
The game id, if a game is executing (-1 otherwise).
GameInfo(). Constructor for class games.Battle.shared.comm.GameInfo
Construct an empty GameInfo packet so that it can be read from an input stream.
GameInfo(int). Constructor for class games.Battle.shared.comm.GameInfo
Construct a new GameInfo packet, including making a new ID.
GameInit(). Constructor for class games.Battle.shared.comm.GameInit
The default constructor which fills the GameInit packet with default data.
GameInit(int, Color[]). Constructor for class games.Battle.shared.comm.GameInit
The data constructor for the GameInit which fills it with the given data.
GAMEOVER. Static variable in class games.Battle.shared.comm.TurnDiff
GAMEOVER is the used to say hasta la vista, baby.
gameOver(). Method in class games.Battle.server.BattleGame.DummyRef
gameOver(). Method in interface games.Battle.server.ServerBoard.GameReferee
inform the referee that the game is over
gameProc. Variable in class games.Battle.server.EuropaCore.EuropaCore
an array of actual game threads for each game in the server.
games. Variable in class games.Battle.server.EuropaCore.EuropaCore
an array of Game Information for each game in the server
GAMES. Static variable in class games.Battle.shared.comm.ShellCommand
GAMES proceeds a list of GameInfo packets.
GEO_TILESIZE. Static variable in class games.Battle.server.GeoMorph.GeoTile
The number of squares in a particular geomorph tile
GeoMorph(String, int). Constructor for class games.Battle.server.GeoMorph.GeoMorph
Construct a GeoMorph world.
GeoTile(DataInput, int). Constructor for class games.Battle.server.GeoMorph.GeoTile
construct a tile be reading it in from the data input stream.
getApplet(). Method in class games.Battle.client.ClientApplet.ClientTimeoutAgent
Return the applet instance this agent is monitoring
getBoard(). Method in class games.Battle.server.BattleGame.BattleGame
returns the board that the game is being played on
getCell(int, int). Method in class games.Battle.shared.sys.Board
return a reference to the cell at the given row and column
getCell(int, int). Method in class games.Battle.shared.sys.Grid
Return the data located in the given cell location
getChatMessage(int). Method in class games.Battle.server.EuropaCore.EuropaCore
retrieve a message from the chat history
getCity(). Method in class games.Battle.shared.sys.Cell
return the city amount
getCol(). Method in class games.Battle.shared.sys.Cell
return the column that this cell is in
getCol(). Method in class games.Battle.shared.comm.Command
Return the column this command represents.
getColFromBoardCoord(int). Method in class games.Battle.client.ClientApplet.ClientBoardComponent
Given a "world" x-coordinate, return which column this occurs in
getCommand(). Method in class games.Battle.shared.comm.ShellCommand
Return the command code, which must be one of JOIN, QUIT, etc.
getCount(). Method in class games.Battle.shared.comm.CountPacket
Return the count
getData(). Method in class games.Battle.shared.sys.Grid
Return the contiguous array of data representing this grid.
getFighters(int). Method in class games.Battle.server.ServerBoard.ServerCell
tell us how many fighters are coming in from direction "d".
getGameId(). Method in class games.Battle.client.EuropaClient.EuropaClient
Return the currently executing game Id, -1 if there is no game in progress.
getGameId(). Method in class games.Battle.shared.comm.ShellCommand
Return the gameId that this command applies to.
getGrid(). Method in class games.Battle.shared.sys.Board
Return a reference to this board's grid object
getHandle(). Method in class games.Battle.shared.comm.PlayerInfo
return the handle of this player.
getId(). Method in class games.Battle.shared.comm.Command
Return the command id for this command.
getId(). Method in class games.Battle.shared.comm.GameInfo
Returns this game's unique identifier
getMail(). Method in class games.Battle.shared.comm.PlayerInfo
return the email address of this player.
getName(). Method in class games.Battle.shared.comm.PlayerInfo
return the real name of this player.
getNumCols(). Method in class games.Battle.shared.sys.Grid
Return the number of colums in this grid
getNumRows(). Method in class games.Battle.shared.sys.Grid
Return the number of rows in this grid
getOccupancy(). Method in class games.Battle.shared.sys.Cell
return the occupancy
getOffScreenImage(). Method in class games.Battle.client.ClientApplet.ClientBoardComponent
Return a reference to the offscreen image being maintained by this ClientBoardComponent.
getParatroops(int). Method in class games.Battle.server.ServerBoard.ServerCell
return how many paratroops of player p are incoming
getPassword(). Method in class games.Battle.shared.comm.PlayerInfo
return the password of this player.
getPipe(int). Method in class games.Battle.shared.sys.Cell
return the state of the pipe in the direction given
getPipeMask(). Method in class games.Battle.shared.sys.Cell
build a pipe mask from the current pipe state.
getPipes(). Method in class games.Battle.shared.sys.Cell
return the array of pipes.
getPlayer(). Method in class games.Battle.shared.comm.Command
Return the player id for this command.
getPlayer(). Method in class games.Battle.shared.comm.GameInit
Return the player identifier of this game initializer
getPlayer(ServerSocket). Static method in class games.Battle.server.BattleGame.BattleGame
return a new player socket.
getPlayer(ServerSocket). Method in class games.Battle.server.EuropaCore.EuropaCore
block waiting for a player to connect to the given server socket
getPlayerInfo(PlayerInfo). Method in class games.Battle.server.EuropaCore.PlayerFile
get the player info matching a given id
getRandomCity(). Method in class games.Battle.server.GeoMorph.GeoMorph
chooses a tile at random and returns that tile's city hint in world co-ordinates.
getRandomCol(). Static method in class games.Battle.shared.sys.Common
returns a random column
getRandomRow(). Static method in class games.Battle.shared.sys.Common
returns a random row
getRating(). Method in class games.Battle.shared.comm.PlayerInfo
return the player's rating.
getRating(). Method in class games.Rating.Rating
Returns this rating in double precision.
getRatingDeviation(). Method in class games.Rating.Rating
Returns this rating's deviation in double precision.
getRow(). Method in class games.Battle.shared.sys.Cell
return the row that this cell is in
getRow(). Method in class games.Battle.shared.comm.Command
Return the row this command represents.
getRowFromBoardCoord(int). Method in class games.Battle.client.ClientApplet.ClientBoardComponent
Given a "world" y-coordate, return which row this occurs in
getShells(int). Method in class games.Battle.server.ServerBoard.ServerCell
return how many shells from player p are incoming
getStrings(byte[]). Method in class games.Battle.shared.comm.PlayerInfo
Takes in a concatenated list of byte arrays and produces a vector of strings from it.
getSurroundingWaterMask(Board, int, int). Method in class games.Battle.client.ClientApplet.ClientLookArcade
Return a mask of 4 bits which give information about the water surrounding the given cell.
getTag(). Method in class games.Battle.shared.comm.TurnDiff
return the tag associated with this turn diff.
getTerrain(). Method in class games.Battle.shared.sys.Cell
return the level of the terrain in this cell.
getTroops(). Method in class games.Battle.shared.sys.Cell
return the number of troops in this cell
getX(). Method in class games.Battle.shared.comm.Command
Return the x position within a cell this command originated from.
getXPosFromBoardCoord(int). Method in class games.Battle.client.ClientApplet.ClientBoardComponent
Given a "world" x-coordinate, return an x-coordinate in cell space for the cell the mouse is currently located inside
getY(). Method in class games.Battle.shared.comm.Command
Return the y position within a cell this command originated from.
getYPosFromBoardCoord(int). Method in class games.Battle.client.ClientApplet.ClientBoardComponent
Given a "world" y-coordinate, return an y-coordinate in cell space for the cell the mouse is currently located inside
Grid(int, int). Constructor for class games.Battle.shared.sys.Grid
Construct a grid with r rows and c columns.
gun. Static variable in class games.Battle.client.ClientApplet.ClientImages
The four rotated gun images.
gun. Static variable in class games.Battle.client.ClientApplet.ClientSounds
The gun sound.
GUN. Static variable in class games.Battle.shared.sys.Symbols
command to gun a square
gunRange. Static variable in class games.Battle.shared.sys.Rules
the range of guns

H

halt(). Method in class games.Battle.client.ClientApplet.ClientTimeoutAgent
Halts execution of the agent
handleCommunicationException(). Method in class games.Battle.client.ClientApplet.ClientApplet
Called if a problem communicating with the server is encountered.
handleEvent(Event). Method in class games.Battle.client.ClientApplet.ClientAbortDialog
Processes the dialog box events
handleEvent(Event). Method in class games.Battle.client.ClientApplet.ClientApplet
Handle events occuring in the ClientApplet, most notably button presses from the button bar.
handleEvent(Event). Method in class games.Battle.client.ClientApplet.ClientBoardComponent
Handle game action events generated by a user playing the game.
handleEvent(Event). Method in class games.Battle.client.ClientApplet.ClientFrame
Process events from the frame.
handleEvent(Event). Method in class win.ClosableFrame.ClosableFrame
override handleEvent() so that the system exits.
handleEvent(Event). Method in class games.Battle.client.EuropaClient.ErrorWindow
Handle the "ok" button.
handleEvent(Event). Method in class games.Battle.client.EuropaClient.LoginWindow
Process events in the dialog box.
hashCode(). Method in class games.Battle.shared.comm.GameInfo
hilite(). Method in class games.Battle.client.EuropaClient.EuropaQueueComponent
Hilite this component with the appropriate color and draw.
hilite(). Method in class games.Battle.client.EuropaClient.QueueComponent
The method to hilite a queue component, when the mouse moves into the window.
hilite_h. Static variable in class games.Battle.client.ClientApplet.ClientImages
The 4 horizontal hilite images.
hilite_v. Static variable in class games.Battle.client.ClientApplet.ClientImages
The 4 vertical hilite images.
horizon. Static variable in class games.Battle.shared.sys.Rules
the range of visibility
howMuchTime(long, String). Method in class games.Battle.server.BattleGame.BattleGame
a function to time portions of the server to debug problems meeting the time bound
howMuchTime(long, String). Method in class games.Battle.server.ServerBoard.ServerBoard
record how much time some action has taken.

I

indexToCol(int). Static method in class games.Battle.shared.sys.Common
converts an index to a column
indexToRow(int). Static method in class games.Battle.shared.sys.Common
converts an index to a row
Info. Static variable in class games.Battle.shared.comm.InfoPacket
Info is the informational error level: this message does not need to be reported to the end user.
InfoPacket(). Constructor for class games.Battle.shared.comm.InfoPacket
Construct an empty InfoPacket that needs to be read from an input stream.
InfoPacket(String, byte). Constructor for class games.Battle.shared.comm.InfoPacket
Construct a new InfoPacket to record the given information.
init(). Method in class games.Battle.client.ClientApplet.ClientApplet
Initialize the game client by setting up the button bar, the client board and the board component which will process the graphic display and parsing of user events.
init(). Method in class games.Battle.client.EuropaClient.EuropaClient
Performs a list of inititialization routines, including contacting the game server, and building all of the components which are inside the EuropaClient (including the various game queues and the who list)
initBoard(). Method in class games.Battle.server.BattleGame.BattleGame
initialize a game board from scratch for this game.
initPlayer(int). Method in class games.Battle.server.BattleGame.BattleGame
place the given player on the game board, and set up an input thread for the player
INVISIBLE. Static variable in class games.Battle.shared.sys.Symbols
the value of an invisible cell
isConflict(ClientBoard, int, int, int). Method in class games.Battle.client.ClientApplet.ClientLookArcade
Return true if there is a conflict occuring at the (r,c)-th cell.
isFatal(). Method in class games.Battle.shared.comm.InfoPacket
Returns true if this is a fatal message.
isGameOver(). Method in class games.Battle.server.ServerBoard.ServerBoard
return true if the game has ended - that is only one player remains
isModified(). Method in class games.Battle.shared.sys.Cell
return true if this cell's contents have been modified
isPlayer(int). Static method in class games.Battle.shared.sys.Common
return whether the number representing a cell occupancy is a player (not invisible, not unoccupied and not unchanged)
isRunning(). Method in class games.Battle.shared.comm.GameInfo
Returns true if the game is full of all the players it needs.
isTerrainModified(). Method in class games.Battle.shared.sys.Cell
return true if this cell's terrain has been modified
isVisible(int). Method in class games.Battle.shared.sys.Cell
return whether or not this cell is visible to a particuler player.
isVisible(int). Method in class games.Battle.server.ServerBoard.ServerCell
return true if the given player can see this cell, false otherwise
isVisible(int, int, int). Method in class games.Battle.server.ServerBoard.ServerBoard
returns true if the given row,col cell is visible to the given player
isWizard(). Method in class games.Battle.shared.comm.PlayerInfo
returns true if the player is a wizard (administrator)

J

JOIN. Static variable in class games.Battle.shared.comm.ShellCommand
JOIN joins a game
join(int). Method in class games.Battle.client.EuropaClient.EuropaClient
Sends a request to the server to join the given game.
join(PlayerInfo). Method in class games.Battle.shared.comm.GameInfo
Allows a new player to join this game.
joinGame(int, PlayerInfo). Method in class games.Battle.server.EuropaCore.EuropaCore
allow a player to join a game identified by its unique id

K

killPlayer(int). Method in class games.Battle.server.ServerBoard.ServerBoard
kill the player given as an argument.

L

lastChatUpdate(). Method in class games.Battle.server.EuropaCore.EuropaCore
report the last chat update id
lastGameUpdate(). Method in class games.Battle.server.EuropaCore.EuropaCore
report the last game update id
lastWhoUpdate(). Method in class games.Battle.server.EuropaCore.EuropaCore
report the last who update id
layout(). Method in class games.Battle.client.EuropaClient.ErrorWindow
Overload the layout() method to additionally call pack().
layout(). Method in class games.Battle.client.EuropaClient.LoginWindow
Overload the layout method to pack() as well.
loadAll(Applet). Static method in class games.Battle.client.ClientApplet.ClientImages
Get all of the images required by the client.
loadAll(Applet). Static method in class games.Battle.client.ClientApplet.ClientSounds
Get the images.
loadCityImages(). Static method in class games.Battle.client.ClientApplet.ClientImages
Load the city images.
loadParatrooperAndGunImages(). Static method in class games.Battle.client.ClientApplet.ClientImages
Load the paratrooper and gun images.
loadSmudgeImages(). Static method in class games.Battle.client.ClientApplet.ClientImages
Load the terrain smudge image.
log(String). Method in class games.Battle.server.BattleGame.BattleGame
a convenient log function that identifies which game we are as well as logging the message.
log(String). Method in class games.Battle.shared.sys.Logger
Logger(). Constructor for class games.Battle.shared.sys.Logger
LoginWindow(EuropaClient). Constructor for class games.Battle.client.EuropaClient.LoginWindow
Construct a LoginWindow as a child of the given client applet.
LoginWindow(EuropaClient, PlayerInfo). Constructor for class games.Battle.client.EuropaClient.LoginWindow
Construct a LoginWindow with the given PlayerInfo.

M

main(String[]). Static method in class games.Battle.server.BattleGame.BattleGame
a mainline that allows this to run as a standalone application to debug the game thread outside of the full server
main(String[]). Static method in class games.Battle.client.ClientApplet.ClientApplet
main(String[]). Static method in class games.Battle.client.EuropaClient.EuropaClient
The main routine for an applet-less execution.
main(String[]). Static method in class games.Battle.server.EuropaCore.EuropaCore
start the client
makeBytes(). Method in class games.Battle.shared.comm.TurnDiff
Produce an array of bytes representing the turn diff.
makeBytes(String). Method in class games.Battle.shared.comm.PlayerInfo
Converts this PlayerInfo to an array of bytes for transmission.
makeCell(int, int). Method in class games.Battle.shared.sys.Board
implemented in derived classes, returns an instance of a cell for a particular board class
makeCell(int, int). Method in class games.Battle.client.ClientApplet.ClientBoard
Creates a ClientCell cell for the client game board.
makeCell(int, int). Method in class games.Battle.server.ServerBoard.ServerBoard
makes a cell for the server board
makeRandomTerrain(). Method in class games.Battle.server.ServerBoard.ServerBoard
produce terrain based on the geomorph tiles.
MAX_CLIENT_TROOPS. Static variable in class games.Battle.shared.sys.Symbols
The most troops that can be in a cell on the client side.
MAX_GAMES. Static variable in class games.Battle.server.EuropaCore.EuropaCore
the most games we'll allow to ever run simulteneously.
MAX_PLAYERS. Static variable in class games.Battle.shared.sys.Symbols
The maximum number of players allowed in a single game.
MAX_SERVER_TROOPS. Static variable in class games.Battle.shared.sys.Symbols
The most troops that can be in a cell on the server side.
maxCitySize. Static variable in class games.Battle.shared.sys.Rules
the maximum city size (always used)
maxTerrainLevel. Static variable in class games.Battle.shared.sys.Rules
the highest terrain level (mountain peak)
maxTroops. Static variable in class games.Battle.server.ServerBoard.ServerBoard
this is the maximum number of actual troops permitted in a cell at one time.
minCitySize. Static variable in class games.Battle.shared.sys.Rules
the minimum city size (not yet used)
minimumSize(). Method in class games.Battle.client.EuropaClient.EuropaQueueComponent
minTerrainLevel. Static variable in class games.Battle.shared.sys.Rules
the lowest terrain level (water)
mouseEnter(Event, int, int). Method in class games.Battle.client.EuropaClient.QueueComponent
Process the event that occurs when the mouse enters the component.
mouseExit(Event, int, int). Method in class games.Battle.client.EuropaClient.QueueComponent
Process the event that occurs when the mouse exits the component.
mouseUp(Event, int, int). Method in class games.Battle.client.EuropaClient.QueueComponent
Process a mouse up event.

N

newPlayer(PlayerInfo). Method in class games.Battle.server.EuropaCore.EuropaCore
create a new player based on the passed in id.
newPlayer(PlayerInfo). Method in class games.Battle.server.EuropaCore.PlayerFile
create a new player based on id.
NORMAL. Static variable in class games.Battle.shared.comm.TurnDiff
NORMAL is the usual tag placed on a turndiff.
normal(). Method in class games.Battle.client.EuropaClient.EuropaQueueComponent
Erase any previous hilites in this component by drawing in black.
normal(). Method in class games.Battle.client.EuropaClient.QueueComponent
The method to normalize or unhilite a queue component, when the mouse moves out of the window.
NORTH. Static variable in class games.Battle.server.GeoMorph.GeoTile
direction constant: north
NORTH. Static variable in class games.Battle.shared.sys.Symbols
NORTH, the north direction for a pipe
NORTH_PIPE. Static variable in class games.Battle.shared.sys.Symbols
command to connect a pipe, sent from client to server.
NORTHEAST. Static variable in class games.Battle.shared.sys.Symbols
NORTHEAST indicates both a north and an east pipe
NORTHWEST. Static variable in class games.Battle.shared.sys.Symbols
NORTHWEST indicates both a north and a west pipe
NUM_TERRAIN_LEVELS. Static variable in class games.Battle.shared.sys.Symbols
The number of terrain levels
numberJoined(). Method in class games.Battle.shared.comm.GameInfo
Returns how many players have joined this game.
numberNeeded(). Method in class games.Battle.shared.comm.GameInfo
Returns how many players are needed to fill this game.
numPlayers. Static variable in class games.Battle.shared.sys.Rules
the maximum number of players allowed in one game

O

occupancyString. Static variable in class games.Battle.shared.sys.Symbols
strings used for debugging printouts, arranged so that the index matches the occupancy value
offGC. Variable in class games.Battle.client.ClientApplet.ClientLook
A graphics context to the offscren image.
offScreenImage. Variable in class games.Battle.client.ClientApplet.ClientLook
A reference to the ClientBoardComponent's offscreen image.
onGC. Variable in class games.Battle.client.ClientApplet.ClientLook
A graphics context to the ClientBoardComponent's drawing area.

P

paint(Graphics). Method in class games.Battle.client.ClientApplet.ClientBoardComponent
We use the paint method to see if an offscreen bitmap image has been created yet, and if not, to create one.
paint(Graphics). Method in class games.Battle.client.EuropaClient.EuropaQueueComponent
Paints the panel.
PARATROOP. Static variable in class games.Battle.shared.sys.Symbols
command to paratroop into a square
paratroop(int, int). Method in class games.Battle.server.ServerBoard.ServerCell
set paratroops coming into the cell from a particular player.
paratrooper. Static variable in class games.Battle.client.ClientApplet.ClientImages
A paratrooper image.
paratrooper. Static variable in class games.Battle.client.ClientApplet.ClientSounds
The paratrooper sound.
parRange. Static variable in class games.Battle.shared.sys.Rules
the range of paratroops
PIPE_MASK. Static variable in class games.Battle.shared.sys.Symbols
a mask for extracting pipes from a packed byte
pipeRegion(int, int). Method in class games.Battle.client.ClientApplet.ClientCell
Return which pipe region the (x,y) tuple is located in.
placePlayer(int). Method in class games.Battle.server.ServerBoard.ServerBoard
given a player number give the player a new city on the map.
play(). Method in class games.Battle.client.ClientApplet.ClientApplet
playClick(). Static method in class games.Battle.client.ClientApplet.ClientSounds
Play a click sound, if sound play is currently on.
player. Variable in class games.Battle.shared.comm.TurnDiff
the player whose point of view this turndiff is from.
PLAYER0. Static variable in class games.Battle.shared.sys.Symbols
occupancy defines for the various players
PLAYER1. Static variable in class games.Battle.shared.sys.Symbols
PLAYER2. Static variable in class games.Battle.shared.sys.Symbols
PLAYER3. Static variable in class games.Battle.shared.sys.Symbols
PLAYER4. Static variable in class games.Battle.shared.sys.Symbols
PLAYER_SURRENDER. Static variable in class games.Battle.shared.sys.Symbols
indicate a player surrender packet by the server (not yet used)
PLAYER_SYMBOL. Static variable in class games.Battle.shared.sys.Symbols
an array of player symbols for the various players
playerDied(int). Method in class games.Battle.server.BattleGame.DummyRef
playerDied(int). Method in interface games.Battle.server.ServerBoard.GameReferee
inform the referee that a particular player is dead.
PlayerFile(Logger, String). Constructor for class games.Battle.server.EuropaCore.PlayerFile
construct and start the player file thread.
PlayerInfo(). Constructor for class games.Battle.shared.comm.PlayerInfo
Construct an empty player info object, ready to be read from an input stream.
PlayerInfo(String). Constructor for class games.Battle.shared.comm.PlayerInfo
Constructs a PlayerInfo object from a string representation that was obtained by calling toString() on a previous PlayerInfo object.
PlayerInfo(String, String, String, String). Constructor for class games.Battle.shared.comm.PlayerInfo
Constructs a player info from the information usually given on the registration screen.
PlayerInfo(String, String, String, String, boolean, Rating, boolean, boolean). Constructor for class games.Battle.shared.comm.PlayerInfo
Constructs a player info object from complete information on the player.
players. Variable in class games.Battle.shared.comm.GameInfo
The game keeps an array of players that have joined so far.
playGun(). Static method in class games.Battle.client.ClientApplet.ClientSounds
Play a gun sound, if sound play is currently on.
playParatrooper(). Static method in class games.Battle.client.ClientApplet.ClientSounds
Play a paratrooper sound, if sound play is currently on.
playRandomFight(). Static method in class games.Battle.client.ClientApplet.ClientSounds
preferredSize(). Method in class games.Battle.client.ClientApplet.ClientBoardComponent
Return the preferred size for this component
preferredSize(). Method in class games.Battle.client.EuropaClient.EuropaQueueComponent

Q

QUIT. Static variable in class games.Battle.shared.comm.ShellCommand
QUIT quits a game
quit(). Method in class games.Battle.client.EuropaClient.EuropaClient
Quits this applet, cleaning up any lingering windows and informing the server that we are quitting.
quit(PlayerInfo). Method in class games.Battle.shared.comm.GameInfo
Allows a player to get out of this game.
quitGame(int, PlayerInfo). Method in class games.Battle.server.EuropaCore.EuropaCore
allow a player to decline to be in a game before it has actually begun.

R

Rating(). Constructor for class games.Rating.Rating
Constructs a default rating for an unknown player.
Rating(int, int). Constructor for class games.Rating.Rating
Constructs a particular rating for a known player.
Rating(String). Constructor for class games.Rating.Rating
Constructs a particular rating for a known player, from the string representation of the rating, for example, "1500/350".
RCtoIndex(int, int). Static method in class games.Battle.shared.sys.Common
converts a (row,col) tuple to a unique index in a contiguous array
readChat(int). Method in class games.Battle.client.EuropaClient.EuropaClient
Read numlines of chat window messages from the server and display them in the chat window (if the chat window exists).
readFrom(InputStream). Method in class games.Battle.shared.comm.BattlePacket
Reads data from the given input stream and builds a particular BattlePacket from that data.
readFrom(InputStream). Method in class games.Battle.shared.comm.GameInfo
Read this GameInfo from the InputStream given.
readGames(int). Method in class games.Battle.client.EuropaClient.EuropaClient
Read all of the game information from the server, and use the information to properly update the contents of the game queue window.
readWho(int). Method in class games.Battle.client.EuropaClient.EuropaClient
Read numplayers WhoInfo packets from the server and display them in the who list.
registerGameEnd(int). Method in class games.Battle.server.EuropaCore.EuropaCore
Notice that a game is over
registerGameStart(int, BattleGame). Method in class games.Battle.server.EuropaCore.EuropaCore
Notice that a game has actually begun.
removeVisibility(int, int, int). Method in class games.Battle.server.ServerBoard.ServerBoard
Removes visibility of adjacent cells for player assuming player just lost occupancy of the cell at row, col.
RESERVES. Static variable in class games.Battle.shared.sys.Symbols
command to set reserves (not used yet)
reset(). Method in class games.Battle.client.ClientApplet.ClientTimeoutAgent
Resets the timer for the timeout agent.
reset(). Method in class games.Battle.shared.comm.GameInfo
Empties all the players out of this game.
resetGame(int). Method in class games.Battle.server.EuropaCore.EuropaCore
clear all the players out of a game that is over or failed to start.
resetGameInfo(GameInfo). Method in class games.Battle.client.EuropaClient.EuropaQueueComponent
make the component up to date before repainting with superclass method
resetGameInfo(GameInfo). Method in class games.Battle.client.EuropaClient.QueueComponent
Notifies the QueueComponent that the information associated with a particular game has changed and needs to be updated.
resume(). Method in class games.Battle.client.EuropaClient.EuropaClient
Resumes this applet's main thread.
rotate90(). Method in class games.Battle.server.GeoMorph.GeoTile
rotate this tile 90 degrees to create a "new" tile
RotateImageFilter(int). Constructor for class games.image.RotateImageFilter
Constructs a RotateFilter that rotates in clockwise 90 degree increments on a positive number and counter- clockwise 90 degree increments on a negative number.
rows. Static variable in class games.Battle.shared.sys.Rules
the number of rows in the game world grid.
Rules(). Constructor for class games.Battle.shared.sys.Rules
run(). Method in class games.Battle.server.BattleGame.BattleGame
the main game loop is in the run thread.
run(). Method in class games.Battle.client.ClientApplet.ClientApplet
The game thread body.
run(). Method in class games.Battle.client.ClientApplet.ClientArcadeAnimator
The main body for the ClientArcadeAnimator runnable.
run(). Method in class games.Battle.client.ClientApplet.ClientCommLink
The run method for the ClientCommLink instance, executed when a controlling thread is started.
run(). Method in class games.Battle.client.ClientApplet.ClientTimeoutAgent
Execution method of the timeout agent.
run(). Method in class games.Battle.client.ClientApplet.ClientUpdater
The run method executed by the thread.
run(). Method in class games.Battle.client.EuropaClient.EuropaClient
The main execution loop for this applet's thread.
run(). Method in class games.Battle.server.EuropaCore.EuropaCore
loop forever getting connections and spawning player threads
run(). Method in class games.Battle.server.EuropaCore.PlayerFile
Loop forever, sleeping and checkpointing periodically

S

sameId(PlayerInfo). Method in class games.Battle.shared.comm.PlayerInfo
return true if the ID's are identical ignoring case.
samePass(PlayerInfo). Method in class games.Battle.shared.comm.PlayerInfo
return true if the passwords are identical.
SCUTTLE. Static variable in class games.Battle.shared.sys.Symbols
command to scuttle a city (not implemented)
sendChat(String). Method in class games.Battle.client.EuropaClient.EuropaClient
Sends the given chat message to the server.
ServerBoard(GameReferee, Logger). Constructor for class games.Battle.server.ServerBoard.ServerBoard
given a referee and a log file, construct a new game board.
ServerCell(int, int). Constructor for class games.Battle.server.ServerBoard.ServerCell
construct a new server cell at the given location
setArcade(boolean). Method in class games.Battle.shared.comm.PlayerInfo
sets the user's arcade (3D look) preference (on or off)
setCell(int, int, Object). Method in class games.Battle.shared.sys.Grid
Set the value of the cell in the given (row, col) location with the given object.
setCity(). Method in class games.Battle.shared.sys.Cell
Make this cell a functioning city (i.e.
setCity(int). Method in class games.Battle.shared.sys.Cell
set the city construction amount
setData(Object[]). Method in class games.Battle.shared.sys.Grid
Set the data for this grid object.
setDimensions(int, int). Method in class games.image.RotateImageFilter
Override the source image's dimensions and pass the dimensions of the rotated image on to the ImageConsumer.
setFighters(int, int). Method in class games.Battle.server.ServerBoard.ServerCell
sets how many fighters are left over on a particular direction's pipe.
setInfo(PlayerInfo). Method in class games.Battle.shared.comm.WhoInfo
Resets the info in the who packet based on the PlayerInfo packet.
setLook(ClientLook). Method in class games.Battle.client.ClientApplet.ClientBoardComponent
We allow a reference to the look for this game board to be stored here so that we can force it to update with the "!" command.
setLook(ClientLook). Method in class games.Battle.client.ClientApplet.ClientUpdater
Set the look for this updater.
setMail(String). Method in class games.Battle.shared.comm.PlayerInfo
set the email address of this player.
setModified(). Method in class games.Battle.shared.sys.Cell
set the content modified flag
setName(String). Method in class games.Battle.shared.comm.PlayerInfo
set the real name of this player.
setOccupancy(int). Method in class games.Battle.shared.sys.Cell
set the occupancy
setOutputStream(OutputStream). Method in class games.Battle.client.ClientApplet.ClientBoardComponent
Commands generated by user input events are sent to this output stream, presumably a connection to the server.
setPassword(String). Method in class games.Battle.shared.comm.PlayerInfo
set the password of this player.
setPipe(int, boolean). Method in class games.Battle.shared.sys.Cell
set or clear a pipe in the given direction.
setPipes(int). Method in class games.Battle.shared.sys.Cell
special method for setting pipes.
setPixels(int, int, int, int, ColorModel, byte[], int, int). Method in class games.image.RotateImageFilter
Converts an image given as an array of bytes to its rotated form.
setPixels(int, int, int, int, ColorModel, int[], int, int). Method in class games.image.RotateImageFilter
This version has not been implemented.
setPlayer(int). Method in class games.Battle.client.ClientApplet.ClientBoardComponent
Setting the player id for this component allows the component to process events from the user with some degree of intelligence.
setPlayerInfo(PlayerInfo). Method in class games.Battle.client.EuropaClient.EuropaClient
Sends PlayerInfo information to the server so the server can save the info for future reference.
setProperties(Hashtable). Method in class games.image.RotateImageFilter
Pass the properties from the source object along after adding a property indicating the rotation magnitude and direction.
setSound(boolean). Method in class games.Battle.shared.comm.PlayerInfo
sets the user's sound preference (on or off)
setTerrain(int). Method in class games.Battle.shared.sys.Cell
set the height of the terrain in this cell.
setTerrainModified(). Method in class games.Battle.shared.sys.Cell
set the terrain modified flag
setTroops(int). Method in class games.Battle.shared.sys.Cell
set how many troops are in this cell.
setupGame(). Method in class games.Battle.client.ClientApplet.ClientApplet
Set up the game by reading "preliminary" information from the game server.
setVisible(int, boolean). Method in class games.Battle.server.ServerBoard.ServerCell
set the visibility state for this cell
shadow_h. Static variable in class games.Battle.client.ClientApplet.ClientImages
The 4 horizontal shadow images.
shadow_v. Static variable in class games.Battle.client.ClientApplet.ClientImages
The 4 vertical shadow images.
ShellCommand(). Constructor for class games.Battle.shared.comm.ShellCommand
Construct an empty ShellCommand to be read from an input stream.
ShellCommand(byte, int). Constructor for class games.Battle.shared.comm.ShellCommand
Construct a complete shell command.
SHUTDOWN. Static variable in class games.Battle.shared.comm.ShellCommand
SHUTDOWN tells the server to shut down.
shutdownServer(). Method in class games.Battle.client.EuropaClient.EuropaClient
Sends a message to the server to shut itself down.
smoke. Static variable in class games.Battle.client.ClientApplet.ClientImages
The 3 smoke images.
smudge. Static variable in class games.Battle.client.ClientApplet.ClientImages
The four rotated smudge images.
SOUTH. Static variable in class games.Battle.server.GeoMorph.GeoTile
direction constant: south
SOUTH. Static variable in class games.Battle.shared.sys.Symbols
SOUTH, the south direction for a pipe
SOUTH_PIPE. Static variable in class games.Battle.shared.sys.Symbols
command to connect a pipe, sent from client to server.
SOUTHEAST. Static variable in class games.Battle.shared.sys.Symbols
SOUTHEAST indicates both a south and an east pipe
SOUTHWEST. Static variable in class games.Battle.shared.sys.Symbols
SOUTHWEST indicates both a south and a west pipe
start(). Method in class games.Battle.server.BattleGame.BattleGame
start up the server game thread
start(). Method in class games.Battle.client.ClientApplet.ClientApplet
Executed when the ClientApplet actually "starts".
start(). Method in class games.Battle.client.EuropaClient.EuropaClient
Starts up the applet thread of execution.
start(). Method in class games.Battle.server.EuropaCore.EuropaCore
actually initiate the thread that runs the server
start(). Method in class games.Battle.server.EuropaCore.PlayerFile
start the checkpointing thread
stop(). Method in class games.Battle.server.BattleGame.BattleGame
halt this game
stop(). Method in class games.Battle.client.ClientApplet.ClientUpdater
Stop the updater thread from executing.
stop(). Method in class games.Battle.client.EuropaClient.EuropaClient
Overloaded stop method to do nothing.
stop(). Method in class games.Battle.server.EuropaCore.EuropaCore
shutdown the server
stop(). Method in class games.Battle.server.EuropaCore.PlayerFile
stop the checkpoint thread
stuffOccupancyAndCount(int, int). Static method in class games.Battle.shared.sys.Common
stuffs occupancy and a 4-bit counter int a byte
stuffOccupancyAndTerrain(int, int). Static method in class games.Battle.shared.sys.Common
stuffs occupancy in bits 7-5, and terrain in bits 4-2
stuffOccupancyAndTroops(int, int). Static method in class games.Battle.shared.sys.Common
stuffs occupancy and troops
stuffPipes(int). Static method in class games.Battle.shared.sys.Common
stuffs pipes into hi byte
SURRENDER. Static variable in class games.Battle.shared.sys.Symbols
command to surrender
suspend(). Method in class games.Battle.client.EuropaClient.EuropaClient
Suspends this applet's main thread.
Symbols(). Constructor for class games.Battle.shared.sys.Symbols

T

tagString. Static variable in class games.Battle.shared.sys.Symbols
for debugging server messages, indexes arranged to match value of constants.
terrain(int, int). Method in class games.Battle.server.GeoMorph.GeoMorph
return the level of terrain at a particular board location
TERRAIN_INIT. Static variable in class games.Battle.shared.sys.Symbols
indicate a terrain init packet by the server (not yet used)
TerrainInit(Board). Constructor for class games.Battle.shared.comm.TerrainInit
Builds a terrain initializer for a particular board.
tile. Variable in class games.Battle.server.GeoMorph.GeoTile
the actual terrain in this tile
toBytes(). Method in class games.Battle.shared.comm.BattlePacket
Converts this BattlePacket to an array of bytes for transmission.
toBytes(). Method in class games.Battle.shared.comm.Command
Convert this Command to an array of bytes for transmission.
toBytes(). Method in class games.Battle.shared.comm.CountPacket
Convert this packet to an array of bytes for transmission.
toBytes(). Method in class games.Battle.shared.comm.GameInfo
Produce an array of bytes representing a GameInfo
toBytes(). Method in class games.Battle.shared.comm.GameInit
Produce an array of bytes representing a GameInit
toBytes(). Method in class games.Battle.shared.comm.InfoPacket
Converts this InfoPacket to an array of bytes for transmission.
toBytes(). Method in class games.Battle.shared.comm.PlayerInfo
return a byte array that represents this packet.
toBytes(). Method in class games.Battle.shared.comm.ShellCommand
Return the byte representation.
toBytes(). Method in class games.Battle.shared.comm.TerrainInit
Produce an array of bytes representing a terrain init
toBytes(). Method in class games.Battle.shared.comm.TurnDiff
return the bytes for the turn diff.
toggleChatWindow(). Method in class games.Battle.client.EuropaClient.EuropaClient
Turns the chat window on if it is off, and off if it is on.
toString(). Method in class games.Battle.shared.comm.Command
convert to a string representation
toString(). Method in class games.Battle.shared.comm.CountPacket
convert to a string representation
toString(). Method in class games.Battle.shared.comm.GameInfo
Returns a string representation of this game.
toString(). Method in class games.Battle.shared.comm.InfoPacket
Returns a string representation, the actual text of the info message.
toString(). Method in class games.Battle.shared.comm.PlayerInfo
convert to a string representation where all the data is in fields separated by the FIELDSEP character.
toString(). Method in class games.Rating.Rating
Convert the rating to an integer representation embedded in a string, for exmaple, 1500/350.
toString(). Method in class games.Battle.shared.comm.WhoInfo
Return a string suitable for display to the end user.
TurnDiff(Board, int). Constructor for class games.Battle.shared.comm.TurnDiff
Constructor which indicates which game board this TurnDiff is going to be reading/writing to, and which player in the game the diff is being constructed for.
TurnDiff(Board, int, byte). Constructor for class games.Battle.shared.comm.TurnDiff
Constructor which indicates which game board this TurnDiff is going to be reading/writing to, and which player in the game the diff is being constructed for.

U

UNMODIFIED. Static variable in class games.Battle.shared.sys.Symbols
the value of an unmodified cell
UNOCCUPIED. Static variable in class games.Battle.shared.sys.Symbols
the value of an unoccupied cell
update(). Method in class games.Battle.client.ClientApplet.ClientUpdater
Called to wake up the thread and update the board.
update(). Method in class games.Battle.server.ServerBoard.ServerBoard
update the board to reflect the passage of one unit of xbattle time.
update(ClientBoard). Method in class games.Battle.client.ClientApplet.ClientLook
Abstract method redefined in subclasses to actually physically update the graphical state of the board during the game.
update(ClientBoard). Method in class games.Battle.client.ClientApplet.ClientLookArcade
Update the client graphics for a single turn.
update(ClientBoard). Method in class games.Battle.client.ClientApplet.ClientLookTraditional
Update the display for the client board for every turn.
update(Graphics). Method in class games.Battle.client.ClientApplet.ClientBoardComponent
We overload the update method to do nothing, as the regular update cycles generated from the connection to the server will regularly update.
updateCell(int, int). Method in class games.Battle.server.ServerBoard.ServerBoard
update a particular cell on the game board.
updateDisplay(). Method in class games.Battle.client.ClientApplet.ClientLook
Forces the offscreen graphic to draw on the ClientBoardComponent.
UPDATEID. Static variable in class games.Battle.shared.comm.ShellCommand
UPDATEID lets the player change their preferences, info, and password.
updateLook(). Method in class games.Battle.client.ClientApplet.ClientUpdater
Physically update the contents of the display with the board information.
updateTerrain(ClientBoard). Method in class games.Battle.client.ClientApplet.ClientLook
Abstract method redefined in subclasses to update the background terrain of the game board.
updateTerrain(ClientBoard). Method in class games.Battle.client.ClientApplet.ClientLookArcade
Update the background terrain image for board b.
updateTerrain(ClientBoard). Method in class games.Battle.client.ClientApplet.ClientLookTraditional
Update terrain does nothing for this look.
useArcade(). Method in class games.Battle.shared.comm.PlayerInfo
returns true if the player wants the client to be arcade-style (3D).
useSound(). Method in class games.Battle.shared.comm.PlayerInfo
returns true if the player wants the client to use sound.

V

validTiles. Variable in class games.Battle.server.GeoMorph.GeoTile
an array of vectors, one for each direction.

W

water_cross. Static variable in class games.Battle.client.ClientApplet.ClientImages
The single cross shaped water image.
water_elbow. Static variable in class games.Battle.client.ClientApplet.ClientImages
The 4 rotated elbow shaped water images.
water_end. Static variable in class games.Battle.client.ClientApplet.ClientImages
The 4 rotated end water images.
water_single. Static variable in class games.Battle.client.ClientApplet.ClientImages
The 4 rotated single water puddle images.
water_straight. Static variable in class games.Battle.client.ClientApplet.ClientImages
The 4 rotated straight shaped water images.
water_t. Static variable in class games.Battle.client.ClientApplet.ClientImages
The 4 rotated T shaped water images.
waterImage(int). Method in class games.Battle.client.ClientApplet.ClientLookArcade
Return a certain water image based on a mask.
WEST. Static variable in class games.Battle.server.GeoMorph.GeoTile
direction constant: west
WEST. Static variable in class games.Battle.shared.sys.Symbols
WEST, the west direction for a pipe
WEST_PIPE. Static variable in class games.Battle.shared.sys.Symbols
command to connect a pipe, sent from client to server.
who. Variable in class games.Battle.server.EuropaCore.EuropaCore
a vector of who is currently logged onto the game
WHO. Static variable in class games.Battle.shared.comm.ShellCommand
WHO preceeds a list of WhoInfo packets.
WhoInfo(). Constructor for class games.Battle.shared.comm.WhoInfo
Constructs an empty packet ready to be read in from an inputstream.
WhoInfo(PlayerInfo). Constructor for class games.Battle.shared.comm.WhoInfo
Constructs a WhoInfo packet from a PlayerInfo packet, stripping the password in the process.
WORLDSIZE. Variable in class games.Battle.server.GeoMorph.GeoMorph
the size of the world (in tiles) that we're going to build
writeTo(OutputStream). Method in class games.Battle.shared.comm.BattlePacket
Writes this BattlePacket to the given output stream
writeTo(OutputStream). Method in class games.Battle.shared.comm.GameInfo
Write this GameInfo to the OutputStream given.

X

X_EAST_PIPE. Static variable in class games.Battle.shared.sys.Symbols
command to connect a pipe, sent from client to server.
X_NORTH_PIPE. Static variable in class games.Battle.shared.sys.Symbols
command to connect a pipe, sent from client to server.
X_SOUTH_PIPE. Static variable in class games.Battle.shared.sys.Symbols
command to connect a pipe, sent from client to server.
X_WEST_PIPE. Static variable in class games.Battle.shared.sys.Symbols
command to connect a pipe, sent from client to server.