![]() |
Crossfire Server, Trunk
1.75.0
|
#include <global.h>#include <ob_methods.h>#include <ob_types.h>#include <sounds.h>#include <sproto.h>
Include dependency graph for deep_swamp.cpp:Go to the source code of this file.
Functions | |
| static method_ret | deep_swamp_type_move_on (object *trap, object *victim, object *originator) |
| Move on this Deep Swamp object. More... | |
| static method_ret | deep_swamp_type_process (object *op) |
| Processes a Deep Swamp. More... | |
| void | init_type_deep_swamp (void) |
| Initializer for the DEEP_SWAMP object type. More... | |
The implementation of the Deep Swamp class of objects.
Definition in file deep_swamp.cpp.
|
static |
Move on this Deep Swamp object.
| 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 115 of file deep_swamp.cpp.
References common_post_ob_move_on(), common_pre_ob_move_on(), draw_ext_info_format(), living::food, living::hp, METHOD_ERROR, METHOD_OK, MOVE_FLYING, object::move_slow_penalty, object::move_type, MSG_TYPE_VICTIM, MSG_TYPE_VICTIM_SWAMP, object::name, NDI_UNIQUE, PLAYER, object::speed_left, object::stats, and object::type.
Referenced by init_type_deep_swamp().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Processes a Deep Swamp.
| op | The swamp to process |
Definition at line 50 of file deep_swamp.cpp.
References above, object::above, draw_ext_info_format(), FLAG_ALIVE, FLAG_IS_FLOOR, FLAG_NO_PICK, FLAG_OVERLAY_FLOOR, FLAG_WIZ, living::food, kill_player(), llevDebug, LOG(), METHOD_OK, MOVE_FLYING, object::move_slow_penalty, MSG_TYPE_ADMIN, MSG_TYPE_ADMIN_PLAYER, MSG_TYPE_VICTIM, MSG_TYPE_VICTIM_SWAMP, object::name, NDI_ALL, NDI_RED, NDI_UNIQUE, object_decrease_nrof_by_one, object_find_by_type_subtype(), PLAYER, QUERY_FLAG, rndm(), SK_WOODSMAN, SKILL, and object::stats.
Referenced by init_type_deep_swamp().
Here is the call graph for this function:
Here is the caller graph for this function:| void init_type_deep_swamp | ( | void | ) |
Initializer for the DEEP_SWAMP object type.
Definition at line 40 of file deep_swamp.cpp.
References DEEP_SWAMP, deep_swamp_type_move_on(), deep_swamp_type_process(), register_move_on(), and register_process().
Referenced by register_all_ob_types().
Here is the call graph for this function:
Here is the caller graph for this function: