|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT> cz.cuni.amis.pogamut.base.agent.module.SensorModule<UDKBot> cz.cuni.amis.pogamut.udk.agent.module.sensomotoric.AgentConfig
public class AgentConfig
Memory module specialized on the agent's configuration inside UT2004.
It should be instantiated inside IUT2004BotController#prepareBot(UT2004Bot)()
class and it may be used since
IUDKBotController.botInitialized(cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.GameInfo, ConfigChange, cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.InitedMessage)
is called.
Field Summary |
---|
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.SensorModule |
---|
worldView |
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
---|
agent, controller, eventBus, log |
Constructor Summary | |
---|---|
AgentConfig(UDKBot bot)
Constructor. |
|
AgentConfig(UDKBot bot,
LogCategory moduleLog)
Constructor. |
Method Summary | |
---|---|
ConfigChange |
getConfig()
Retrieves the configuration of the bot inside UT2004. |
String |
getName()
The bot's name. |
Rotation |
getRotationSpeed()
Tells how fast the bot is rotating in all three directions (pitch, yaw, roll). |
double |
getSpeedMultiplier()
Bots default speed will be multiplied by this number. |
double |
getVisionTime()
The delay between two synchronous batches (can range from 0.1 to 2 seconds). |
boolean |
isAutoPickup()
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 you 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 |
isSynchronousBatchExported()
It informs whether the sending of all GB synchronous messages is enabled or disabled. |
void |
setAutoPickup(boolean state)
It enables/disables automatic pickup of the bot. |
void |
setAutoTrace(boolean state)
Enables/disables auto ray tracing feature. |
void |
setDrawTraceLines(boolean state)
If set to true an actor will appear in the game on the location the bot is actually looking at. |
void |
setInvulnerability(boolean state)
Will set godmode for bot on (bot can't be killed). |
void |
setManualSpawn(boolean state)
Enables/disables manual spawning. |
void |
setName(String newName)
You can change the name of the bot in the game. |
void |
setRotationHorizontalSpeed(double speed)
Sets how fast the bot will rotate horizontally (i.e., yaw rotation == left/right). |
void |
setRotationSpeed(Rotation rotationSpeeds)
Sets how fast the bot will rotate in all three axes (yaw/pitch/roll). |
void |
setRotationVerticalSpeed(double speed)
Sets how fast the bot will rotate vertically (i.e., pitch rotation == up/down). |
void |
setShowDebug(boolean state)
If true some additional debug information will be logged to UT2004 server console window. |
void |
setShowFocalPoint(boolean state)
If set to true a marker will appear in the game on the location the bot is actually looking at. |
void |
setSpeedMultiplier(double value)
Bots default speed will be multiplied by this number. |
void |
setSynchronousBatchExport(boolean state)
It enables/disables sending of all GB synchronous messages for the bot. |
void |
setVisionTime(double value)
Between 0.1 to 2 seconds, it sets the delay between two synchronous batches. |
protected void |
start(boolean startPaused)
Provides initialization of the module (clearing internal data structures). |
Methods inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
---|
cleanUp, getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, stop, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AgentConfig(UDKBot bot)
bot
- owner of the modulepublic AgentConfig(UDKBot bot, LogCategory moduleLog)
bot
- owner of the modulemoduleLog
- where to log module's messagesMethod Detail |
---|
public boolean isManualSpawn()
public void setManualSpawn(boolean state)
Sets if the bot will have to be respawned after death manually by RESPAWN command. If false, the bot will respawn automatically.
state
- public boolean isAutoTrace()
public void setAutoTrace(boolean state)
public String getName()
public void setName(String newName)
public double getSpeedMultiplier()
public void setSpeedMultiplier(double value)
public boolean isInvulnerable()
public void setInvulnerability(boolean state)
public double getVisionTime()
public void setVisionTime(double value)
public boolean isShowDebug()
public void setShowDebug(boolean state)
public boolean isShowFocalPoint()
public void setShowFocalPoint(boolean state)
public boolean isDrawTraceLines()
public void setDrawTraceLines(boolean state)
public boolean isSynchronousBatchExported()
public void setSynchronousBatchExport(boolean state)
public boolean isAutoPickup()
Pick
command.
public void setAutoPickup(boolean state)
Pick
command.
public Rotation getRotationSpeed()
public void setRotationHorizontalSpeed(double speed)
speed
- desired rotation speedpublic void setRotationVerticalSpeed(double speed)
speed
- desired rotation speedpublic void setRotationSpeed(Rotation rotationSpeeds)
rotationSpeeds
- desired rotation speedspublic ConfigChange getConfig()
protected void start(boolean startPaused)
start
in class AgentModule<UDKBot>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |