Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.zazof.jteg
Class StatusMessageProt5  view StatusMessageProt5 download StatusMessageProt5.java

java.lang.Object
  extended byorg.zazof.jteg.Message
      extended byorg.zazof.jteg.StatusMessage
          extended byorg.zazof.jteg.StatusMessageProt5

public class StatusMessageProt5
extends StatusMessage


Field Summary
private  int $counter
           
private  java.util.Vector $help
           
private  int $index
           
private static boolean DEBUG
           
 
Fields inherited from class org.zazof.jteg.Message
 
Constructor Summary
StatusMessageProt5(Message nextMessage)
           
 
Method Summary
 Message decodeMessage(java.lang.String messageDescription)
          This method will return a Message that correctly processed the string according the active protocol.
 int getPlayerColor()
           
 int getPlayerID()
           
 java.lang.String getPlayerName()
           
 boolean hasMoreInformation()
          returns true if there is more player information in this message
 void nextInformation()
          if you want to access the next information object
 void resetInformation()
          resets the information pointer, so you could start back at the beginning
 
Methods inherited from class org.zazof.jteg.StatusMessage
constructMessageString, getMessageName
 
Methods inherited from class org.zazof.jteg.Message
getNextMessage, hasNextMessage, setNextMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

$help

private java.util.Vector $help

$counter

private int $counter

$index

private int $index

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

StatusMessageProt5

public StatusMessageProt5(Message nextMessage)
Method Detail

decodeMessage

public Message decodeMessage(java.lang.String messageDescription)
                      throws UnknownMessageException
Description copied from class: Message
This method will return a Message that correctly processed the string according the active protocol. If no message was found that could process the inputstring, an exception is thrown.

The default implementation by message just passes the request on to the next message in the chain. If other behaviour is desired, this method needs to be overridden.

Overrides:
decodeMessage in class StatusMessage

hasMoreInformation

public boolean hasMoreInformation()
returns true if there is more player information in this message

Overrides:
hasMoreInformation in class StatusMessage

resetInformation

public void resetInformation()
resets the information pointer, so you could start back at the beginning

Overrides:
resetInformation in class StatusMessage

nextInformation

public void nextInformation()
if you want to access the next information object

Overrides:
nextInformation in class StatusMessage

getPlayerName

public java.lang.String getPlayerName()
Overrides:
getPlayerName in class StatusMessage

getPlayerColor

public int getPlayerColor()
Overrides:
getPlayerColor in class StatusMessage

getPlayerID

public int getPlayerID()
Overrides:
getPlayerID in class StatusMessage