Planeshift
psTriggerBlock Class Reference

A set of trigger data. More...

#include <psnpcdialog.h>

Public Member Functions

void Create (csRef< iDocumentNode > triggerNode, int questID)
 This is a recursive function that creates triggers. More...
 
 psTriggerBlock (psDialogManager *mgr)
 
 psTriggerBlock ()
 
void SetPrior (int id)
 This sets the prior responseID for this trigger data. More...
 

Public Attributes

csString area
 The knowledge area of this trigger. More...
 
csArray< psAttitudeBlock * > attitudes
 The list of attitudes. More...
 
int databaseID
 Holds the real databaseID of this trigger. More...
 
psDialogManagermanager
 Main mangaer. More...
 
csStringArray phraseList
 A list of phrases for this trigger. More...
 
int priorResponseID
 Holds the prior responseID. More...
 
int questID
 questID of trigger More...
 

Detailed Description

A set of trigger data.

This manages all the data that is related to a trigger. It consists of a list of phrases and a list of attitudes. For each attitude and phrase a new trigger will be generated. So 3 phrases and 2 attitudes will generate 6 triggers.

Definition at line 341 of file psnpcdialog.h.

Constructor & Destructor Documentation

psTriggerBlock::psTriggerBlock ( psDialogManager mgr)
inline

Definition at line 344 of file psnpcdialog.h.

psTriggerBlock::psTriggerBlock ( )
inline

Definition at line 365 of file psnpcdialog.h.

Member Function Documentation

void psTriggerBlock::Create ( csRef< iDocumentNode >  triggerNode,
int  questID 
)

This is a recursive function that creates triggers.

void psTriggerBlock::SetPrior ( int  id)
inline

This sets the prior responseID for this trigger data.

Definition at line 378 of file psnpcdialog.h.

Member Data Documentation

csString psTriggerBlock::area

The knowledge area of this trigger.

Definition at line 387 of file psnpcdialog.h.

csArray<psAttitudeBlock*> psTriggerBlock::attitudes

The list of attitudes.

This contain the responses based on an attitude range.

Definition at line 363 of file psnpcdialog.h.

int psTriggerBlock::databaseID

Holds the real databaseID of this trigger.

Definition at line 385 of file psnpcdialog.h.

psDialogManager* psTriggerBlock::manager

Main mangaer.

Definition at line 389 of file psnpcdialog.h.

csStringArray psTriggerBlock::phraseList

A list of phrases for this trigger.

This allows us to create many triggers to map to many responses.

Definition at line 356 of file psnpcdialog.h.

int psTriggerBlock::priorResponseID

Holds the prior responseID.

Definition at line 383 of file psnpcdialog.h.

int psTriggerBlock::questID

questID of trigger

Definition at line 391 of file psnpcdialog.h.


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