Mudlib move

Documentation for the object-move functions for the mudlib in /std/object/move.c.

Functions

int contains(object o)

contains(o) returns 1 if o is in this object, or in an object contained by this object (recursively).

int is_in(object o)

is_in(o) returns 1 if this object is in o, or in an object which is in o (recursively).

varargs mixed move(mixed dest, string relation)

move(dest, relation) moves this object to be ‘relation’ (“in”, “on”, etc) to the object dest, if possible. If it fails, it returns a string //error message or zero; if it succeeds it returns 1.

object query_last_location()

Returns the last object an object was inside before it moved to where it is now.

varargs object give_new_obj(object target, string obj, int recurse, mixed args)

give_new_obj creates a new object and moves it to target. If recurse is 1 the object will be moved to the environment if the move fails. The optional args are passed to the object when it is created.

File generated by Lima 1.1a4 reStructured Text daemon.