|
Atrinik Server 2.5
|
#include <global.h>Go to the source code of this file.
Functions | |
| int | move_ob (object *op, int dir, object *originator) |
| int | transfer_ob (object *op, int x, int y, int randomly, object *originator, object *trap) |
| int | teleport (object *teleporter, uint8 tele_type, object *user) |
| int | push_ob (object *op, int dir, object *pusher) |
| int | missile_reflection_adjust (object *op, int flag) |
Handles object moving and pushing.
Definition in file move.c.
Try to move object in specified direction.
| op | What to move. |
| dir | Direction to move the object to. |
| originator | Typically the same as op, but can be different if originator is causing op to move (originator is pushing op). |
Move an object (even linked objects) to another spot on the same map.
Does nothing if there is no free spot.
| op | What to move. |
| x | New X coordinate. |
| y | New Y coordinate. |
| randomly | If 1, use find_free_spot() to find the destination, otherwise use find_first_free_spot(). |
| originator | What is causing op to move. |
| trap | Trap. |
1.7.4