ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

A dialog between two characters. More...

#include <dialog.h>

Inheritance diagram for Stark::Resources::Dialog:
Collaboration diagram for Stark::Resources::Dialog:

List of all members.

Classes

class  Reply
 A topic reply. More...
class  Topic
 A dialog topic. More...

Public Types

typedef Common::Array< Topic * > TopicArray

Public Member Functions

 Dialog (Object *parent, byte subType, uint16 index, const Common::String &name)
virtual ~Dialog ()
void readData (Formats::XRCReadStream *stream) override
 Deserialize the resource static data and initial state.
void saveLoad (ResourceSerializer *serializer) override
 Persist / restore the resource state.
TopicArray listAvailableTopics ()
 List the currently available topics for this Dialog.
DialoggetNextDialog (Reply *reply)
 Obtain the Dialog which should be played at the outcome of this one, if any.
ScriptgetNextScript (Reply *reply)
 Obtain the Script which should be executed after this dialog, if any.
Common::String getDiaryTitle () const
 Get the dialog's title as shown in the diary.
int32 getCharacter () const
 Get the character's id - index in the KnowledgeSet.

Static Public Attributes

static const Type::ResourceType TYPE = Type::kDialog

Protected Member Functions

void printData () override

Protected Attributes

Common::Array< Topic_topics
uint32 _character
uint32 _hasAskAbout

Detailed Description

A dialog between two characters.

Dialogs are made of a list of topics. Each topic has a list of possible answers, one of which is played when the player selects the topic, until all the possible answers have been played.

Answers are made of a list of lines. All of the lines of an answer are played, one after the other when an answer is played. Lines reference Speech resources.

Definition at line 52 of file dialog.h.


Member Typedef Documentation

Definition at line 138 of file dialog.h.


Constructor & Destructor Documentation

Stark::Resources::Dialog::Dialog ( Object parent,
byte  subType,
uint16  index,
const Common::String name 
)

Definition at line 42 of file dialog.cpp.

Stark::Resources::Dialog::~Dialog (  )  [virtual]

Definition at line 39 of file dialog.cpp.


Member Function Documentation

int32 Stark::Resources::Dialog::getCharacter (  )  const

Get the character's id - index in the KnowledgeSet.

Definition at line 330 of file dialog.cpp.

Common::String Stark::Resources::Dialog::getDiaryTitle (  )  const

Get the dialog's title as shown in the diary.

Definition at line 326 of file dialog.cpp.

Dialog * Stark::Resources::Dialog::getNextDialog ( Dialog::Reply reply  ) 

Obtain the Dialog which should be played at the outcome of this one, if any.

Definition at line 310 of file dialog.cpp.

Script * Stark::Resources::Dialog::getNextScript ( Dialog::Reply reply  ) 

Obtain the Script which should be executed after this dialog, if any.

Definition at line 318 of file dialog.cpp.

Dialog::TopicArray Stark::Resources::Dialog::listAvailableTopics (  ) 

List the currently available topics for this Dialog.

Definition at line 125 of file dialog.cpp.

void Stark::Resources::Dialog::printData (  )  [override, protected, virtual]

Reimplemented from Stark::Resources::Object.

Definition at line 94 of file dialog.cpp.

void Stark::Resources::Dialog::readData ( Formats::XRCReadStream stream  )  [override, virtual]

Deserialize the resource static data and initial state.

Reimplemented from Stark::Resources::Object.

Definition at line 49 of file dialog.cpp.

void Stark::Resources::Dialog::saveLoad ( ResourceSerializer serializer  )  [override, virtual]

Persist / restore the resource state.

Reimplemented from Stark::Resources::Object.

Definition at line 88 of file dialog.cpp.


Member Data Documentation

Definition at line 163 of file dialog.h.

Definition at line 164 of file dialog.h.

Definition at line 162 of file dialog.h.

const Type::ResourceType Stark::Resources::Dialog::TYPE = Type::kDialog [static]

Definition at line 54 of file dialog.h.


The documentation for this class was generated from the following files:


Generated on Sat Nov 16 2019 05:03:50 for ResidualVM by doxygen 1.7.1
curved edge   curved edge