Planeshift
Public Member Functions | Public Attributes

psTriggerBlock Class Reference

A set of trigger data. More...

#include <psnpcdialog.h>

List of all members.

Public Member Functions

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

Public Attributes

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

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 336 of file psnpcdialog.h.


Constructor & Destructor Documentation

psTriggerBlock::psTriggerBlock ( psDialogManager mgr) [inline]

Definition at line 339 of file psnpcdialog.h.

psTriggerBlock::psTriggerBlock ( ) [inline]

Definition at line 360 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 373 of file psnpcdialog.h.


Member Data Documentation

The knowledge area of this trigger.

Definition at line 382 of file psnpcdialog.h.

The list of attitudes.

This contain the responses based on an attitude range.

Definition at line 358 of file psnpcdialog.h.

Holds the real databaseID of this trigger.

Definition at line 380 of file psnpcdialog.h.

Main mangaer.

Definition at line 384 of file psnpcdialog.h.

A list of phrases for this trigger.

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

Definition at line 351 of file psnpcdialog.h.

Holds the prior responseID.

Definition at line 378 of file psnpcdialog.h.

questID of trigger

Definition at line 386 of file psnpcdialog.h.


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