Crossfire Server, Branches 1.12
R18729
|
#include <global.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 | gate_type_process (ob_methods *context, object *op) |
void | init_type_gate (void) |
static method_ret | timed_gate_type_process (ob_methods *context, object *op) |
The implementation of the Gate and Timed Gate classes of objects.
Definition in file gate.c.
|
static |
Handle ob_process for all gate objects.
context | The method context |
op | The gate that's being processed. |
Definition at line 51 of file gate.c.
References obj::above, liv::ac, obj::arch, AT_PHYSICAL, CLEAR_FLAG, archt::clone, liv::dam, draw_ext_info_format(), dump_object(), find_free_spot(), FLAG_ALIVE, FLAG_BLOCKSVIEW, FLAG_CAN_ROLL, FLAG_NO_PICK, liv::food, freearr_x, freearr_y, hit_player(), insert_ob_in_map(), llevError, LOG(), obj::map, METHOD_OK, MOVE_ALL, obj::move_block, MSG_TYPE_VICTIM, MSG_TYPE_VICTIM_WAS_HIT, obj::name, NDI_UNIQUE, NUM_ANIMATIONS, PLAYER, PREFER_LOW, QUERY_FLAG, random_roll(), remove_ob(), SET_ANIMATION, SET_FLAG, obj::speed, obj::stats, stringbuffer_finish(), stringbuffer_new(), obj::type, UP_OBJ_CHANGE, update_all_los(), update_ob_speed(), update_object(), obj::value, liv::wc, obj::x, and obj::y.
Referenced by init_type_gate(), and timed_gate_type_process().
void init_type_gate | ( | void | ) |
Initializer for the gate object type.
Definition at line 40 of file gate.c.
References GATE, gate_type_process(), register_process(), TIMED_GATE, and timed_gate_type_process().
Referenced by register_all_ob_types().
|
static |
Handle ob_process for all timed gate objects.
context | The method context |
op | The timed gate that's being processed. |
Definition at line 198 of file gate.c.
References gate_type_process(), liv::hp, METHOD_OK, liv::sp, obj::speed, obj::stats, update_ob_speed(), and obj::value.
Referenced by init_type_gate().