Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

/home/groups/n/no/noxwizard/cvs/src/trigger.h File Reference

#include "scp_parser.h"

Go to the source code of this file.

Compounds

class  cTriggerContext

Entry points

void triggerItem (NXWSOCKET ts, P_ITEM pi, int eventType)
 Entry Point for dynamic item triggers.

void triggerNpc (NXWSOCKET ts, P_CHAR pc, int eventType)
 Entry point for all npc triggers.

void triggerTile (NXWSOCKET ts)
 Entry point for envoked statics.


Defines

#define TRIGTYPE_DBLCLICK   1
#define TRIGTYPE_WALKOVER   2
#define TRIGTYPE_NPCWORD   3
#define TRIGTYPE_NPCTARG   4
#define TRIGTYPE_ENVOKED   64
#define TRIGTYPE_NPCENVOKED   65
#define TRIGTYPE_TARGET   128

Functions

void triggernpc (NXWSOCKET ts, int ti, int ttype)
bool checkenvoke (UI16 eid)
 Check if an item is an envoker.


Variables

bool g_bStepInTriggers


Define Documentation

#define TRIGTYPE_DBLCLICK   1
 

#define TRIGTYPE_ENVOKED   64
 

#define TRIGTYPE_NPCENVOKED   65
 

#define TRIGTYPE_NPCTARG   4
 

#define TRIGTYPE_NPCWORD   3
 

#define TRIGTYPE_TARGET   128
 

#define TRIGTYPE_WALKOVER   2
 


Function Documentation

bool checkenvoke UI16    eid
 

Check if an item is an envoker.

Parameters:
eid1  id of the item
eid2  id of the item
Returns:
true if the item is an envoker

void triggerItem NXWSOCKET    ts,
P_ITEM    pi,
int    eventType
 

Entry Point for dynamic item triggers.

Author:
Xanathar
Parameters:
ts  the socket
pi  the item triggered
eventType  the type of trigger

void triggerNpc NXWSOCKET    ts,
P_CHAR    pc,
int    eventType
 

Entry point for all npc triggers.

Author:
Xanathar
Parameters:
ts  the socket
pc  the npc
eventType  the type of trigger

void triggernpc NXWSOCKET    ts,
int    ti,
int    ttype
 

void triggerTile NXWSOCKET    ts
 

Entry point for envoked statics.

Author:
Xanathar
Parameters:
ts  the socket


Variable Documentation

bool g_bStepInTriggers
 

SourceForge.net Logo