Crossfire Server, Branch 1.12  R12190
Functions
duplicator.c File Reference

The implementation of duplicator objects. More...

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

Go to the source code of this file.

Functions

static method_ret duplicator_type_trigger (ob_methods *context, object *op, object *cause, int state)
 A duplicator is triggered.
void init_type_duplicator (void)
 Initializer for the duplicator object type.
void move_duplicator (object *op)
 Trigger for duplicator.

Detailed Description

The implementation of duplicator objects.

Definition in file duplicator.c.


Function Documentation

static method_ret duplicator_type_trigger ( ob_methods context,
object *  op,
object *  cause,
int  state 
) [static]

A duplicator is triggered.

Parameters:
contextIgnored.
opThe duplicator being triggered
causeIgnored.
stateIgnored.
Return values:
METHOD_OK

Definition at line 89 of file duplicator.c.

References METHOD_OK, and move_duplicator().

Referenced by init_type_duplicator().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void move_duplicator ( object *  op)

Trigger for duplicator.

Will duplicate a specified object placed on top of it.

  • connected: what will trigger it.
  • level: multiplier. 0 to destroy.
  • other_arch: the object to look for and duplicate.
Parameters:
opduplicator.

Definition at line 54 of file duplicator.c.

References free_object(), llevInfo, LOG(), and remove_ob().

Referenced by duplicator_type_trigger().

Here is the call graph for this function:

Here is the caller graph for this function: