|
|||||||||
| Home >> All >> org >> zazof >> [ jtegServer overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.zazof.jtegServer
Class Message

java.lang.Objectorg.zazof.jtegServer.Message
- public class Message
- extends java.lang.Object
Message contains a single incoming message
| Field Summary | |
private java.lang.String |
$content
|
private GameController |
$game
|
private java.lang.String |
$messageID
|
private Player |
$player
|
private MessagePool |
$pool
|
private java.util.StringTokenizer |
$st
|
(package private) static org.apache.log4j.Category |
log
|
| Constructor Summary | |
Message(MessagePool mp)
|
|
| Method Summary | |
java.lang.String |
getContent()
|
java.util.StringTokenizer |
getContentStringTokenizer(java.lang.String delim)
|
GameController |
getGameController()
|
java.lang.String |
getMessageID()
|
Player |
getPlayer()
|
World |
getWorld()
do only use after setGameController |
void |
release()
called if this message can be reused (read: go back to the MessagePool) |
void |
setData(java.lang.String message,
Player player)
message = "messageID=content" or "messageID" |
void |
setGameController(GameController controller)
|
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
$messageID
private java.lang.String $messageID
$content
private java.lang.String $content
$pool
private MessagePool $pool
$st
private java.util.StringTokenizer $st
$player
private Player $player
$game
private GameController $game
log
static org.apache.log4j.Category log
| Constructor Detail |
Message
public Message(MessagePool mp)
| Method Detail |
setData
public void setData(java.lang.String message, Player player)
- message = "messageID=content" or "messageID"
getGameController
public GameController getGameController()
setGameController
public void setGameController(GameController controller)
getWorld
public World getWorld()
- do only use after setGameController
getMessageID
public java.lang.String getMessageID()
getContent
public java.lang.String getContent()
getContentStringTokenizer
public java.util.StringTokenizer getContentStringTokenizer(java.lang.String delim)
release
public void release()
- called if this message can be reused (read: go back to the MessagePool)
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
getPlayer
public Player getPlayer()
|
|||||||||
| Home >> All >> org >> zazof >> [ jtegServer overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.zazof.jtegServer.Message