|
Driver Applies: init |
|
NAMEinit - function in an object called by move_object() to initialize verb/actions
SYNOPSISvoid init( void );
DESCRIPTIONWhen the mudlib moves an object "A" inside another object "B", the driver (the move_object() efunction) does the following: .TP 1. if "A" is living, causes "A" to call the init() in "B" .TP 2. causes each living object in the inventory of "B" to call init() in "A". regardless of whether "A" is living or not. .TP 3. if "A" is living, causes "A" to call the init() in each object in the inventory of "B". Note: an object is considered to be living if enable_commands() has been called by that object. Typically, the init() function in an object is used to call add_action() for each command that the object offers.
SEE ALSOreset(), move_object(), enable_commands(), living(), add_action() |
|
Page design by Frank Jacquette & Tim Hollebeek Copyright (C) 1998 Tim Hollebeek & Frank Jacquette |
|