ScummVM API documentation
Stark::Resources::Dialog::Reply Class Reference

#include <dialog.h>

Public Types

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

Public Member Functions

void start ()
 
void goToNextLine ()
 
SpeechgetCurrentSpeech ()
 
bool checkCondition () const
 
bool isLastOnly () const
 

Public 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
 

Detailed Description

A topic reply

Member Function Documentation

◆ start()

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

Start playing the reply. Sets the current line to the first one

◆ goToNextLine()

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

Select the next line to be played

◆ getCurrentSpeech()

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

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

◆ checkCondition()

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

Evaluates the reply's condition

◆ isLastOnly()

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

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


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