Go to the documentation of this file.
50 int max, sound_was_played;
57 for (ab = trap->
above, tot = 0; ab != NULL; ab = ab->
above)
61 if (!(trap->
value = (tot > trap->
weight) ? 1 : 0)) {
69 for (ab = trap->
above,
max = 100, sound_was_played = 0; --
max && ab; ab = ab_next) {
76 if (!sound_was_played) {
81 "You fall into a trapdoor!");
void register_move_on(int ob_type, move_on_func method)
#define SET_ANIMATION(ob, newanim)
void play_sound_map(int8_t sound_type, object *emitter, int dir, const char *action)
void object_update(object *op, int action)
static uint32_t NROF(const object *const ob)
method_ret common_pre_ob_move_on(object *trap, object *victim, object *originator)
#define MSG_TYPE_APPLY_TRAP
int transfer_ob(object *op, int x, int y, int randomly, object *originator)
static method_ret trapdoor_type_move_on(object *trap, object *victim, object *originator)
#define SOUND_TYPE_GROUND
void draw_ext_info(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *message)
void init_type_trapdoor(void)
void common_post_ob_move_on(object *trap, object *victim, object *originator)