public class Communication extends BotCommands
act, worldView
agent, controller, eventBus, log
Constructor and Description |
---|
Communication(UT2004Bot agent,
Logger log)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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(UnrealId id,
String text,
double fadeOut)
Sends a private message to desired bot (specified by Id).
|
void |
sendPrivateTextMessage(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.
|
cleanUp, getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toString
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(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(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)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.