Crossfire Server, Branches 1.12
R18729
|
#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 | |
static method_ret | duplicator_type_trigger (ob_methods *context, object *op, object *cause, int state) |
void | init_type_duplicator (void) |
void | move_duplicator (object *op) |
The implementation of duplicator objects.
Definition in file duplicator.c.
|
static |
A duplicator is triggered.
context | Ignored. |
op | The duplicator being triggered |
cause | Ignored. |
state | Ignored. |
METHOD_OK |
Definition at line 89 of file duplicator.c.
References METHOD_OK, and move_duplicator().
Referenced by init_type_duplicator().
void init_type_duplicator | ( | void | ) |
Initializer for the duplicator object type.
Definition at line 39 of file duplicator.c.
References DUPLICATOR, duplicator_type_trigger(), and register_trigger().
Referenced by register_all_ob_types().
void move_duplicator | ( | object * | op | ) |
Trigger for duplicator.
Will duplicate a specified object placed on top of it.
op | duplicator. |
Definition at line 54 of file duplicator.c.
References obj::above, obj::arch, free_object(), obj::level, llevInfo, LOG(), obj::map, archt::name, obj::nrof, obj::other_arch, mapdef::path, remove_ob(), obj::x, and obj::y.
Referenced by duplicator_type_trigger().