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

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.Configuration

public class Configuration
extends CommandMessage

Representation of the GameBots2004 command CONF. Configures various attributes of the bot. This command can be issued also by bot on the bot itself (in this case Id attribute is not parsed).


Field Summary
protected  java.lang.String Action
          Sets atomic action for the bot (BDI).
protected  java.lang.Boolean AutoPickupOff
          It enables/disables automatic pickup of the bot.
protected  java.lang.Boolean AutoTrace
          Enables/disables auto ray tracing feature.
protected  java.lang.Boolean DrawTraceLines
          If set to true, the rays of automatic ray tracing (ATR messages) will be drawn in the game.
protected  UnrealId Id
          Id of the target bot.
protected  java.lang.Boolean Invulnerable
          Will set godmode for bot on (bot can't be killed).
protected  java.lang.Boolean ManualSpawn
          Sets if the bot wil have tol be respawned after death manually by RESPAWN command.
protected  java.lang.String Name
          You can change the name of the bot in the game.
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  Rotation RotationRate
          Sets the bot rotation rate.
protected  java.lang.Boolean ShowDebug
          If true some additional debug information will be logged to UT2004 server console window.
protected  java.lang.Boolean ShowFocalPoint
          If set to true an actor will appear in the game on the location the bot is actually looking at.
protected  java.lang.Double SpeedMultiplier
          Bots default speed will be multiplied by this number.
protected  java.lang.Boolean SynchronousOff
          It enables/disables sending of all GB synchronous messages for the bot.
protected  java.lang.Double VisionTime
          Between 0.1 to 2 seconds, it sets the delay between two synchronous batches.
 
Constructor Summary
Configuration()
          Creates new instance of command Configuration.
Configuration(Configuration original)
          Cloning constructor.
Configuration(UnrealId Id, java.lang.Boolean AutoTrace, java.lang.Boolean ManualSpawn, java.lang.String Name, java.lang.String Action, java.lang.Double SpeedMultiplier, Rotation RotationRate, java.lang.Boolean Invulnerable, java.lang.Double VisionTime, java.lang.Boolean ShowDebug, java.lang.Boolean ShowFocalPoint, java.lang.Boolean DrawTraceLines, java.lang.Boolean SynchronousOff, java.lang.Boolean AutoPickupOff)
          Creates new instance of command Configuration.
 
Method Summary
 void copy(ConfigChange confCh)
          Copy configuration from existing info message to this command.
 java.lang.String getAction()
          Sets atomic action for the bot (BDI).
 UnrealId getId()
          Id of the target bot.
 java.lang.String getName()
          You can change the name of the bot in the game.
 Rotation getRotationRate()
          Sets the bot rotation rate.
 java.lang.Double getSpeedMultiplier()
          Bots default speed will be multiplied by this number.
 java.lang.Double getVisionTime()
          Between 0.1 to 2 seconds, it sets the delay between two synchronous batches.
 java.lang.Boolean isAutoPickupOff()
          It enables/disables automatic pickup of the bot.
 java.lang.Boolean isAutoTrace()
          Enables/disables auto ray tracing feature.
 java.lang.Boolean isDrawTraceLines()
          If set to true, the rays of automatic ray tracing (ATR messages) will be drawn in the game.
 java.lang.Boolean isInvulnerable()
          Will set godmode for bot on (bot can't be killed).
 java.lang.Boolean isManualSpawn()
          Sets if the bot wil have tol be respawned after death manually by RESPAWN command.
 java.lang.Boolean isShowDebug()
          If true some additional debug information will be logged to UT2004 server console window.
 java.lang.Boolean isShowFocalPoint()
          If set to true an actor will appear in the game on the location the bot is actually looking at.
 java.lang.Boolean isSynchronousOff()
          It enables/disables sending of all GB synchronous messages for the bot.
 Configuration setAction(java.lang.String Action)
          Sets atomic action for the bot (BDI).
 Configuration setAutoPickupOff(java.lang.Boolean AutoPickupOff)
          It enables/disables automatic pickup of the bot.
 Configuration setAutoTrace(java.lang.Boolean AutoTrace)
          Enables/disables auto ray tracing feature.
 Configuration setDrawTraceLines(java.lang.Boolean DrawTraceLines)
          If set to true, the rays of automatic ray tracing (ATR messages) will be drawn in the game.
 Configuration setId(UnrealId Id)
          Id of the target bot.
 Configuration setInvulnerable(java.lang.Boolean Invulnerable)
          Will set godmode for bot on (bot can't be killed).
 Configuration setManualSpawn(java.lang.Boolean ManualSpawn)
          Sets if the bot wil have tol be respawned after death manually by RESPAWN command.
 Configuration setName(java.lang.String Name)
          You can change the name of the bot in the game.
 Configuration setRotationRate(Rotation RotationRate)
          Sets the bot rotation rate.
 Configuration setShowDebug(java.lang.Boolean ShowDebug)
          If true some additional debug information will be logged to UT2004 server console window.
 Configuration setShowFocalPoint(java.lang.Boolean ShowFocalPoint)
          If set to true an actor will appear in the game on the location the bot is actually looking at.
 Configuration setSpeedMultiplier(java.lang.Double SpeedMultiplier)
          Bots default speed will be multiplied by this number.
 Configuration setSynchronousOff(java.lang.Boolean SynchronousOff)
          It enables/disables sending of all GB synchronous messages for the bot.
 Configuration setVisionTime(java.lang.Double VisionTime)
          Between 0.1 to 2 seconds, it sets the delay between two synchronous batches.
 java.lang.String toHtmlString()
           
 java.lang.String toMessage()
           
 java.lang.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 java.lang.String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Id

protected UnrealId Id
Id of the target bot. Not used if sent as a command for the bot.


AutoTrace

protected java.lang.Boolean AutoTrace
Enables/disables auto ray tracing feature.


ManualSpawn

protected java.lang.Boolean ManualSpawn
Sets if the bot wil have tol be respawned after death manually by RESPAWN command. If false, the bot will respawn automatically.


Name

protected java.lang.String Name
You can change the name of the bot in the game.


Action

protected java.lang.String Action
Sets atomic action for the bot (BDI).


SpeedMultiplier

protected java.lang.Double SpeedMultiplier
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).


RotationRate

protected Rotation RotationRate
Sets the 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)


Invulnerable

protected java.lang.Boolean Invulnerable
Will set godmode for bot on (bot can't be killed). This can be changed just when cheating is enabled on the server. (bAllowCheats = True)


VisionTime

protected java.lang.Double VisionTime
Between 0.1 to 2 seconds, it sets the delay between two synchronous batches.


ShowDebug

protected java.lang.Boolean ShowDebug
If true some additional debug information will be logged to UT2004 server console window.


ShowFocalPoint

protected java.lang.Boolean ShowFocalPoint
If set to true an actor will appear in the game on the location the bot is actually looking at.


DrawTraceLines

protected java.lang.Boolean DrawTraceLines
If set to true, the rays of automatic ray tracing (ATR messages) will be drawn in the game.


SynchronousOff

protected java.lang.Boolean SynchronousOff
It enables/disables sending of all GB synchronous messages for the bot.


AutoPickupOff

protected java.lang.Boolean AutoPickupOff
It enables/disables automatic pickup of the bot. If true the items can be picked up through PICK command.

Constructor Detail

Configuration

public Configuration(UnrealId Id,
                     java.lang.Boolean AutoTrace,
                     java.lang.Boolean ManualSpawn,
                     java.lang.String Name,
                     java.lang.String Action,
                     java.lang.Double SpeedMultiplier,
                     Rotation RotationRate,
                     java.lang.Boolean Invulnerable,
                     java.lang.Double VisionTime,
                     java.lang.Boolean ShowDebug,
                     java.lang.Boolean ShowFocalPoint,
                     java.lang.Boolean DrawTraceLines,
                     java.lang.Boolean SynchronousOff,
                     java.lang.Boolean AutoPickupOff)
Creates new instance of command Configuration. Configures various attributes of the bot. This command can be issued also by bot on the bot itself (in this case Id attribute is not parsed). Corresponding GameBots message for this command is CONF.

Parameters:
Id - Id of the target bot. Not used if sent as a command for the bot.
AutoTrace - Enables/disables auto ray tracing feature.
ManualSpawn - Sets if the bot wil have tol be respawned after death manually by RESPAWN command. If false, the bot will respawn automatically.
Name - You can change the name of the bot in the game.
Action - Sets atomic action for the bot (BDI).
SpeedMultiplier - 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).
RotationRate - Sets the 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)
Invulnerable - Will set godmode for bot on (bot can't be killed). This can be changed just when cheating is enabled on the server. (bAllowCheats = True)
VisionTime - Between 0.1 to 2 seconds, it sets the delay between two synchronous batches.
ShowDebug - If true some additional debug information will be logged to UT2004 server console window.
ShowFocalPoint - If set to true an actor will appear in the game on the location the bot is actually looking at.
DrawTraceLines - If set to true, the rays of automatic ray tracing (ATR messages) will be drawn in the game.
SynchronousOff - It enables/disables sending of all GB synchronous messages for the bot.
AutoPickupOff - It enables/disables automatic pickup of the bot. If true the items can be picked up through PICK command.

Configuration

public Configuration()
Creates new instance of command Configuration. Configures various attributes of the bot. This command can be issued also by bot on the bot itself (in this case Id attribute is not parsed). Corresponding GameBots message for this command is CONF.

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


Configuration

public Configuration(Configuration original)
Cloning constructor.

Parameters:
original -
Method Detail

getId

public UnrealId getId()
Id of the target bot. Not used if sent as a command for the bot.


setId

public Configuration setId(UnrealId Id)
Id of the target bot. Not used if sent as a command for the bot.


isAutoTrace

public java.lang.Boolean isAutoTrace()
Enables/disables auto ray tracing feature.


setAutoTrace

public Configuration setAutoTrace(java.lang.Boolean AutoTrace)
Enables/disables auto ray tracing feature.


isManualSpawn

public java.lang.Boolean isManualSpawn()
Sets if the bot wil have tol be respawned after death manually by RESPAWN command. If false, the bot will respawn automatically.


setManualSpawn

public Configuration setManualSpawn(java.lang.Boolean ManualSpawn)
Sets if the bot wil have tol be respawned after death manually by RESPAWN command. If false, the bot will respawn automatically.


getName

public java.lang.String getName()
You can change the name of the bot in the game.


setName

public Configuration setName(java.lang.String Name)
You can change the name of the bot in the game.


getAction

public java.lang.String getAction()
Sets atomic action for the bot (BDI).


setAction

public Configuration setAction(java.lang.String Action)
Sets atomic action for the bot (BDI).


getSpeedMultiplier

public java.lang.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).


