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 | deep_swamp_type_move_on (ob_methods *context, object *trap, object *victim, object *originator) |
static method_ret | deep_swamp_type_process (ob_methods *context, object *op) |
void | init_type_deep_swamp (void) |
The implementation of the Deep Swamp class of objects.
Definition in file deep_swamp.c.
|
static |
Move on this Deep Swamp object.
context | The method context |
trap | The Deep Swamp we're moving on |
victim | The object moving over this one |
originator | The object that caused the move_on event |
Definition at line 119 of file deep_swamp.c.
References common_post_ob_move_on(), common_pre_ob_move_on(), draw_ext_info_format(), liv::food, liv::hp, METHOD_ERROR, METHOD_OK, MOVE_FLYING, obj::move_slow_penalty, obj::move_type, MSG_TYPE_VICTIM, MSG_TYPE_VICTIM_SWAMP, obj::name, NDI_UNIQUE, PLAYER, obj::speed_left, obj::stats, and obj::type.
Referenced by init_type_deep_swamp().
|
static |
Processes a Deep Swamp.
context | The method context |
op | The swamp to process |
Definition at line 50 of file deep_swamp.c.
References obj::above, obj::contr, decrease_ob, draw_ext_info_format(), find_obj_by_type_subtype(), FLAG_ALIVE, FLAG_IS_FLOOR, FLAG_NO_PICK, FLAG_OVERLAY_FLOOR, FLAG_WIZ, liv::food, liv::hp, kill_player(), pl::killer, llevDebug, LOG(), METHOD_OK, MOVE_FLYING, obj::move_slow_penalty, obj::move_type, MSG_TYPE_ADMIN, MSG_TYPE_ADMIN_PLAYER, MSG_TYPE_VICTIM, MSG_TYPE_VICTIM_SWAMP, obj::name, NDI_ALL, NDI_RED, NDI_UNIQUE, PLAYER, QUERY_FLAG, rndm(), SK_WOODSMAN, SKILL, snprintf(), obj::speed_left, obj::stats, and obj::type.
Referenced by init_type_deep_swamp().
void init_type_deep_swamp | ( | void | ) |
Initializer for the DEEP_SWAMP object type.
Definition at line 39 of file deep_swamp.c.
References DEEP_SWAMP, deep_swamp_type_move_on(), deep_swamp_type_process(), register_move_on(), and register_process().
Referenced by register_all_ob_types().