trap.h
musicmud-2.1.6/include/trap.h · 599 B
From the archive musicmud2.1.6.tar.gz
Download the archive « Back to the archive contents
#ifndef TRAP_H
#define TRAP_H
#include "events.h"
//! trigger a trap with given criteria
int dotrap(const char *name, MudObject *who, MudObject *o1, MudObject *o2=0,
MudObject *o3=0, const char *txt=0, bool direct=false,
MudObject*on=0);
inline int dotrap(const char *name, MudObject *who, MudObject *o1,
MudObject *o2, const char *txt, bool direct=false,
MudObject *on=0) {
return dotrap(name, who, o1, o2, NULL, txt, direct, on);
}
inline int dotrap(const char *name, MudObject *who, MudObject *o1,
MudObject *o2, int e) {
return dotrap(name, who, o1, o2);
}
#endif