Atrinik Server  4.0
Functions
spawn_point.c File Reference
#include <global.h>
#include <monster_guard.h>
#include <arch.h>
#include <object.h>
#include <exp.h>
#include <object_methods.h>

Go to the source code of this file.

Functions

static objectspawn_point_generate (object *op, object *monster)
 
static bool spawn_point_can_generate (object *op, object *monster)
 
static void process_func (object *op)
 
static int trigger_func (object *op, object *cause, int state)
 
static void insert_map_func (object *op)
 
static void remove_map_func (object *op)
 
 OBJECT_TYPE_INIT_DEFINE (spawn_point)
 

Detailed Description

Handles code for spawn points.

Author
Alex Tokar

Definition in file spawn_point.c.

Function Documentation

static void insert_map_func ( object op)
static

Called when an object is inserted on a map.

Parameters
opThe object being inserted.

Definition at line 305 of file spawn_point.c.

OBJECT_TYPE_INIT_DEFINE ( spawn_point  )

Initialize the spawn point type object methods.

Definition at line 339 of file spawn_point.c.

static void process_func ( object op)
static

Processes an object, giving it the opportunity to move or react.

Parameters
opThe object to process.

Definition at line 183 of file spawn_point.c.

static void remove_map_func ( object op)
static

Called when an object is removed from map.

Parameters
opThe object being removed.

Definition at line 321 of file spawn_point.c.

static bool spawn_point_can_generate ( object op,
object monster 
)
static

Check whether monster can be generated by the spawn point.

Parameters
opThe spawn point.
monsterThe monster to check.
Returns
True if the monster can be generated, false otherwise.

Definition at line 129 of file spawn_point.c.

static object* spawn_point_generate ( object op,
object monster 
)
static

Generate a monster from the spawn point.

Parameters
opSpawn point that is generating the monster.
monsterMonster to generate.
Returns
The generated monster, NULL on failure.

Definition at line 50 of file spawn_point.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 294 of file spawn_point.c.