cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands
Class RemoveRay

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.RemoveRay

public class RemoveRay
extends CommandMessage

Representation of the GameBots2004 command REMOVERAY. Will remove a ray from auto ray trace specified by Id.


Field Summary
protected  java.lang.String Id
          Id of the ray to be removed.
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
 
Constructor Summary
RemoveRay()
          Creates new instance of command RemoveRay.
RemoveRay(RemoveRay original)
          Cloning constructor.
RemoveRay(java.lang.String Id)
          Creates new instance of command RemoveRay.
 
Method Summary
 java.lang.String getId()
          Id of the ray to be removed.
 RemoveRay setId(java.lang.String Id)
          Id of the ray to be removed.
 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

PROTOTYPE

public static final java.lang.String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Id

protected java.lang.String Id
Id of the ray to be removed. If Id = "All" all rays will be removedr.

Constructor Detail

RemoveRay

public RemoveRay(java.lang.String Id)
Creates new instance of command RemoveRay. Will remove a ray from auto ray trace specified by Id. Corresponding GameBots message for this command is REMOVERAY.

Parameters:
Id - Id of the ray to be removed. If Id = "All" all rays will be removedr.

RemoveRay

public RemoveRay()
Creates new instance of command RemoveRay. Will remove a ray from auto ray trace specified by Id. Corresponding GameBots message for this command is REMOVERAY.

WARNING: this is empty-command constructor, you have to use setters to fill it up with data that should be sent to GameBots2004!


RemoveRay

public RemoveRay(RemoveRay original)
Cloning constructor.

Parameters:
original -
Method Detail

getId

public java.lang.String getId()
Id of the ray to be removed. If Id = "All" all rays will be removedr.


setId

public RemoveRay setId(java.lang.String Id)
Id of the ray to be removed. If Id = "All" all rays will be removedr.


toString

public java.lang.String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()