|
|||||||||
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.SensomotoricModule<UT2004Bot> cz.cuni.amis.pogamut.ut2004.bot.command.BotCommands cz.cuni.amis.pogamut.ut2004.bot.command.Communication
public class Communication
Class providing Pogamut2 UT2004 communication commands - send message, set dialogs, text bubble...
Field Summary |
---|
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.SensomotoricModule |
---|
act, worldView |
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
---|
agent, controller, eventBus, log |
Constructor Summary | |
---|---|
Communication(UT2004Bot agent,
java.util.logging.Logger log)
Constructor. |
Method Summary | |
---|---|
void |
sendGlobalBubbleMessage(java.lang.String text,
double fadeOut)
Sends a global message to UT2004 in-game chat and sets the text bubble visible to all human players above the bot head. |
void |
sendGlobalTextMessage(java.lang.String text)
Sends global message to UT2004 in-game chat. |
void |
sendPrivateBubbleMessage(UnrealId id,
java.lang.String text,
double fadeOut)
Sends a private message to desired bot (specified by Id). |
void |
sendPrivateTextMessage(UnrealId id,
java.lang.String text)
Sends a private message to desired bot (specified by Id). |
void |
sendTeamBubbleMessage(java.lang.String text,
double fadeOut)
Sends a message to UT2004 in-game chat and sets the text bubble visible to all human players above the bot head. |
void |
sendTeamTextMessage(java.lang.String text)
Sends a message to UT2004 in-game chat. |
Methods inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
---|
cleanUp, getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Communication(UT2004Bot agent, java.util.logging.Logger log)
agent
- AbstractUT2004Bot we will send commands forlog
- Logger to be used for logging runtime/debug info.Method Detail |
---|
public void sendGlobalTextMessage(java.lang.String text)
text
- Text of the message to send.sendTeamTextMessage(String)
,
sendPrivateTextMessage(UnrealId, String)
public void sendTeamTextMessage(java.lang.String text)
text
- Text of the message to send.sendGlobalTextMessage(String)
,
sendPrivateTextMessage(UnrealId, String)
public void sendPrivateTextMessage(UnrealId id, java.lang.String text)
id
- Here we can specify Id of the bot, that will receive this
message privately.text
- Text of the message to send.sendGlobalTextMessage(String)
,
sendTeamTextMessage(String)
public void sendGlobalBubbleMessage(java.lang.String text, double fadeOut)
text
- Text of the message and bubble.fadeOut
- Sets how long the bubble should stay visible (in seconds,
counted as 12 + fadeOut seconds - probably due to some UT
mechanics). If -1 the bubble won't be shown at all.sendPrivateBubbleMessage(UnrealId, String, double)
,
sendPrivateBubbleMessage(UnrealId, String, double)
public void sendTeamBubbleMessage(java.lang.String text, double fadeOut)
text
- Text of the message and bubble.fadeOut
- Sets how long the bubble should stay visible (in seconds,
counted as 12 + fadeOut seconds - probably due to some UT
mechanics). If -1 the bubble won't be shown at all.sendGlobalBubbleMessage(String, double)
,
sendPrivateBubbleMessage(UnrealId, String, double)
public void sendPrivateBubbleMessage(UnrealId id, java.lang.String text, double fadeOut)
id
- Here we can specify Id of the bot, that will receive this
message privately. Other players will see this message through
bubble too.text
- Text of the message and bubble.fadeOut
- Sets how long the bubble should stay visible (in seconds,
counted as 12 + fadeOut seconds - probably due to some UT
mechanics). If -1 the bubble won't be shown at all.sendGlobalBubbleMessage(String, double)
,
sendTeamBubbleMessage(String, double)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |