[Package Index | Mudlib Index | Effect Index]
File /obj/handlers/bits_controller.c
Decays all the decable objects in the game.See also:
/obj/food.c, /std/bit.c and /obj/corpse.c
Written by Ember
Change history
- 17 Dec 1997 -- Sin
I added a reset_eval_cost() call into the do_update() routine
so that it wouldn't quit when there were a whole bunch of
bits to decay.
- 6 Jan 1998 -- Sin
I modified the do_update() routine so it'll register a callback
even if one of the bits fails to decay. That should help prevent
the callout from disappearing. If it does disappear, I added
a kickstart function.
Includes
This class includes the following files /include/bits_controller.hMethod index
Public Functions
These are functions that everyone can access.
-
add_bit
void add_bit(object ob)
Adds in a decable object into ther decaying array.
- Parameters:
ob - the bit to decay
-
kickstart
void kickstart()
-
query_bits
object * query_bits()
-
query_num_bits
int query_num_bits()
-
remove_bit
void remove_bit(object ob)
Removes the decable object from the decaying array.
- Parameters:
ob - the bit to remove