Crossfire Server, Branch 1.12  R12190
Functions | Variables
common_apply.c File Reference

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

#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.

Functions

method_ret common_ob_move_on (ob_methods *context, 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.
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)

Variables

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

method_ret common_ob_move_on ( ob_methods context,
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 common_post_ob_move_on(), common_pre_ob_move_on(), llevDebug, LOG(), METHOD_ERROR, and METHOD_OK.

Here is the call graph for this function:

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 
)

Variable Documentation

int ob_move_on_recursion_depth = 0 [static]

Definition at line 49 of file common_apply.c.

Referenced by common_post_ob_move_on(), and common_pre_ob_move_on().