Property | Type | Description | |
---|---|---|---|
activeTextBubbles | LinkedList |
||
conversations | ArrayList>.Dictionary | ||
currentConversation | |||
currentConversationBubble | |||
currentConversationState | int | ||
interactionAlertEventHandler | HandleEvent | ||
interactionEventHandler | HandleEvent | ||
npcStateBubbles | TextBubble>.Dictionary | ||
npcStates | string>.Dictionary | ||
spontaneousConversationEventHandler | HandleEvent | ||
textFont | |||
textbubbleImage | Microsoft.Xna.Framework.Graphics.Texture2D |
Method | Description | |
---|---|---|
DialogueManager ( |
Constructs the basics of the DialogueManager class and prepares it to handle dialogue and conversation.
|
|
Draw ( |
Draws all the active text bubbles in their appropriate place.
|
|
EndConversation ( string entityName ) : void |
Ends all current conversations and resets the conversation handles and anchors.
|
|
Load ( Dictionary |
Loads the stuff.
|
|
StartConversation ( String entityName, Entity entity ) : bool |
Starts a conversation with a given entity. This entity ID is used to identify which conversation to execute.
|
|
Unregister ( |
Seems legit.
|
|
Update ( |
Keeps DialogueManager up-to-date. Makes sure no conversations are still on going. Manages the checking of exit conditions for text bubbles.
|
Method | Description | |
---|---|---|
interact ( |
Is used to interact with NPCs. If there is no conversation going, it will initialize one. If the end of a conversation has been reached, it will end the conversation.
|
|
interactAlert ( |
Handles an event for an interaction alert, such as a "close poximity" alert or a flagged NPC.
|
|
spontaneousConversation ( |
Adds the ability for spontaneous conversation, such as timed text boxes or temporary text boxes.
|
public DialogueManager ( |
||
gameReference | ||
textFont | ||
return | System |
public Draw ( |
||
context | ||
return | void |
public EndConversation ( string entityName ) : void | ||
entityName | string | |
return | void |
public Load ( Dictionary |
||
importedConversations | Dictionary |
|
return | void |
public StartConversation ( String entityName, Entity entity ) : bool | ||
entityName | String | The entity to begin conversing with. Used as a handle to pick the conversation "column." |
entity | Entity | |
return | bool |
public Unregister ( |
||
gameREFERENCEOFDOOMFORTHESAVINGOFTHEUNIVERSE | yep | |
return | void |
public Update ( |
||
gameTime | ||
gameReference | ||
return | void |
protected interact ( |
||
firedEvent | The event of the fired thingy. | |
return | void |
protected interactAlert ( |
||
firedEvent | The incoming event. | |
return | void |
protected spontaneousConversation ( |
||
firedEvent | The incoming event. | |
return | void |
protected ArrayList,System.Collections currentConversation | ||
return |
protected TextBubble,PantheonPrototype currentConversationBubble | ||
return |
protected HandleEvent interactionAlertEventHandler | ||
return | HandleEvent |
protected HandleEvent interactionEventHandler | ||
return | HandleEvent |
protected Dictionary |
||
return | TextBubble>.Dictionary |
protected HandleEvent spontaneousConversationEventHandler | ||
return | HandleEvent |
protected SpriteFont,Microsoft.Xna.Framework.Graphics textFont | ||
return |