![]() |
Crossfire Server, Trunk
1.75.0
|
#include "global.h"
#include <string.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 (object *op, object *cause, int state) |
A duplicator is triggered. More... | |
void | init_type_duplicator (void) |
Initializer for the duplicator object type. More... | |
static void | move_duplicator (object *op) |
Trigger for duplicator. More... | |
The implementation of duplicator objects.
Definition in file duplicator.cpp.
|
static |
A duplicator is triggered.
op | The duplicator being triggered |
cause | Ignored. |
state | Ignored. |
METHOD_OK |
Definition at line 95 of file duplicator.cpp.
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 33 of file duplicator.cpp.
References DUPLICATOR, duplicator_type_trigger(), and register_trigger().
Referenced by register_all_ob_types().
|
static |
Trigger for duplicator.
Will duplicate a specified object placed on top of it.
op | duplicator. |
Definition at line 49 of file duplicator.cpp.
References object::above, object::arch, living::food, if(), object::level, llevInfo, LOG(), object::map, archetype::name, object::nrof, object_free_drop_inventory(), object_remove(), object::other_arch, mapstruct::path, object::stats, object::x, and object::y.
Referenced by duplicator_type_trigger().