Atrinik Server  4.0
Functions
creator.c File Reference
#include <global.h>
#include <object.h>
#include <object_methods.h>

Go to the source code of this file.

Functions

static bool creator_obj_exists (object *op, object *check)
 
static int trigger_func (object *op, object *cause, int state)
 
 OBJECT_TYPE_INIT_DEFINE (creator)
 

Detailed Description

Handles code used for creators.

Author
Alex Tokar

Definition in file creator.c.

Function Documentation

static bool creator_obj_exists ( object op,
object check 
)
static

Check whether creator has already created the specified object on its square.

Parameters
opThe creator.
checkThe object to check for.
Returns
True if such object already exists, false otherwise.

Definition at line 48 of file creator.c.

OBJECT_TYPE_INIT_DEFINE ( creator  )

Initialize the creator type object methods.

Definition at line 122 of file creator.c.

static int trigger_func ( object op,
object cause,
int  state 
)
static

An object is triggered by another one.

Parameters
opThe object being triggered.
causeThe object that is the cause of the trigger.
stateTrigger state.

Definition at line 64 of file creator.c.