Crossfire Server, Branch 1.12
R12190
|
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>
Go to the source code of this file.
Functions | |
void | init_type_peacemaker (void) |
Initializer for the peacemaker object type. | |
static method_ret | peacemaker_type_process (ob_methods *context, object *op) |
Handle ob_process for all peacemaker objects. |
The implementation of the Peacemaker class of objects.
Definition in file peacemaker.c.
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().
static method_ret peacemaker_type_process | ( | ob_methods * | context, |
object * | op | ||
) | [static] |
Handle ob_process for all peacemaker objects.
Makes monster it passes peaceful.
context | The method context |
op | The peacemaker that's being processed. |
Definition at line 50 of file peacemaker.c.
References change_exp(), CLEAR_FLAG, draw_ext_info_format(), FLAG_MONSTER, FLAG_RANDOM_MOVE, FLAG_RUN_AWAY, FLAG_UNAGGRESSIVE, GET_MAP_OB, get_owner(), MAX, METHOD_OK, MSG_TYPE_SPELL, MSG_TYPE_SPELL_SUCCESS, NDI_UNIQUE, QUERY_FLAG, RANDO2, rndm(), and SET_FLAG.
Referenced by init_type_peacemaker().