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

Stark::Resources::Dialog::Reply Class Reference

A topic reply. More...

#include <dialog.h>

Collaboration diagram for Stark::Resources::Dialog::Reply:

List of all members.

Public Types

enum  ConditionType {
  kConditionTypeAlways = 0, kConditionTypeNoOtherOptions = 1, kConditionTypeHasItem = 3, kConditionTypeCheckValue4 = 4,
  kConditionTypeCheckValue5 = 5, kConditionTypeRunScriptCheckValue = 6
}

Public Member Functions

 Reply ()
void start ()
 Start playing the reply.
void goToNextLine ()
 Select the next line to be played.
SpeechgetCurrentSpeech ()
 Obtain the Speech resource for the current line, or null if the reply has ended.
bool checkCondition () const
 Evaluates the reply's condition.
bool isLastOnly () const
 Should this reply only be made available when there are no other options left?

Private Attributes

Common::Array< ResourceReference_lines
uint32 _conditionType
ResourceReference _conditionReference
ResourceReference _conditionScriptReference
uint32 _conditionReversed
uint32 _field_88
uint32 _minChapter
uint32 _maxChapter
uint32 _noCaption
int32 _nextDialogIndex
ResourceReference _nextScriptReference
int32 _nextSpeechIndex

Friends

class Dialog

Detailed Description

A topic reply.

Definition at line 62 of file dialog.h.


Member Enumeration Documentation

Enumerator:
kConditionTypeAlways 
kConditionTypeNoOtherOptions 
kConditionTypeHasItem 
kConditionTypeCheckValue4 
kConditionTypeCheckValue5 
kConditionTypeRunScriptCheckValue 

Definition at line 66 of file dialog.h.


Constructor & Destructor Documentation

Stark::Resources::Dialog::Reply::Reply (  ) 

Definition at line 220 of file dialog.cpp.


Member Function Documentation

bool Stark::Resources::Dialog::Reply::checkCondition (  )  const

Evaluates the reply's condition.

Definition at line 261 of file dialog.cpp.

Speech * Stark::Resources::Dialog::Reply::getCurrentSpeech (  ) 

Obtain the Speech resource for the current line, or null if the reply has ended.

Definition at line 253 of file dialog.cpp.

void Stark::Resources::Dialog::Reply::goToNextLine (  ) 

Select the next line to be played.

Definition at line 242 of file dialog.cpp.

bool Stark::Resources::Dialog::Reply::isLastOnly (  )  const

Should this reply only be made available when there are no other options left?

Definition at line 306 of file dialog.cpp.

void Stark::Resources::Dialog::Reply::start (  ) 

Start playing the reply.

Sets the current line to the first one

Definition at line 231 of file dialog.cpp.


Friends And Related Function Documentation

friend class Dialog [friend]

Definition at line 107 of file dialog.h.


Member Data Documentation

Definition at line 93 of file dialog.h.

Definition at line 97 of file dialog.h.

Definition at line 99 of file dialog.h.

Definition at line 98 of file dialog.h.

Definition at line 100 of file dialog.h.


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


Generated on Sat Nov 9 2019 05:02:29 for ResidualVM by doxygen 1.7.1
curved edge   curved edge