|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.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,
Logger log)
Constructor. |
|
| Method Summary | |
|---|---|
void |
sendGlobalBubbleMessage(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(String text)
Sends global message to UT2004 in-game chat. |
void |
sendPrivateBubbleMessage(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId id,
String text,
double fadeOut)
Sends a private message to desired bot (specified by Id). |
void |
sendPrivateTextMessage(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId id,
String text)
Sends a private message to desired bot (specified by Id). |
void |
sendTeamBubbleMessage(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(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,
Logger log)
agent - AbstractUT2004Bot we will send commands forlog - Logger to be used for logging runtime/debug info.| Method Detail |
|---|
public void sendGlobalTextMessage(String text)
text - Text of the message to send.sendTeamTextMessage(String),
sendPrivateTextMessage(UnrealId, String)public void sendTeamTextMessage(String text)
text - Text of the message to send.sendGlobalTextMessage(String),
sendPrivateTextMessage(UnrealId, String)
public void sendPrivateTextMessage(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId id,
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(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(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(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId id,
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 | |||||||||