cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class ConfigChange

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ConfigChange
All Implemented Interfaces:
IWorldChangeEvent, IWorldEvent, IWorldObject, ICompositeWorldObject, Event
Direct Known Subclasses:
ConfigChangeCompositeImpl, ConfigChangeMessage

public abstract class ConfigChange
extends InfoMessage
implements IWorldEvent, IWorldChangeEvent, ICompositeWorldObject

Abstract definition of the GameBots2004 message CONFCH.

Complete message documentation: Asynchronous message. Message sent when the bot configuration changed - each agent has a lot of parameters affecting his state in the environment. See each property for the details.


Nested Class Summary
static class ConfigChange.ConfigChangeUpdate
           
 
Field Summary
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  long SimTime
           
 
Constructor Summary
ConfigChange()
          Parameter-less contructor for the message.
 
Method Summary
abstract  java.lang.String getAction()
          Name of current BDI action.
abstract  UnrealId getBotId()
          Unique Id of the bot.
abstract  UnrealId getId()
          Id of this config message.
abstract  java.lang.String getName()
          The bot's name.
abstract  Rotation getRotationRate()
          Bot rotation rate.
 long getSimTime()
          Returns the simulation time when the event has occurred.
abstract  double getSpeedMultiplier()
          Bots default speed will be multiplied by this number.
abstract  double getVisionTime()
          The delay between two synchronous batches (can range from 0.1 to 2 seconds).
abstract  boolean isAutoPickupOff()
          It enables/disables automatic pickup of the bot.
abstract  boolean isAutoTrace()
          True if the bot is using auto ray tracing (is provided with synchronous ATR messages).
abstract  boolean isDrawTraceLines()
          if the GB should draw lines representing the auto ray traces of the bot (for more information see ATR message).
abstract  boolean isInvulnerable()
          If bot is invulnerable (cannot die) or not.
abstract  boolean isManualSpawn()
          True if we have to spawn the bot manually after each death
abstract  boolean isShowDebug()
          If some additional debug information will be shown in the UT2004 server console window.
abstract  boolean isShowFocalPoint()
          If true an actor visualizing the location the bot is actually looking at will appear in the game.
abstract  boolean isSynchronousOff()
          It informs if sending of all GB synchronous messages is enabled or disabled.
protected  void setSimTime(long SimTime)
          Used by Yylex to slip correct time of the object or programmatically.
 java.lang.String toHtmlString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject
getLocal, getShared, getStatic
 

Field Detail

PROTOTYPE

public static final java.lang.String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

SimTime

protected long SimTime
Constructor Detail

ConfigChange

public ConfigChange()
Parameter-less contructor for the message.

Method Detail

getSimTime

public long getSimTime()
Description copied from interface: IWorldEvent
Returns the simulation time when the event has occurred.

Specified by:
getSimTime in interface IWorldChangeEvent
Specified by:
getSimTime in interface IWorldEvent
Specified by:
getSimTime in interface IWorldObject
Returns:
timestamp

setSimTime

protected void setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.


getId

public abstract UnrealId getId()
Id of this config message. This Id is generated from BotId, string "_CONFCH" is added at the end.

Specified by:
getId in interface IWorldObject
Returns:

getBotId

public abstract UnrealId getBotId()
Unique Id of the bot.


isManualSpawn

public abstract boolean isManualSpawn()
True if we have to spawn the bot manually after each death


isAutoTrace

public abstract boolean isAutoTrace()
True if the bot is using auto ray tracing (is provided with synchronous ATR messages). See ATR messages for more details.


getName

public abstract java.lang.String getName()
The bot's name.


getSpeedMultiplier

public abstract double getSpeedMultiplier()
Bots default speed will be multiplied by this number. Ranges from 0.1 to 2 (default, can be set in ini in [GameBots2004.RemoteBot] MaxSpeed).


getRotationRate

public abstract Rotation getRotationRate()
Bot rotation rate. Default rotation rate is: (Pitch=3072,Yaw=60000,Roll=2048) and may be configured in ini file in [GameBots2004.RemoteBot] DefaultRotationRate. (pitch - up/down, yaw - left/right, roll - equivalent of doing a cartwheel)


isInvulnerable

public abstract boolean isInvulnerable()
If bot is invulnerable (cannot die) or not.


getVisionTime

public abstract double getVisionTime()
The delay between two synchronous batches (can range from 0.1 to 2 seconds).


isShowDebug

public abstract boolean isShowDebug()
If some additional debug information will be shown in the UT2004 server console window.


isShowFocalPoint

public abstract boolean isShowFocalPoint()
If true an actor visualizing the location the bot is actually looking at will appear in the game.


isDrawTraceLines

public abstract boolean isDrawTraceLines()
if the GB should draw lines representing the auto ray traces of the bot (for more information see ATR message).


isSynchronousOff

public abstract boolean isSynchronousOff()
It informs if sending of all GB synchronous messages is enabled or disabled.


isAutoPickupOff

public abstract boolean isAutoPickupOff()
It enables/disables automatic pickup of the bot. If true the items can be picked up through PICK command.


getAction

public abstract java.lang.String getAction()
Name of current BDI action.


toString

public java.lang.String toString()
Overrides:
toString in class InfoMessage

toHtmlString

public java.lang.String toHtmlString()