Planeshift
|
This is used to handle <specificknowledge> and <specialresponse> tags. More...
#include <psnpcdialog.h>
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< int > | responseIDs |
Keep track of the database id's of responses. | |
csArray< psSpecialResponse * > | special |
A list of all the special responses. | |
csArray< int > | triggerIDs |
Keep track of the database id's of the triggers. | |
csArray< psTriggerBlock * > | triggers |
A list of all the triggers. |
This is used to handle <specificknowledge> and <specialresponse> tags.
Definition at line 228 of file psnpcdialog.h.
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.
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 | ( | ) |
csString psDialogManager::area |
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.