|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.CommandMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.Configuration
public class Configuration
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 |
---|
public static final java.lang.String PROTOTYPE
protected UnrealId Id
protected java.lang.Boolean AutoTrace
protected java.lang.Boolean ManualSpawn
protected java.lang.String Name
protected java.lang.String Action
protected java.lang.Double SpeedMultiplier
protected Rotation RotationRate
protected java.lang.Boolean Invulnerable
protected java.lang.Double VisionTime
protected java.lang.Boolean ShowDebug
protected java.lang.Boolean ShowFocalPoint
protected java.lang.Boolean DrawTraceLines
protected java.lang.Boolean SynchronousOff
protected java.lang.Boolean AutoPickupOff
Constructor Detail |
---|
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)
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.public Configuration()
public Configuration(Configuration original)
original
- Method Detail |
---|
public UnrealId getId()
public Configuration setId(UnrealId Id)
public java.lang.Boolean isAutoTrace()
public Configuration setAutoTrace(java.lang.Boolean AutoTrace)
public java.lang.Boolean isManualSpawn()
public Configuration setManualSpawn(java.lang.Boolean ManualSpawn)
public java.lang.String getName()
public Configuration setName(java.lang.String Name)
public java.lang.String getAction()
public Configuration setAction(java.lang.String Action)
public java.lang.Double getSpeedMultiplier()
public Configuration setSpeedMultiplier(java.lang.Double SpeedMultiplier)
public Rotation getRotationRate()
public Configuration setRotationRate(Rotation RotationRate)
public java.lang.Boolean isInvulnerable()
public Configuration setInvulnerable(java.lang.Boolean Invulnerable)
public java.lang.Double getVisionTime()
public Configuration setVisionTime(java.lang.Double VisionTime)
public java.lang.Boolean isShowDebug()
public Configuration setShowDebug(java.lang.Boolean ShowDebug)
public java.lang.Boolean isShowFocalPoint()
public Configuration setShowFocalPoint(java.lang.Boolean ShowFocalPoint)
public java.lang.Boolean isDrawTraceLines()
public Configuration setDrawTraceLines(java.lang.Boolean DrawTraceLines)
public java.lang.Boolean isSynchronousOff()
public Configuration setSynchronousOff(java.lang.Boolean SynchronousOff)
public java.lang.Boolean isAutoPickupOff()
public Configuration setAutoPickupOff(java.lang.Boolean AutoPickupOff)
public java.lang.String toString()
toString
in class CommandMessage
public java.lang.String toHtmlString()
public java.lang.String toMessage()
public void copy(ConfigChange confCh)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |