Crossfire Server, Trunk  R20513
Functions
peacemaker.c File Reference

The implementation of the Peacemaker class of objects. More...

#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
Include dependency graph for peacemaker.c:

Go to the source code of this file.

Functions

void init_type_peacemaker (void)
 Initializer for the peacemaker object type. More...
 
static method_ret peacemaker_type_process (ob_methods *context, object *op)
 Handle ob_process for all peacemaker objects. More...
 

Detailed Description

The implementation of the Peacemaker class of objects.

Todo:
Consider merging Peacemaker with Spell Effects

Definition in file peacemaker.c.

Function Documentation

void init_type_peacemaker ( void  )

Initializer for the peacemaker object type.

Definition at line 39 of file peacemaker.c.

References PEACEMAKER, peacemaker_type_process(), 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:

static method_ret peacemaker_type_process ( ob_methods context,
object op 
)
static

Handle ob_process for all peacemaker objects.

Makes monster it passes peaceful.

Parameters
contextThe method context
opThe peacemaker that's being processed.
Returns
METHOD_OK

Definition at line 50 of file peacemaker.c.

References obj::attack_movement, change_exp(), CLEAR_FLAG, draw_ext_info_format(), liv::exp, FLAG_MONSTER, FLAG_RANDOM_MOVE, FLAG_RUN_AWAY, FLAG_UNAGGRESSIVE, FOR_MAP_FINISH, FOR_MAP_PREPARE, HEAD, obj::level, llevError, LOG(), obj::map, MAX, METHOD_OK, MSG_TYPE_SPELL, MSG_TYPE_SPELL_SUCCESS, obj::name, NDI_UNIQUE, object_free2(), object_get_owner(), object_remove(), QUERY_FLAG, RANDO2, rndm(), SET_FLAG, obj::skill, obj::stats, obj::x, and obj::y.

Referenced by init_type_peacemaker().

Here is the call graph for this function:

Here is the caller graph for this function: