Class games.Battle.shared.sys.Symbols
All Packages Class Hierarchy This Package Previous Next Index
Class games.Battle.shared.sys.Symbols
java.lang.Object
|
+----games.Battle.shared.sys.Symbols
- public class Symbols
- extends Object
Symbols is a collection of constants that are used throughout the source.
-
BOARD_DIFF
- indicate a board diff packet by the server (not yet used)
-
BOARD_H
- The height of the board in pixels
-
BOARD_W
- The width of the board in pixels
-
BUILD
- command to build a city (not implemented)
-
CLEAR_PIPES
- command to connect a pipe, sent from client to server.
-
DIG
- command to dig land (not implemented)
-
EAST
- EAST, the east direction for a pipe
-
EAST_PIPE
- command to connect a pipe, sent from client to server.
-
ERROR
- command to signal an error, sent from client to server
-
FILL
- command to fill land (not implemented)
-
GAME_INIT
- indicate a game init packet by the server (not yet used)
-
GUN
- command to gun a square
-
INVISIBLE
- the value of an invisible cell
-
MAX_CLIENT_TROOPS
- The most troops that can be in a cell on the client side.
-
MAX_PLAYERS
- The maximum number of players allowed in a single game.
-
MAX_SERVER_TROOPS
- The most troops that can be in a cell on the server side.
-
NORTH
- NORTH, the north direction for a pipe
-
NORTHEAST
- NORTHEAST indicates both a north and an east pipe
-
NORTHWEST
- NORTHWEST indicates both a north and a west pipe
-
NORTH_PIPE
- command to connect a pipe, sent from client to server.
-
NUM_TERRAIN_LEVELS
- The number of terrain levels
-
PARATROOP
- command to paratroop into a square
-
PIPE_MASK
- a mask for extracting pipes from a packed byte
-
PLAYER0
- occupancy defines for the various players
-
PLAYER1
-
-
PLAYER2
-
-
PLAYER3
-
-
PLAYER4
-
-
PLAYER_SURRENDER
- indicate a player surrender packet by the server (not yet used)
-
PLAYER_SYMBOL
- an array of player symbols for the various players
-
RESERVES
- command to set reserves (not used yet)
-
SCUTTLE
- command to scuttle a city (not implemented)
-
SOUTH
- SOUTH, the south direction for a pipe
-
SOUTHEAST
- SOUTHEAST indicates both a south and an east pipe
-
SOUTHWEST
- SOUTHWEST indicates both a south and a west pipe
-
SOUTH_PIPE
- command to connect a pipe, sent from client to server.
-
SURRENDER
- command to surrender
-
TERRAIN_INIT
- indicate a terrain init packet by the server (not yet used)
-
UNMODIFIED
- the value of an unmodified cell
-
UNOCCUPIED
- the value of an unoccupied cell
-
WEST
- WEST, the west direction for a pipe
-
WEST_PIPE
- command to connect a pipe, sent from client to server.
-
X_EAST_PIPE
- command to connect a pipe, sent from client to server.
-
X_NORTH_PIPE
- command to connect a pipe, sent from client to server.
-
X_SOUTH_PIPE
- command to connect a pipe, sent from client to server.
-
X_WEST_PIPE
- command to connect a pipe, sent from client to server.
-
commandString
- strings for debugging client->server messages,
arranged so that index matches value
-
occupancyString
- strings used for debugging printouts, arranged so that
the index matches the occupancy value
-
tagString
- for debugging server messages, indexes arranged to match value
of constants.
-
Symbols()
-
MAX_PLAYERS
public final static int MAX_PLAYERS
- The maximum number of players allowed in a single game.
NUM_TERRAIN_LEVELS
public final static int NUM_TERRAIN_LEVELS
- The number of terrain levels
MAX_SERVER_TROOPS
public final static int MAX_SERVER_TROOPS
- The most troops that can be in a cell on the server side. The server
stores the number of troops in a cell at a greater precision than the
client to help keep transmission costs down.
MAX_CLIENT_TROOPS
public final static int MAX_CLIENT_TROOPS
- The most troops that can be in a cell on the client side.
BOARD_W
public final static int BOARD_W
- The width of the board in pixels
BOARD_H
public final static int BOARD_H
- The height of the board in pixels
NORTH
public final static int NORTH
- NORTH, the north direction for a pipe
EAST
public final static int EAST
- EAST, the east direction for a pipe
SOUTH
public final static int SOUTH
- SOUTH, the south direction for a pipe
WEST
public final static int WEST
- WEST, the west direction for a pipe
NORTHEAST
public final static int NORTHEAST
- NORTHEAST indicates both a north and an east pipe
SOUTHEAST
public final static int SOUTHEAST
- SOUTHEAST indicates both a south and an east pipe
SOUTHWEST
public final static int SOUTHWEST
- SOUTHWEST indicates both a south and a west pipe
NORTHWEST
public final static int NORTHWEST
- NORTHWEST indicates both a north and a west pipe
PIPE_MASK
public final static int PIPE_MASK[]
- a mask for extracting pipes from a packed byte
PLAYER0
public final static int PLAYER0
- occupancy defines for the various players
PLAYER1
public final static int PLAYER1
PLAYER2
public final static int PLAYER2
PLAYER3
public final static int PLAYER3
PLAYER4
public final static int PLAYER4
PLAYER_SYMBOL
public final static int PLAYER_SYMBOL[]
- an array of player symbols for the various players
UNOCCUPIED
public final static int UNOCCUPIED
- the value of an unoccupied cell
INVISIBLE
public final static int INVISIBLE
- the value of an invisible cell
UNMODIFIED
public final static int UNMODIFIED
- the value of an unmodified cell
occupancyString
public static String occupancyString[]
- strings used for debugging printouts, arranged so that
the index matches the occupancy value
NORTH_PIPE
public final static short NORTH_PIPE
- command to connect a pipe, sent from client to server.
EAST_PIPE
public final static short EAST_PIPE
- command to connect a pipe, sent from client to server.
SOUTH_PIPE
public final static short SOUTH_PIPE
- command to connect a pipe, sent from client to server.
WEST_PIPE
public final static short WEST_PIPE
- command to connect a pipe, sent from client to server.
X_NORTH_PIPE
public final static short X_NORTH_PIPE
- command to connect a pipe, sent from client to server.
X_EAST_PIPE
public final static short X_EAST_PIPE
- command to connect a pipe, sent from client to server.
X_SOUTH_PIPE
public final static short X_SOUTH_PIPE
- command to connect a pipe, sent from client to server.
X_WEST_PIPE
public final static short X_WEST_PIPE
- command to connect a pipe, sent from client to server.
CLEAR_PIPES
public final static short CLEAR_PIPES
- command to connect a pipe, sent from client to server.
BUILD
public final static short BUILD
- command to build a city (not implemented)
SCUTTLE
public final static short SCUTTLE
- command to scuttle a city (not implemented)
DIG
public final static short DIG
- command to dig land (not implemented)
FILL
public final static short FILL
- command to fill land (not implemented)
PARATROOP
public final static short PARATROOP
- command to paratroop into a square
GUN
public final static short GUN
- command to gun a square
RESERVES
public final static short RESERVES
- command to set reserves (not used yet)
SURRENDER
public final static short SURRENDER
- command to surrender
ERROR
public final static short ERROR
- command to signal an error, sent from client to server
commandString
public static String commandString[]
- strings for debugging client->server messages,
arranged so that index matches value
GAME_INIT
public final static short GAME_INIT
- indicate a game init packet by the server (not yet used)
TERRAIN_INIT
public final static short TERRAIN_INIT
- indicate a terrain init packet by the server (not yet used)
BOARD_DIFF
public final static short BOARD_DIFF
- indicate a board diff packet by the server (not yet used)
PLAYER_SURRENDER
public final static short PLAYER_SURRENDER
- indicate a player surrender packet by the server (not yet used)
tagString
public static String tagString[]
- for debugging server messages, indexes arranged to match value
of constants.
Symbols
public Symbols()
All Packages Class Hierarchy This Package Previous Next Index