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

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

public class ConfigChangeCompositeImpl
extends ConfigChange

Composite implementation of the CONFCH abstract message. It wraps Local/Shared/Static parts in single object allowing to presenting a nice facade for users.

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
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ConfigChange
ConfigChange.ConfigChangeUpdate
 
Field Summary
protected  ConfigChangeLocalImpl partLocal
           
protected  ConfigChangeStaticImpl partStatic
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ConfigChange
PROTOTYPE, SimTime
 
Constructor Summary
ConfigChangeCompositeImpl()
          Parameter-less contructor for the message.
ConfigChangeCompositeImpl(ConfigChangeCompositeImpl original)
          Cloning constructor.
ConfigChangeCompositeImpl(ConfigChangeLocalImpl partLocal, ConfigChangeSharedImpl partShared, ConfigChangeStaticImpl partStatic)
          Composite-impl constructor.
 
Method Summary
 java.lang.String getAction()
          Name of current BDI action.
 UnrealId getBotId()
          Unique Id of the bot.
 UnrealId getId()
          Id of this config message.
 ConfigChangeLocal getLocal()
           
 java.lang.String getName()
          The bot's name.
 Rotation getRotationRate()
          Bot rotation rate.
 ConfigChangeShared getShared()
           
 double getSpeedMultiplier()
          Bots default speed will be multiplied by this number.
 ConfigChangeStatic getStatic()
           
 double getVisionTime()
          The delay between two synchronous batches (can range from 0.1 to 2 seconds).
 boolean isAutoPickupOff()
          It enables/disables automatic pickup of the bot.
 boolean isAutoTrace()
          True if the bot is using auto ray tracing (is provided with synchronous ATR messages).
 boolean isDrawTraceLines()
          if the GB should draw lines representing the auto ray traces of the bot (for more information see ATR message).
 boolean isInvulnerable()
          If bot is invulnerable (cannot die) or not.
 boolean isManualSpawn()
          True if we have to spawn the bot manually after each death
 boolean isShowDebug()
          If some additional debug information will be shown in the UT2004 server console window.
 boolean isShowFocalPoint()
          If true an actor visualizing the location the bot is actually looking at will appear in the game.
 boolean isSynchronousOff()
          It informs if sending of all GB synchronous messages is enabled or disabled.
 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 cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ConfigChange
getSimTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

partStatic

protected ConfigChangeStaticImpl partStatic

partLocal

protected ConfigChangeLocalImpl partLocal
Constructor Detail

ConfigChangeCompositeImpl

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


ConfigChangeCompositeImpl

public ConfigChangeCompositeImpl(ConfigChangeLocalImpl partLocal,
                                 ConfigChangeSharedImpl partShared,
                                 ConfigChangeStaticImpl partStatic)
Composite-impl constructor. It assembles the message from its three fragments - local/shared/static.

Parameters:
partLocal - local-part of the message
partShared - shared-part of the message
partStatic - static-part of the message

ConfigChangeCompositeImpl

public ConfigChangeCompositeImpl(ConfigChangeCompositeImpl original)
Cloning constructor.

Parameters:
original -
Method Detail

setSimTime

public void setSimTime(long SimTime)
Description copied from class: ConfigChange
Used by Yylex to slip correct time of the object or programmatically.

Overrides:
setSimTime in class ConfigChange

getStatic

public ConfigChangeStatic getStatic()

getLocal

public ConfigChangeLocal getLocal()

getShared

public ConfigChangeShared getShared()

getId

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

Specified by:
getId in interface IWorldObject
Specified by:
getId in class ConfigChange
Returns:

getBotId

public UnrealId getBotId()
Description copied from class: ConfigChange
Unique Id of the bot.

Specified by:
getBotId in class ConfigChange

isManualSpawn

public boolean isManualSpawn()
Description copied from class: ConfigChange
True if we have to spawn the bot manually after each death

Specified by:
isManualSpawn in class ConfigChange

isAutoTrace

public boolean isAutoTrace()
Description copied from class: ConfigChange
True if the bot is using auto ray tracing (is provided with synchronous ATR messages). See ATR messages for more details.

Specified by:
isAutoTrace in class ConfigChange

getName

public java.lang.String getName()
Description copied from class: ConfigChange
The bot's name.

Specified by:
getName in class ConfigChange

getSpeedMultiplier

public double getSpeedMultiplier()
Description copied from class: ConfigChange
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).

Specified by:
getSpeedMultiplier in class ConfigChange

getRotationRate

public Rotation getRotationRate()
Description copied from class: ConfigChange
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)

Specified by:
getRotationRate in class ConfigChange

isInvulnerable

public boolean isInvulnerable()
Description copied from class: ConfigChange
If bot is invulnerable (cannot die) or not.

Specified by:
isInvulnerable in class ConfigChange

getVisionTime

public double getVisionTime()
Description copied from class: ConfigChange
The delay between two synchronous batches (can range from 0.1 to 2 seconds).

Specified by:
getVisionTime in class ConfigChange

isShowDebug

public boolean isShowDebug()
Description copied from class: ConfigChange
If some additional debug information will be shown in the UT2004 server console window.

Specified by:
isShowDebug in class ConfigChange

isShowFocalPoint

public boolean isShowFocalPoint()
Description copied from class: ConfigChange
If true an actor visualizing the location the bot is actually looking at will appear in the game.

Specified by:
isShowFocalPoint in class ConfigChange

isDrawTraceLines

public boolean isDrawTraceLines()
Description copied from class: ConfigChange
if the GB should draw lines representing the auto ray traces of the bot (for more information see ATR message).

Specified by:
isDrawTraceLines in class ConfigChange

isSynchronousOff

public boolean isSynchronousOff()
Description copied from class: ConfigChange
It informs if sending of all GB synchronous messages is enabled or disabled.

Specified by:
isSynchronousOff in class ConfigChange

isAutoPickupOff

public boolean isAutoPickupOff()
Description copied from class: ConfigChange
It enables/disables automatic pickup of the bot. If true the items can be picked up through PICK command.

Specified by:
isAutoPickupOff in class ConfigChange

getAction

public java.lang.String getAction()
Description copied from class: ConfigChange
Name of current BDI action.

Specified by:
getAction in class ConfigChange

toString

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

toHtmlString

public java.lang.String toHtmlString()
Overrides:
toHtmlString in class ConfigChange