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