Planeshift
Public Member Functions | Public Attributes

NpcTrigger Class Reference

#include <dictionary.h>

List of all members.

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< intresponseIDlist
csString trigger

Detailed Description

Definition at line 269 of file dictionary.h.


Member Function Documentation

int NpcTrigger::GetRandomResponse ( const csArray< int > &  availableResponseList)

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.


Member Data Documentation

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.

Definition at line 274 of file dictionary.h.


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