server/time.c File Reference

#include <global.h>
#include <sproto.h>

Go to the source code of this file.

Functions

static void remove_force (object *op)
static void remove_blindness (object *op)
static void remove_confusion (object *op)
static void execute_wor (object *op)
static void animate_trigger (object *op)
static void change_object (object *op)
static void move_firechest (object *op)
objectstop_item (object *op)
void fix_stopped_item (object *op, mapstruct *map, object *originator)
void move_firewall (object *op)
void process_object (object *op)

Detailed Description

Routines that are executed from objects based on their speed have been collected in this file.

Definition in file time.c.


Function Documentation

static void animate_trigger ( object op  )  [static]

Animate a TRIGGER.

Parameters:
op Trigger.

Definition at line 138 of file time.c.

static void change_object ( object op  )  [static]

Replaces op with its other_arch if it has reached its end of life.

Parameters:
op Object to change. Will be removed and replaced.

Definition at line 239 of file time.c.

static void execute_wor ( object op  )  [static]

Execute word of recall force object, and remove the force object.

Parameters:
op The force object.

Definition at line 110 of file time.c.

void fix_stopped_item ( object op,
mapstruct map,
object originator 
)

Put stopped item where stop_item() had found it. Inserts item into the old map, or merges it if it already is on the map.

Parameters:
op Object to stop.
map Must be the value of op->map before stop_item() was called.
originator What caused op to be stopped.

Definition at line 218 of file time.c.

static void move_firechest ( object op  )  [static]

Move for FIRECHEST.

Parameters:
op Firechest.

Definition at line 387 of file time.c.

void move_firewall ( object op  ) 

Move for FIREWALL.

Firewalls fire other spells. The direction of the wall is stored in op->stats.dam.

Parameters:
op Firewall.

Definition at line 372 of file time.c.

void process_object ( object op  ) 

Main object move function.

Parameters:
op Object to move.

Definition at line 401 of file time.c.

static void remove_blindness ( object op  )  [static]

Remove blindness force object.

Parameters:
op Force object to remove.

Definition at line 64 of file time.c.

static void remove_confusion ( object op  )  [static]

Remove confusion force object.

Parameters:
op Force object to remove.

Definition at line 86 of file time.c.

static void remove_force ( object op  )  [static]

Remove a force object from player, like potion effect.

Parameters:
op Force object to remove.

Definition at line 45 of file time.c.

object* stop_item ( object op  ) 

An item (ARROW or such) stops moving.

This function assumes that only items on maps need special treatment.

If the object can't be stopped, or it was destroyed while trying to stop it, NULL is returned.

Parameters:
op Object to check.
Returns:
Pointer to stopped object, NULL if destroyed or can't be stopped.

Definition at line 163 of file time.c.


Generated by  doxygen 1.6.2