|
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. More... | |
| void | AddTrigger (psTriggerBlock *trigger) |
| Add a trigger to the list of triggers. More... | |
| int | GetPriorID (int internalID) |
| Maps a internal ID to a database ID. More... | |
| 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. More... | |
| bool | WriteToDatabase () |
Public Attributes | |
| csString | area |
| csArray< int > | responseIDs |
| Keep track of the database id's of responses. More... | |
| csArray< psSpecialResponse * > | special |
| A list of all the special responses. More... | |
| csArray< int > | triggerIDs |
| Keep track of the database id's of the triggers. More... | |
| csArray< psTriggerBlock * > | triggers |
| A list of all the triggers. More... | |
This is used to handle <specificknowledge> and <specialresponse> tags.
Definition at line 233 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 288 of file psnpcdialog.h.
| csArray<int> psDialogManager::responseIDs |
Keep track of the database id's of responses.
Definition at line 286 of file psnpcdialog.h.
| csArray<psSpecialResponse*> psDialogManager::special |
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 266 of file psnpcdialog.h.
| csArray<int> psDialogManager::triggerIDs |
Keep track of the database id's of the triggers.
Definition at line 281 of file psnpcdialog.h.
| csArray<psTriggerBlock*> psDialogManager::triggers |
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 257 of file psnpcdialog.h.