 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
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)
Gets the bottom object on a map.
@ llevError
Error, serious thing.
void LOG(LogLevel logLevel, const char *format,...)
Logs a message to stderr, or to file.
float speed
Frequency of object 'moves' relative to server tick rate.
struct mapstruct * map
Pointer to the map in which this object is present.
void register_process(int ob_type, process_func method)
Registers the process method for the given type.
char path[HUGE_BUF]
Filename of the map.
object * above
Pointer to the object stacked above this one.
int16_t y
Position in the map for this object.
object * object_find_by_name(const object *who, const char *name)
Finds an object in inventory name.
static method_ret detector_type_process(object *op)
Processes a detector.
int32_t value
How much money it is worth (or contains)
void object_update_speed(object *op)
Updates the speed of an object.
uint8_t type
PLAYER, BULLET, etc.
char method_ret
Define some standard return values for callbacks which don't need to return any other results.
object * object_find_by_type_and_slaying(const object *who, int type, const char *slaying)
Find object in inventory by type and slaying.
void init_type_detector(void)
Initializer for the detector object type.
sstring slaying
Which race to do double damage to.
sstring name
The name of the object, obviously...
object * env
Pointer to the object which is the environment.
living stats
Str, Con, Dex, etc.
static void move_detector(object *op)
Move a detector.
@ DETECTOR
peterm: detector is an object which notices the presense of another object and is triggered like butt...