![]() |
Crossfire Server, Trunk
1.75.0
|
#include "global.h"
#include <string.h>
#include "ob_methods.h"
#include "ob_types.h"
#include "sounds.h"
#include "sproto.h"
Go to the source code of this file.
Functions | |
static method_ret | detector_type_process (object *op) |
Processes a detector. More... | |
void | init_type_detector (void) |
Initializer for the detector object type. More... | |
static void | move_detector (object *op) |
Move a detector. More... | |
The implementation of detector objects.
Definition in file detector.cpp.
|
static |
Processes a detector.
op | The detector to process |
METHOD_OK |
Definition at line 116 of file detector.cpp.
References METHOD_OK, and move_detector().
Referenced by init_type_detector().
void init_type_detector | ( | void | ) |
Initializer for the detector object type.
Definition at line 33 of file detector.cpp.
References DETECTOR, detector_type_process(), and register_process().
Referenced by register_all_ob_types().
|
static |
Move a detector.
op | detector to move. |
Definition at line 49 of file detector.cpp.
References object::above, object::env, FORCE, GET_MAP_OB, living::hp, llevError, LOG(), object::map, object::name, object_find_by_name(), object_find_by_type_and_slaying(), object_update_speed(), mapstruct::path, PLAYER, push_button(), object::slaying, living::sp, SPECIAL_KEY, object::speed, object::stats, object::type, object::value, object::x, and object::y.
Referenced by detector_type_process().