PowerQuest
IDialogTree Interface Reference

Detailed Description

Dialog Tree: Contains functions and data for manipluating Dialog trees.

Properties

string ScriptName [get]
 The name used in scripts. More...
 
List< DialogOption > Options [get]
 A list of the dialog options of the dialog tree. More...
 
int NumOptionsEnabled [get]
 Returns the number of enabled dialog options currently available to the player. More...
 
DialogOption this[string name] [get]
 Shortcut access to options eg: D.MeetSarah["hello"].Hide();. More...
 
DialogTree Data [get]
 Access to the base class with extra functionality used by the PowerQuest. More...
 

Public Member Functions

void OptionOn (int index)
 Turns a particular option on. More...
 
void OptionOff (int index)
 Turns a particular option off. More...
 
void OptionOffForever (int index)
 Turns a particular option off permanantly. Future OptionOn calls will be ignored. More...
 
void OptionOn (string id)
 Turns a particular option on. More...
 
void OptionOff (string id)
 Turns a particular option off. More...
 
void OptionOffForever (string id)
 Turns a particular option off permanantly. Future OptionOn calls will be ignored. More...
 
void Start ()
 
void Stop ()
 
GetScript< T > ()
 Access to the specific quest script for the object. Use the specific dialog class as the templated parameter so you can access specific members of the script. Eg: GetScript<DialogSister>().m_saidHi = true;. More...
 

Property Documentation

◆ ScriptName

string ScriptName
get

The name used in scripts.

◆ Options

List<DialogOption> Options
get

A list of the dialog options of the dialog tree.

◆ NumOptionsEnabled

int NumOptionsEnabled
get

Returns the number of enabled dialog options currently available to the player.

◆ this[string name]

DialogOption this[string name]
get

Shortcut access to options eg: D.MeetSarah["hello"].Hide();.

◆ Data

DialogTree Data
get

Access to the base class with extra functionality used by the PowerQuest.

Member Function Documentation

◆ OptionOn() [1/2]

void OptionOn ( int  index)

Turns a particular option on.

◆ OptionOff() [1/2]

void OptionOff ( int  index)

Turns a particular option off.

◆ OptionOffForever() [1/2]

void OptionOffForever ( int  index)

Turns a particular option off permanantly. Future OptionOn calls will be ignored.

◆ OptionOn() [2/2]

void OptionOn ( string  id)

Turns a particular option on.

◆ OptionOff() [2/2]

void OptionOff ( string  id)

Turns a particular option off.

◆ OptionOffForever() [2/2]

void OptionOffForever ( string  id)

Turns a particular option off permanantly. Future OptionOn calls will be ignored.

◆ GetScript< T >()

T GetScript< T > ( )

Access to the specific quest script for the object. Use the specific dialog class as the templated parameter so you can access specific members of the script. Eg: GetScript<DialogSister>().m_saidHi = true;.

Type Constraints
T :DialogTreeScript<T>