server/time.c File Reference
#include <global.h>
#include <sproto.h>
Go to the source code of this file.
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] |
| 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:
-
Definition at line 110 of file time.c.
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] |
| void move_firewall |
( |
object * |
op |
) |
|
Move for FIREWALL.
Firewalls fire other spells. The direction of the wall is stored in op->stats.dam.
- Parameters:
-
Definition at line 372 of file time.c.
| void process_object |
( |
object * |
op |
) |
|
Main object move function.
- Parameters:
-
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.
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:
-
- Returns:
- Pointer to stopped object, NULL if destroyed or can't be stopped.
Definition at line 163 of file time.c.