Planeshift
Public Member Functions | Public Attributes

psDialogManager Class Reference

This is used to handle <specificknowledge> and <specialresponse> tags. More...

#include <psnpcdialog.h>

List of all members.

Public Member Functions

void AddSpecialResponse (psSpecialResponse *response)
 Add a special response to the internal list.
void AddTrigger (psTriggerBlock *trigger)
 Add a trigger to the list of triggers.
int GetPriorID (int internalID)
 Maps a internal ID to a database ID.
int InsertResponse (csString &response)
int InsertResponseSet (psResponse &response)
int InsertTrigger (const char *trigger, const char *area, int maxAttitude, int minAttitude, int responseID, int priorID, int questID)
void PrintInfo ()
 A debuging function that prints all the trigger data.
bool WriteToDatabase ()

Public Attributes

csString area
csArray< intresponseIDs
 Keep track of the database id's of responses.
csArray< psSpecialResponse * > special
 A list of all the special responses.
csArray< inttriggerIDs
 Keep track of the database id's of the triggers.
csArray< psTriggerBlock * > triggers
 A list of all the triggers.

Detailed Description

This is used to handle <specificknowledge> and <specialresponse> tags.

Definition at line 228 of file psnpcdialog.h.


Member Function Documentation

void psDialogManager::AddSpecialResponse ( psSpecialResponse response)

Add a special response to the internal list.

void psDialogManager::AddTrigger ( psTriggerBlock trigger)

Add a trigger to the list of triggers.

int psDialogManager::GetPriorID ( int  internalID)

Maps a internal ID to a database ID.

When responses are loaded from a file they are given internal IDs. When they are added to the database they are given a proper database id. This function returns that database ID based on the internal one passed in.

int psDialogManager::InsertResponse ( csString &  response)
int psDialogManager::InsertResponseSet ( psResponse response)
int psDialogManager::InsertTrigger ( const char *  trigger,
const char *  area,
int  maxAttitude,
int  minAttitude,
int  responseID,
int  priorID,
int  questID 
)
void psDialogManager::PrintInfo ( )

A debuging function that prints all the trigger data.

bool psDialogManager::WriteToDatabase ( )

Member Data Documentation

Definition at line 283 of file psnpcdialog.h.

Keep track of the database id's of responses.

Definition at line 281 of file psnpcdialog.h.

A list of all the special responses.

This is a simple list of the all the special response data that needs to be created. It is of type psSpecialResponse.

Definition at line 261 of file psnpcdialog.h.

Keep track of the database id's of the triggers.

Definition at line 276 of file psnpcdialog.h.

A list of all the triggers.

This is a simple list of the all the trigger data that needs to be created. It is of type psTriggerBlock.

Definition at line 252 of file psnpcdialog.h.


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