|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.CommandMessage cz.cuni.amis.pogamut.udk.communication.messages.gbcommands.ChangeMap
public class 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 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 |
---|
protected String MapName
protected boolean NotifyGame
Constructor Detail |
---|
public ChangeMap(String MapName, boolean NotifyGame)
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.public ChangeMap()
public ChangeMap(ChangeMap original)
Method Detail |
---|
public String getMapName()
public ChangeMap setMapName(String MapName)
public boolean isNotifyGame()
public ChangeMap setNotifyGame(boolean NotifyGame)
public String toString()
toString
in class CommandMessage
public String toHtmlString()
public String toMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |