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.

Variable Index

 o BOARD_DIFF
indicate a board diff packet by the server (not yet used)
 o BOARD_H
The height of the board in pixels
 o BOARD_W
The width of the board in pixels
 o BUILD
command to build a city (not implemented)
 o CLEAR_PIPES
command to connect a pipe, sent from client to server.
 o DIG
command to dig land (not implemented)
 o EAST
EAST, the east direction for a pipe
 o EAST_PIPE
command to connect a pipe, sent from client to server.
 o ERROR
command to signal an error, sent from client to server
 o FILL
command to fill land (not implemented)
 o GAME_INIT
indicate a game init packet by the server (not yet used)
 o GUN
command to gun a square
 o INVISIBLE
the value of an invisible cell
 o MAX_CLIENT_TROOPS
The most troops that can be in a cell on the client side.
 o MAX_PLAYERS
The maximum number of players allowed in a single game.
 o MAX_SERVER_TROOPS
The most troops that can be in a cell on the server side.
 o NORTH
NORTH, the north direction for a pipe
 o NORTHEAST
NORTHEAST indicates both a north and an east pipe
 o NORTHWEST
NORTHWEST indicates both a north and a west pipe
 o NORTH_PIPE
command to connect a pipe, sent from client to server.
 o NUM_TERRAIN_LEVELS
The number of terrain levels
 o PARATROOP
command to paratroop into a square
 o PIPE_MASK
a mask for extracting pipes from a packed byte
 o PLAYER0
occupancy defines for the various players
 o PLAYER1
 o PLAYER2
 o PLAYER3
 o PLAYER4
 o PLAYER_SURRENDER
indicate a player surrender packet by the server (not yet used)
 o PLAYER_SYMBOL
an array of player symbols for the various players
 o RESERVES
command to set reserves (not used yet)
 o SCUTTLE
command to scuttle a city (not implemented)
 o SOUTH
SOUTH, the south direction for a pipe
 o SOUTHEAST
SOUTHEAST indicates both a south and an east pipe
 o SOUTHWEST
SOUTHWEST indicates both a south and a west pipe
 o SOUTH_PIPE
command to connect a pipe, sent from client to server.
 o SURRENDER
command to surrender
 o TERRAIN_INIT
indicate a terrain init packet by the server (not yet used)
 o UNMODIFIED
the value of an unmodified cell
 o UNOCCUPIED
the value of an unoccupied cell
 o WEST
WEST, the west direction for a pipe
 o WEST_PIPE
command to connect a pipe, sent from client to server.
 o X_EAST_PIPE
command to connect a pipe, sent from client to server.
 o X_NORTH_PIPE
command to connect a pipe, sent from client to server.
 o X_SOUTH_PIPE
command to connect a pipe, sent from client to server.
 o X_WEST_PIPE
command to connect a pipe, sent from client to server.
 o commandString
strings for debugging client->server messages, arranged so that index matches value
 o occupancyString
strings used for debugging printouts, arranged so that the index matches the occupancy value
 o tagString
for debugging server messages, indexes arranged to match value of constants.

Constructor Index

 o Symbols()

Variables

 o MAX_PLAYERS
  public final static int MAX_PLAYERS
The maximum number of players allowed in a single game.
 o NUM_TERRAIN_LEVELS
  public final static int NUM_TERRAIN_LEVELS
The number of terrain levels
 o 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.
 o MAX_CLIENT_TROOPS
  public final static int MAX_CLIENT_TROOPS
The most troops that can be in a cell on the client side.
 o BOARD_W
  public final static int BOARD_W
The width of the board in pixels
 o BOARD_H
  public final static int BOARD_H
The height of the board in pixels
 o NORTH
  public final static int NORTH
NORTH, the north direction for a pipe
 o EAST
  public final static int EAST
EAST, the east direction for a pipe
 o SOUTH
  public final static int SOUTH
SOUTH, the south direction for a pipe
 o WEST
  public final static int WEST
