 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
66 for (tmp = op->
above; tmp != NULL; tmp = tmp->
above) {
@ llevError
Error, serious thing.
#define FABS(x)
Decstations have trouble with fabs()...
void LOG(LogLevel logLevel, const char *format,...)
Logs a message to stderr, or to file.
#define QUERY_FLAG(xyz, p)
#define EVENT_TRIGGER
Button pushed, lever pulled, etc.
float speed
Frequency of object 'moves' relative to server tick rate.
struct mapstruct * map
Pointer to the map in which this object is present.
static method_ret teleporter_type_trigger(object *op, object *cause, int state)
A teleporter is triggered.
void register_process(int ob_type, process_func method)
Registers the process method for the given type.
int events_execute_object_event(object *op, int eventcode, object *activator, object *third, const char *message, int fix)
Execute an event on the specified object.
object * above
Pointer to the object stacked above this one.
#define FLAG_NO_PICK
Object can't be picked up.
#define FLAG_IS_FLOOR
Can't see what's underneath this object.
void object_free_drop_inventory(object *ob)
Frees everything allocated by an object, removes it from the list of used objects,...
int teleport(object *teleporter, uint8_t tele_type, object *user)
Teleport an item around a nearby random teleporter of specified type.
uint8_t subtype
Subtype of object.
static method_ret teleporter_type_process(object *op)
Processes a teleporter.
#define HEAD(op)
Returns the head part of an object.
void init_type_teleporter(void)
Initializer for the teleporter object type.
int out_of_map(mapstruct *m, int x, int y)
Return 1 if coordinates X and Y are out of the map M, taking into account tiling.
uint8_t type
PLAYER, BULLET, etc.
#define FLAG_WIZPASS
The wizard can go through walls.
struct archetype * other_arch
Pointer used for various things - mostly used for what this objects turns into or what this object cr...
#define FLAG_MONSTER
Will attack players.
int transfer_ob(object *op, int x, int y, int randomly, object *originator)
Move an object (even linked objects) to another spot on the same map.
void register_trigger(int ob_type, trigger_func method)
Registers the trigger method for the given type.
char method_ret
Define some standard return values for callbacks which don't need to return any other results.
sstring name
The name of the object, obviously...
void enter_exit(object *op, object *exit_ob)
Tries to move 'op' to exit_ob.
#define MIN_ACTIVE_SPEED
Cut off point of when an object is put on the active list or not.
void object_remove(object *op)
This function removes the object op from the linked list of objects which it is currently tied to.
sstring name
More definite name, like "generate_kobold".
object * more
Pointer to the rest of a large body of objects.
static void move_teleporter(object *op)
Move function for teleporter objects.