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

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

public class SetName
extends CommandMessage

Representation of the GameBots2004 command SETNAME. Sets the name of the bot.


Field Summary
protected  String Name
          New name of the bot.
static String PROTOTYPE
          Example how the message looks like - used during parser tests.
 
Constructor Summary
SetName()
          Creates new instance of command SetName.
SetName(SetName original)
          Cloning constructor.
SetName(String Name)
          Creates new instance of command SetName.
 
Method Summary
 String getName()
          New name of the bot.
 SetName setName(String Name)
          New name of the bot.
 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

PROTOTYPE

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

See Also:
Constant Field Values

Name

protected String Name
New name of the bot.

Constructor Detail

SetName

public SetName(String Name)
Creates new instance of command SetName. Sets the name of the bot. Corresponding GameBots message for this command is SETNAME.

Parameters:
Name - New name of the bot.

SetName

public SetName()
Creates new instance of command SetName. Sets the name of the bot. Corresponding GameBots message for this command is SETNAME.

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


SetName

public SetName(SetName original)
Cloning constructor.

Parameters:
original -
Method Detail

getName

public String getName()
New name of the bot.


setName

public SetName setName(String Name)
New name of the bot.


toString

public String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


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