Package edu.tufts.hrilab.ava.display
Class DialogueManager
java.lang.Object
edu.tufts.hrilab.ava.display.DialogueManager
Manages the dialogue messages for the Ava Display Component.
Handles adding, removing, and clearing dialogue messages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessage(String message, String speaker) Adds a new dialogue message to the dialogue queue.voidCancels all messages in recentDialogueReturns messages to be handled based off of the chat settingbooleanChecks the chat modevoidsetUseChat(boolean useChat) Toggles the chat mode of the manager
-
Constructor Details
-
DialogueManager
public DialogueManager()
-
-
Method Details
-
addMessage
Adds a new dialogue message to the dialogue queue.- Parameters:
message- The text of the dialogue messagespeaker- The speaker of the dialogue message
-
cancelAllMessages
public void cancelAllMessages()Cancels all messages in recentDialogue -
getMessages
Returns messages to be handled based off of the chat setting- Returns:
- All active dialogue if using chat, most recent message if not
-
setUseChat
public void setUseChat(boolean useChat) Toggles the chat mode of the manager- Parameters:
useChat- true if to use chat, false otherwise
-
isUseChat
public boolean isUseChat()Checks the chat mode- Returns:
- True if using the chat, false otherwise
-