feud.clientserver
Interface MessageTypes


public interface MessageTypes

An interface that defines some constants for client and server. These values are part of each transfered data block.


Field Summary
static int EVENT
          The message is an event.
static int IMPORTANT_INFO
          The message is an info (and an important one...as if there were others...).
static int INTERNAL_BORDER
          This is a hack...it's used to numerically seperate the above constants from the lower ones.
static int LOGIN_FAILURE
          A message from the server to the client that the login has failed
static int LOGIN_REQUEST
          A login request from the client
static int LOGIN_SUCCESS
          A message from the server to the client that the login was a success
static int LOGOUT_REQUEST
          A logout request from the client
static int LOGOUT_SUCCESS
          A message from the server to the client that it has been logged out correctly
static int OBJ_TRANSFER
          The message is a simple data transfer.
 

Field Detail

LOGIN_REQUEST

public static final int LOGIN_REQUEST
A login request from the client

See Also:
Constant Field Values

LOGIN_SUCCESS

public static final int LOGIN_SUCCESS
A message from the server to the client that the login was a success

See Also:
Constant Field Values

LOGIN_FAILURE

public static final int LOGIN_FAILURE
A message from the server to the client that the login has failed

See Also:
Constant Field Values

LOGOUT_REQUEST

public static final int LOGOUT_REQUEST
A logout request from the client

See Also:
Constant Field Values

LOGOUT_SUCCESS

public static final int LOGOUT_SUCCESS
A message from the server to the client that it has been logged out correctly

See Also:
Constant Field Values

INTERNAL_BORDER

public static final int INTERNAL_BORDER
This is a hack...it's used to numerically seperate the above constants from the lower ones.

See Also:
Constant Field Values

OBJ_TRANSFER

public static final int OBJ_TRANSFER
The message is a simple data transfer. This is the case for most messages.

See Also:
Constant Field Values

IMPORTANT_INFO

public static final int IMPORTANT_INFO
The message is an info (and an important one...as if there were others...). An info is something like "player added" or the scoring board.

See Also:
Constant Field Values

EVENT

public static final int EVENT
The message is an event. An event is something of which a client (or server) has be informed but that doesn't affect the state of a local object directly. Examples are a player firing the gun, so that the clients have to play a sound.

See Also:
Constant Field Values