netGameManager
Class AnswerMessage

java.lang.Object
  extended by netGameManager.AnswerMessage

public class AnswerMessage
extends java.lang.Object

This class contains the basic attributes for a message that is produced in the GameServer. This message is the response for a RequestMessage for GaneClient field REQUEST came from some (GameClient) and the GameServer will try to answer the request. The answer text is stored in the field RESPONSE and the field OK says if the request was or not attended.

Version:
0.5 beta - 03/15/2006
Author:
Luciano Antonio Digiampietri
See Also:
GameClient, GameServer

Field Summary
 java.lang.String GAME_GENERAL_STATUS
           
 java.lang.String GENERAL_MESSAGE
           
 int GID
           
 boolean OK
           
 java.lang.String SPECIFIC_MESSAGE
           
 
Constructor Summary
AnswerMessage(boolean status, java.lang.String general, java.lang.String specific, int gameID)
           
 
Method Summary
 java.lang.String message2string()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OK

public boolean OK

GID

public int GID

GENERAL_MESSAGE

public java.lang.String GENERAL_MESSAGE

SPECIFIC_MESSAGE

public java.lang.String SPECIFIC_MESSAGE

GAME_GENERAL_STATUS

public java.lang.String GAME_GENERAL_STATUS
Constructor Detail

AnswerMessage

public AnswerMessage(boolean status,
                     java.lang.String general,
                     java.lang.String specific,
                     int gameID)
Method Detail

message2string

public java.lang.String message2string()