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

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

public class SetBotDebug
extends CommandMessage

Representation of the GameBots2004 command SETDEBUG. Sets the debug information for current bot - displayable on HUD.


Field Summary
protected  String BehName
          Name of currently active behavior.
protected  Boolean Clear
          If true then erases previously sent debug info.
protected  String FocName
          Name of current bot behavior focus - other character.
static String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  String StateName
          Name of currently active behavior state.
 
Constructor Summary
SetBotDebug()
          Creates new instance of command SetBotDebug.
SetBotDebug(Boolean Clear, String BehName, String StateName, String FocName)
          Creates new instance of command SetBotDebug.
SetBotDebug(SetBotDebug original)
          Cloning constructor.
 
Method Summary
 String getBehName()
          Name of currently active behavior.
 String getFocName()
          Name of current bot behavior focus - other character.
 String getStateName()
          Name of currently active behavior state.
 Boolean isClear()
          If true then erases previously sent debug info.
 SetBotDebug setBehName(String BehName)
          Name of currently active behavior.
 SetBotDebug setClear(Boolean Clear)
          If true then erases previously sent debug info.
 SetBotDebug setFocName(String FocName)
          Name of current bot behavior focus - other character.
 SetBotDebug setStateName(String StateName)
          Name of currently active behavior state.
 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

Clear

protected Boolean Clear
If true then erases previously sent debug info.


BehName

protected String BehName
Name of currently active behavior.


StateName

protected String StateName
Name of currently active behavior state.


FocName

protected String FocName
Name of current bot behavior focus - other character.

Constructor Detail

SetBotDebug

public SetBotDebug(Boolean Clear,
                   String BehName,
                   String StateName,
                   String FocName)
Creates new instance of command SetBotDebug. Sets the debug information for current bot - displayable on HUD. Corresponding GameBots message for this command is SETDEBUG.

Parameters:
Clear - If true then erases previously sent debug info.
BehName - Name of currently active behavior.
StateName - Name of currently active behavior state.
FocName - Name of current bot behavior focus - other character.

SetBotDebug

public SetBotDebug()
Creates new instance of command SetBotDebug. Sets the debug information for current bot - displayable on HUD. Corresponding GameBots message for this command is SETDEBUG.

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


SetBotDebug

public SetBotDebug(SetBotDebug original)
Cloning constructor.

Parameters:
original -
Method Detail

isClear

public Boolean isClear()
If true then erases previously sent debug info.


setClear

public SetBotDebug setClear(Boolean Clear)
If true then erases previously sent debug info.


getBehName

public String getBehName()
Name of currently active behavior.


setBehName

public SetBotDebug setBehName(String BehName)
Name of currently active behavior.


getStateName

public String getStateName()
Name of currently active behavior state.


setStateName

public SetBotDebug setStateName(String StateName)
Name of currently active behavior state.


getFocName

public String getFocName()
Name of current bot behavior focus - other character.


setFocName

public SetBotDebug setFocName(String FocName)
Name of current bot behavior focus - other character.


toString

public String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


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