![]() |
Crossfire Server, Trunk
1.75.0
|
#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
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 (object *op) |
Handle ob_process for all peacemaker objects. More... | |
The implementation of the Peacemaker class of objects.
Definition in file peacemaker.cpp.
void init_type_peacemaker | ( | void | ) |
Initializer for the peacemaker object type.
Definition at line 39 of file peacemaker.cpp.
References PEACEMAKER, peacemaker_type_process(), and register_process().
Referenced by register_all_ob_types().
|
static |
Handle ob_process for all peacemaker objects.
Makes monster it passes peaceful.
op | The peacemaker that's being processed. |
Definition at line 49 of file peacemaker.cpp.
References object::attack_movement, change_exp(), CLEAR_FLAG, draw_ext_info_format(), living::exp, FLAG_MONSTER, FLAG_RANDOM_MOVE, FLAG_RUN_AWAY, FLAG_UNAGGRESSIVE, FOR_MAP_FINISH, FOR_MAP_PREPARE, HEAD, object::level, llevError, LOG(), object::map, MAX, METHOD_OK, MSG_TYPE_SPELL, MSG_TYPE_SPELL_SUCCESS, object::name, NDI_UNIQUE, object_free(), object_get_owner(), object_remove(), QUERY_FLAG, RANDO2, rndm(), SET_FLAG, object::skill, object::stats, object::x, and object::y.
Referenced by init_type_peacemaker().