cz.cuni.amis.pogamut.udk.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.udk.communication.messages.gbcommands.ChangeMap

public class ChangeMap
extends CommandMessage

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 command is CHANGEMAP.


Field Summary
protected  String MapName
          Name of the new map.
protected  boolean NotifyGame
          If set to True game object will be notified about map change, otherwise it will not and map will be changed immediately.
 
Constructor Summary
ChangeMap()
          Creates new instance of command ChangeMap.
ChangeMap(ChangeMap original)
          Cloning constructor.
ChangeMap(String MapName, boolean NotifyGame)
          Creates new instance of command ChangeMap.
 
Method Summary
 String getMapName()
          Name of the new map.
 boolean isNotifyGame()
          If set to True game object will be notified about map change, otherwise it will not and map will be changed immediately.
 ChangeMap setMapName(String MapName)
          Name of the new map.
 ChangeMap setNotifyGame(boolean NotifyGame)
          If set to True game object will be notified about map change, otherwise it will not and map will be changed immediately.
 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

MapName

protected String MapName
Name of the new map.


NotifyGame

protected boolean NotifyGame
If set to True game object will be notified about map change, otherwise it will not and map will be changed immediately. Setting this to false will for example skip showing the stats in deathmatch game.

Constructor Detail

ChangeMap

public ChangeMap(String MapName,
                 boolean NotifyGame)
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.
NotifyGame - If set to True game object will be notified about map change, otherwise it will not and map will be changed immediately. Setting this to false will for example skip showing the stats in deathmatch game.

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!


ChangeMap

public ChangeMap(ChangeMap original)
Cloning constructor.

Method Detail

getMapName

public String getMapName()
Name of the new map.


setMapName

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


isNotifyGame

public boolean isNotifyGame()
If set to True game object will be notified about map change, otherwise it will not and map will be changed immediately. Setting this to false will for example skip showing the stats in deathmatch game.


setNotifyGame

public ChangeMap setNotifyGame(boolean NotifyGame)
If set to True game object will be notified about map change, otherwise it will not and map will be changed immediately. Setting this to false will for example skip showing the stats in deathmatch game.


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.