Crossfire Server, Trunk
deep_swamp.c File Reference
#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
+ Include dependency graph for deep_swamp.c:

Go to the source code of this file.

Functions

static method_ret deep_swamp_type_move_on (object *trap, object *victim, object *originator)
 
static method_ret deep_swamp_type_process (object *op)
 
void init_type_deep_swamp (void)
 

Detailed Description

The implementation of the Deep Swamp class of objects.

Definition in file deep_swamp.c.

Function Documentation

◆ deep_swamp_type_move_on()

static method_ret deep_swamp_type_move_on ( object *  trap,
object *  victim,
object *  originator 
)
static

Move on this Deep Swamp object.

Parameters
trapThe Deep Swamp we're moving on
victimThe object moving over this one
originatorThe object that caused the move_on event
Returns
METHOD_OK

Definition at line 114 of file deep_swamp.c.

References common_post_ob_move_on(), common_pre_ob_move_on(), draw_ext_info_format(), METHOD_ERROR, METHOD_OK, MOVE_FLYING, MSG_TYPE_VICTIM, MSG_TYPE_VICTIM_SWAMP, NDI_UNIQUE, and reputation::victim.

Referenced by init_type_deep_swamp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deep_swamp_type_process()

static method_ret deep_swamp_type_process ( object *  op)
static

Processes a Deep Swamp.

Parameters
opThe swamp to process
Returns
Always METHOD_OK

Definition at line 49 of file deep_swamp.c.

References draw_ext_info_format(), FLAG_ALIVE, FLAG_IS_FLOOR, FLAG_NO_PICK, FLAG_OVERLAY_FLOOR, FLAG_WIZ, kill_player(), llevDebug, LOG(), METHOD_OK, MOVE_FLYING, MSG_TYPE_ADMIN, MSG_TYPE_ADMIN_PLAYER, MSG_TYPE_VICTIM, MSG_TYPE_VICTIM_SWAMP, NDI_ALL, NDI_RED, NDI_UNIQUE, object_decrease_nrof_by_one, object_find_by_type_subtype(), give::op, QUERY_FLAG, rndm(), and SK_WOODSMAN.

Referenced by init_type_deep_swamp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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_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: