Go to the documentation of this file.
57 LOG(
llevError,
"Detector with no slaying set at %s (%d,%d)\n",
op->map->path,
op->x,
op->y);
75 if (
op->slaying ==
tmp->name) {
79 if (
tmp->type ==
PLAYER && !strcmp(
op->slaying,
"player")) {
90 if (
op->stats.sp == 1) {
91 if (detected && last == 0) {
95 if (!detected && last == 1) {
100 if (detected && last == 1) {
104 if (!detected && last == 0) {
#define GET_MAP_OB(M, X, Y)
void LOG(LogLevel logLevel, const char *format,...)
void register_process(int ob_type, process_func method)
object * object_find_by_name(const object *who, const char *name)
static method_ret detector_type_process(object *op)
void object_update_speed(object *op)
object * object_find_by_type_and_slaying(const object *who, int type, const char *slaying)
void init_type_detector(void)
static void move_detector(object *op)