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

Go to the source code of this file.


method_ret common_ob_move_on (object *trap, object *victim, object *originator)
void common_post_ob_move_on (object *trap, object *victim, object *originator)
method_ret common_pre_ob_move_on (object *trap, object *victim, object *originator)


static int ob_move_on_recursion_depth = 0

Detailed Description

This file contains apply-related methods that are common to many classes of objects.

Definition in file common_apply.c.

Function Documentation

◆ common_ob_move_on()

method_ret common_ob_move_on ( object trap,
object victim,
object originator 

'victim' moves onto 'trap' 'victim' leaves 'trap' effect is determined by move_on/move_off of trap and move_type of victim.

originator: Player, monster or other object that caused 'victim' to move onto 'trap'. Will receive messages caused by this action. May be NULL. However, some types of traps require an originator to function.

Definition at line 41 of file common_apply.c.

References obj::arch, common_post_ob_move_on(), common_pre_ob_move_on(), llevDebug, LOG(), METHOD_ERROR, METHOD_OK, obj::name, archt::name, obj::type, and reputation::victim.

+ Here is the call graph for this function:

◆ common_post_ob_move_on()

◆ common_pre_ob_move_on()

Variable Documentation

◆ ob_move_on_recursion_depth

int ob_move_on_recursion_depth = 0

Definition at line 49 of file common_apply.c.

Referenced by common_post_ob_move_on(), and common_pre_ob_move_on().