java.lang.Object
org.zazof.jteg.Message
org.zazof.jteg.ExitMessage
- public class ExitMessage
- extends Message
| Fields inherited from class org.zazof.jteg.Message |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
$playerNumber
private int $playerNumber
ExitMessage
public ExitMessage(Message nextMessage)
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 Message
getMessageName
public java.lang.String getMessageName()
- method from Message interface
- Specified by:
getMessageName in class Message
getExitingPlayer
public int getExitingPlayer()
- returns the information in this message, namely the player_id
who is exiting the game.