|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcz.cuni.amis.pogamut.base.communication.messages.CommandMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.InitializeObserver
public class InitializeObserver

Representation of the GameBots2004 command INIT. Message you'll send at the beginning of the communication to start observing a player. You need to supply either name or ID of the player to observe. If you are already observing a player, you will stop observing that player and start observing the player specified by this message.
| Field Summary | |
|---|---|
protected java.lang.String |
Id
The ID of the player you want to observe. |
protected java.lang.String |
Name
Name of the player you wannt to observe. |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
| Constructor Summary | |
|---|---|
InitializeObserver()
Creates new instance of command InitializeObserver. |
|
InitializeObserver(InitializeObserver original)
Cloning constructor. |
|
InitializeObserver(java.lang.String Name,
java.lang.String Id)
Creates new instance of command InitializeObserver. |
|
| Method Summary | |
|---|---|
java.lang.String |
getId()
The ID of the player you want to observe. |
java.lang.String |
getName()
Name of the player you wannt to observe. |
InitializeObserver |
setId(java.lang.String Id)
The ID of the player you want to observe. |
InitializeObserver |
setName(java.lang.String Name)
Name of the player you wannt to observe. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toMessage()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROTOTYPE
protected java.lang.String Name
protected java.lang.String Id
| Constructor Detail |
|---|
public InitializeObserver(java.lang.String Name,
java.lang.String Id)
Name - Name of the player you wannt to observe.Id - The ID of the player you want to observe.public InitializeObserver()
public InitializeObserver(InitializeObserver original)
original - | Method Detail |
|---|
public java.lang.String getName()
public InitializeObserver setName(java.lang.String Name)
public java.lang.String getId()
public InitializeObserver setId(java.lang.String Id)
public java.lang.String toString()
toString in class CommandMessagepublic java.lang.String toHtmlString()
public java.lang.String toMessage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||