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

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

public class ChangeMap
extends CommandMessage

Representation of the GameBots2004 command CHANGEMAP. Will change map to MapName - map must exist on server (won't be tested), will send MAPCHANGE message. When map change occurs all connections to the server will be shutted down.


Field Summary
protected  java.lang.String MapName
          Name of the new map.
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
 
Constructor Summary
ChangeMap()
          Creates new instance of command ChangeMap.
ChangeMap(ChangeMap original)
          Cloning constructor.
ChangeMap(java.lang.String MapName)
          Creates new instance of command ChangeMap.
 
Method Summary
 java.lang.String getMapName()
          Name of the new map.
 ChangeMap setMapName(java.lang.String MapName)
          Name of the new map.
 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

MapName

protected java.lang.String MapName
Name of the new map.

Constructor Detail

ChangeMap

public ChangeMap(java.lang.String MapName)
Creates new instance of command ChangeMap. Will change map to MapName - map must exist on server (won't be tested), will send MAPCHANGE message. When map change occurs all connections to the server will be shutted down. Corresponding GameBots message for this command is CHANGEMAP.

Parameters:
MapName - Name of the new map.

ChangeMap

public ChangeMap()
Creates new instance of command ChangeMap. Will change map to MapName - map must exist on server (won't be tested), will send MAPCHANGE message. When map change occurs all connections to the server will be shutted down. Corresponding GameBots message for this command is CHANGEMAP.

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


ChangeMap

public ChangeMap(ChangeMap original)
Cloning constructor.

Parameters:
original -
Method Detail

getMapName

public java.lang.String getMapName()
Name of the new map.


setMapName

public ChangeMap setMapName(java.lang.String MapName)
Name of the new map.


toString

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

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()