cz.cuni.amis.pogamut.udk.communication.messages.gbcommands
Class InitializeObserver

Package class diagram package InitializeObserver
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.udk.communication.messages.gbcommands.InitializeObserver

public class InitializeObserver
extends CommandMessage

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. Corresponding GameBots command is INIT.


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.
 
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

Name

protected String Name
Name of the player you wannt to observe.


Id

protected String Id
The ID of the player you want to observe.

Constructor Detail

InitializeObserver

public InitializeObserver(String Name,
                          String Id)
Creates new instance of command InitializeObserver. 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. Corresponding GameBots message for this command is INIT.

Parameters:
Name - Name of the player you wannt to observe.
Id - The ID of the player you want to observe.

InitializeObserver

public InitializeObserver()
Creates new instance of command InitializeObserver. 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. Corresponding GameBots message for this command is INIT.

WARNING: this is empty-command constructor, you have to use setters to fill it up!


InitializeObserver

public InitializeObserver(InitializeObserver original)
Cloning constructor.

Method Detail

getName

public String getName()
Name of the player you wannt to observe.


setName

public InitializeObserver setName(String Name)
Name of the player you wannt to observe.


getId

public String getId()
The ID of the player you want to observe.


setId

public InitializeObserver setId(String Id)
The ID of the player you want to observe.


toString

public String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.