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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.zazof.jteg.Message
      extended byorg.zazof.jteg.NewPlayerMessage
          extended byorg.zazof.jteg.NewPlayerMessageProt4

public class NewPlayerMessageProt4
extends NewPlayerMessage

Message that processes "new_player=" events for protocol 4 This message is valid for following protocols: version 3: NO version 4: OK version 5: ?


Field Summary
 
Fields inherited from class org.zazof.jteg.NewPlayerMessage
DEBUG
 
Fields inherited from class org.zazof.jteg.Message
 
Constructor Summary
NewPlayerMessageProt4(Message nextMessage)
           
 
Method Summary
 java.lang.String constructMessageString(java.lang.String[] messageParts)
          This method will return a Stringrepresentation of a servermessage that corresponds to the different messageParts given as a parameter.
 
Methods inherited from class org.zazof.jteg.NewPlayerMessage
decodeMessage, getMessageName, getNewPlayerColor, getNewPlayerName, getNewPlayerNumber
 
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
 

Constructor Detail

NewPlayerMessageProt4

public NewPlayerMessageProt4(Message nextMessage)
Method Detail

constructMessageString

public java.lang.String constructMessageString(java.lang.String[] messageParts)
                                        throws UnknownMessageException
Description copied from class: Message
This method will return a Stringrepresentation of a servermessage that corresponds to the different messageParts given as a parameter. If no correct message could be constructed from the parts, 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:
constructMessageString in class NewPlayerMessage