WEST, the west direction for a pipe
 o NORTHEAST
  public final static int NORTHEAST
NORTHEAST indicates both a north and an east pipe
 o SOUTHEAST
  public final static int SOUTHEAST
SOUTHEAST indicates both a south and an east pipe
 o SOUTHWEST
  public final static int SOUTHWEST
SOUTHWEST indicates both a south and a west pipe
 o NORTHWEST
  public final static int NORTHWEST
NORTHWEST indicates both a north and a west pipe
 o PIPE_MASK
  public final static int PIPE_MASK[]
a mask for extracting pipes from a packed byte
 o PLAYER0
  public final static int PLAYER0
occupancy defines for the various players
 o PLAYER1
  public final static int PLAYER1
 o PLAYER2
  public final static int PLAYER2
 o PLAYER3
  public final static int PLAYER3
 o PLAYER4
  public final static int PLAYER4
 o PLAYER_SYMBOL
  public final static int PLAYER_SYMBOL[]
an array of player symbols for the various players
 o UNOCCUPIED
  public final static int UNOCCUPIED
the value of an unoccupied cell
 o INVISIBLE
  public final static int INVISIBLE
the value of an invisible cell
 o UNMODIFIED
  public final static int UNMODIFIED
the value of an unmodified cell
 o occupancyString
  public static String occupancyString[]
strings used for debugging printouts, arranged so that the index matches the occupancy value
 o NORTH_PIPE
  public final static short NORTH_PIPE
command to connect a pipe, sent from client to server.
 o EAST_PIPE
  public final static short EAST_PIPE
command to connect a pipe, sent from client to server.
 o SOUTH_PIPE
  public final static short SOUTH_PIPE
command to connect a pipe, sent from client to server.
 o WEST_PIPE
  public final static short WEST_PIPE
command to connect a pipe, sent from client to server.
 o X_NORTH_PIPE
  public final static short X_NORTH_PIPE
command to connect a pipe, sent from client to server.
 o X_EAST_PIPE
  public final static short X_EAST_PIPE
command to connect a pipe, sent from client to server.
 o X_SOUTH_PIPE
  public final static short X_SOUTH_PIPE
command to connect a pipe, sent from client to server.
 o X_WEST_PIPE
  public final static short X_WEST_PIPE
command to connect a pipe, sent from client to server.
 o CLEAR_PIPES
  public final static short CLEAR_PIPES
command to connect a pipe, sent from client to server.
 o BUILD
  public final static short BUILD
command to build a city (not implemented)
 o SCUTTLE
  public final static short SCUTTLE
command to scuttle a city (not implemented)
 o DIG
  public final static short DIG
command to dig land (not implemented)
 o FILL
  public final static short FILL
command to fill land (not implemented)
 o PARATROOP
  public final static short PARATROOP
command to paratroop into a square
 o GUN
  public final static short GUN
command to gun a square
 o RESERVES
  public final static short RESERVES
command to set reserves (not used yet)
 o SURRENDER
  public final static short SURRENDER
command to surrender
 o ERROR
  public final static short ERROR
command to signal an error, sent from client to server
 o commandString
  public static String commandString[]
strings for debugging client->server messages, arranged so that index matches value
 o GAME_INIT
  public final static short GAME_INIT
indicate a game init packet by the server (not yet used)
 o TERRAIN_INIT
  public final static short TERRAIN_INIT
indicate a terrain init packet by the server (not yet used)
 o BOARD_DIFF
  public final static short BOARD_DIFF
indicate a board diff packet by the server (not yet used)
 o PLAYER_SURRENDER
  public final static short PLAYER_SURRENDER
indicate a player surrender packet by the server (not yet used)
 o tagString
  public static String tagString[]
for debugging server messages, indexes arranged to match value of constants.

Constructors

 o Symbols
  public Symbols()

All Packages  Class Hierarchy  This Package  Previous  Next  Index