|
||||||||||
| 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 String |
Id
The ID of the player you want to observe. |
protected String |
Name
Name of the player you wannt to observe. |
static 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(String Name,
String Id)
Creates new instance of command InitializeObserver. |
|
| Method Summary | |
|---|---|
String |
getId()
The ID of the player you want to observe. |
String |
getName()
Name of the player you wannt to observe. |
InitializeObserver |
setId(String Id)
The ID of the player you want to observe. |
InitializeObserver |
setName(String Name)
Name of the player you wannt to observe. |
String |
toHtmlString()
|
String |
toMessage()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROTOTYPE
protected String Name
protected String Id
| Constructor Detail |
|---|
public InitializeObserver(String Name,
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 String getName()
public InitializeObserver setName(String Name)
public String getId()
public InitializeObserver setId(String Id)
public String toString()
toString in class CommandMessagepublic String toHtmlString()
public String toMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||