[Package Index | Mudlib Index | Effect Index]

File /obj/shovel.c

This is a clonable shovel object (a "shovel" in this case being anything that can be used for digging, from a garden trowel to a steam shovel). The "dig" command is defined with the following syntax:
The do_dig() function tries to call a function dig() on this_player()'s environment, which should be defined as

int dig( object indir, string indir_s )

where


Note that the command can match either actual objects or just strings; also note that, although it will match room items, the object passed won't really be of much use (which is why the string is passed also).

Inherits

This class inherits the following classes /obj/weapon.c