Planeshift
|
#include <dictionary.h>
Public Member Functions | |
int | GetRandomResponse (const csArray< int > &availableResponseList) |
Return one of the members of responseIDlist array randomly. | |
bool | HaveAvailableResponses (Client *client, gemNPC *npc, NPCDialogDict *dict, csArray< int > *availableResponseList=NULL, int questID=-1) |
Return true if there is one response available for this trigger. | |
bool | Load (iResultRow &row) |
Load the trigger from a database. | |
bool | operator<= (const NpcTrigger &other) const |
Compare two triggers. Used when searching for triggers. | |
bool | operator== (const NpcTrigger &other) const |
Compare two triggers. Used when searching for triggers. | |
Public Attributes | |
csString | area |
int | id |
int | priorresponseID |
csArray< int > | responseIDlist |
csString | trigger |
Definition at line 269 of file dictionary.h.
Return one of the members of responseIDlist array randomly.
bool NpcTrigger::HaveAvailableResponses | ( | Client * | client, |
gemNPC * | npc, | ||
NPCDialogDict * | dict, | ||
csArray< int > * | availableResponseList = NULL , |
||
int | questID = -1 |
||
) |
Return true if there is one response available for this trigger.
bool NpcTrigger::Load | ( | iResultRow & | row | ) |
Load the trigger from a database.
bool NpcTrigger::operator<= | ( | const NpcTrigger & | other | ) | const |
Compare two triggers. Used when searching for triggers.
bool NpcTrigger::operator== | ( | const NpcTrigger & | other | ) | const |
Compare two triggers. Used when searching for triggers.
csString NpcTrigger::area |
Definition at line 273 of file dictionary.h.
Definition at line 272 of file dictionary.h.
Definition at line 275 of file dictionary.h.
Definition at line 276 of file dictionary.h.
csString NpcTrigger::trigger |
Definition at line 274 of file dictionary.h.