A ConversationNode is the root node of a conversation.
More...
#include <ConversationNode.h>
List of all members.
Detailed Description
A ConversationNode is the root node of a conversation.
Member Enumeration Documentation
- Enumerator:
EventsOnEnter |
Event to fire when the conversation starts.
|
EventsOnExit |
Event to fire when the conversation exits.
|
Constructor & Destructor Documentation
LibCT::ConversationNode::ConversationNode |
( |
Node * |
pParent, |
|
|
const std::string & |
text |
|
) |
| [explicit] |
LibCT::ConversationNode::~ConversationNode |
( |
| ) |
|
Member Function Documentation
void LibCT::ConversationNode::Activate |
( |
| ) |
|
Called when the conversation is activated.
void LibCT::ConversationNode::Deactivate |
( |
| ) |
|
Called when the conversation is deactivated.
PhaseNode* LibCT::ConversationNode::GetInitialPhase |
( |
| ) |
const |
Get the initial phase node, which is the first 'proper' node Although we may have had to pass through a few decisions to find it
- Returns:
- The first node from the path beginning at m_pInitialNode that's a phase
Node* LibCT::ConversationNode::GetNext |
( |
| ) |
[virtual] |
Get active connection
- Returns:
- The node this one is actively connected to
Reimplemented from LibCT::Node.
Load a conversation from a file
- Returns:
- A pointer to the loaded Project (calling code owns pointer)
- Exceptions:
-
- Parameters:
-
Save a conversation to a file
- Exceptions:
-
- Parameters:
-
pConversation | Conversation to save |
pOutput | InputStream to save to |
bool LibCT::ConversationNode::SerialiseImpl |
( |
InputStream * |
pInput | ) |
[virtual] |
Implementation of serialisation
- Returns:
- True if successful
Reimplemented from LibCT::Node.
bool LibCT::ConversationNode::SerialiseImpl |
( |
OutputStream * |
pOutput | ) |
[virtual] |
Implementation of serialisation
- Returns:
- True if successful
Reimplemented from LibCT::Node.
Member Data Documentation
A list of all events this conversation registered.
The documentation for this class was generated from the following file: