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

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

public class KillBot
extends CommandMessage

Representation of the GameBots2004 command KILL. Use this to kill the bot. The bot may respawn immediately - this depends on current server and bot settings (manual or auto spawning. Works also for native bots and human players. Can be issued only by control server.


Field Summary
protected  UnrealId Id
          Id of the bot to be killed.
static String PROTOTYPE
          Example how the message looks like - used during parser tests.
 
Constructor Summary
KillBot()
          Creates new instance of command KillBot.
KillBot(KillBot original)
          Cloning constructor.
KillBot(UnrealId Id)
          Creates new instance of command KillBot.
 
Method Summary
 UnrealId getId()
          Id of the bot to be killed.
 KillBot setId(UnrealId Id)
          Id of the bot to be killed.
 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

Id

protected UnrealId Id
Id of the bot to be killed.

Constructor Detail

KillBot

public KillBot(UnrealId Id)
Creates new instance of command KillBot. Use this to kill the bot. The bot may respawn immediately - this depends on current server and bot settings (manual or auto spawning. Works also for native bots and human players. Can be issued only by control server. Corresponding GameBots message for this command is KILL.

Parameters:
Id - Id of the bot to be killed.

KillBot

public KillBot()
Creates new instance of command KillBot. Use this to kill the bot. The bot may respawn immediately - this depends on current server and bot settings (manual or auto spawning. Works also for native bots and human players. Can be issued only by control server. Corresponding GameBots message for this command is KILL.

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


KillBot

public KillBot(KillBot original)
Cloning constructor.

Parameters:
original -
Method Detail

getId

public UnrealId getId()
Id of the bot to be killed.


setId

public KillBot setId(UnrealId Id)
Id of the bot to be killed.


toString

public String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


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