setSpeedMultiplier

public Configuration setSpeedMultiplier(java.lang.Double SpeedMultiplier)
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 Rotation getRotationRate()
Sets the 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)


setRotationRate

public Configuration setRotationRate(Rotation RotationRate)
Sets the 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 java.lang.Boolean isInvulnerable()
Will set godmode for bot on (bot can't be killed). This can be changed just when cheating is enabled on the server. (bAllowCheats = True)


setInvulnerable

public Configuration setInvulnerable(java.lang.Boolean Invulnerable)
Will set godmode for bot on (bot can't be killed). This can be changed just when cheating is enabled on the server. (bAllowCheats = True)


getVisionTime

public java.lang.Double getVisionTime()
Between 0.1 to 2 seconds, it sets the delay between two synchronous batches.


setVisionTime

public Configuration setVisionTime(java.lang.Double VisionTime)
Between 0.1 to 2 seconds, it sets the delay between two synchronous batches.


isShowDebug

public java.lang.Boolean isShowDebug()
If true some additional debug information will be logged to UT2004 server console window.


setShowDebug

public Configuration setShowDebug(java.lang.Boolean ShowDebug)
If true some additional debug information will be logged to UT2004 server console window.


isShowFocalPoint

public java.lang.Boolean isShowFocalPoint()
If set to true an actor will appear in the game on the location the bot is actually looking at.


setShowFocalPoint

public Configuration setShowFocalPoint(java.lang.Boolean ShowFocalPoint)
If set to true an actor will appear in the game on the location the bot is actually looking at.


isDrawTraceLines

public java.lang.Boolean isDrawTraceLines()
If set to true, the rays of automatic ray tracing (ATR messages) will be drawn in the game.


setDrawTraceLines

public Configuration setDrawTraceLines(java.lang.Boolean DrawTraceLines)
If set to true, the rays of automatic ray tracing (ATR messages) will be drawn in the game.


isSynchronousOff

public java.lang.Boolean isSynchronousOff()
It enables/disables sending of all GB synchronous messages for the bot.


setSynchronousOff

public Configuration setSynchronousOff(java.lang.Boolean SynchronousOff)
It enables/disables sending of all GB synchronous messages for the bot.


isAutoPickupOff

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


setAutoPickupOff

public Configuration setAutoPickupOff(java.lang.Boolean AutoPickupOff)
It enables/disables automatic pickup of the bot. If true the items can be picked up through PICK command.


toString

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

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()

copy

public void copy(ConfigChange confCh)
Copy configuration from existing info message to this command.