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

Package class diagram package 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  String MapName
          Name of the new map.
static 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(String MapName)
          Creates new instance of command ChangeMap.
 
Method Summary
 String getMapName()
          Name of the new map.
 ChangeMap setMapName(String MapName)
          Name of the new map.
 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

MapName

protected String MapName
Name of the new map.

Constructor Detail

ChangeMap

public ChangeMap(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 String getMapName()
Name of the new map.


setMapName

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


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.