Decay(3)                                                              Decay(3)



NNAAMMEE
       Decay -

SSYYNNOOPPSSIISS
       Inherited by Food [private].


   PPuubblliicc MMeetthhooddss
       void sseett__ppeerriisshhaabbllee (int x)
       void sseett__ddeeccaayy (int x)
       int qquueerryy__ppeerriisshhaabbllee ()
       int qquueerryy__ddeeccaayy ()
       string ddeeccaayy__iinnffoo ()
       void __rreesseett__ddeeccaayy ()

   SSttaattiicc PPuubblliicc MMeetthhooddss
       void ddeeccaayy__ddeessttrruucctt ()

DDEETTAAIILLEEDD DDEESSCCRRIIPPTTIIOONN
       The purpose of this object is to handle decay. It is quite gentle on
       the CPU, so don't have qualms about inheriting it everywhere. It uses
       the rreesseett(()) event to decay.

       The default settings for Walraven as of this writing are one reset
       approximately every hour; the LDMud driver randomizes this somewhat, so
       only expect this as an average.

       The value of 'perishable' determines how fast an item decays. If 0, the
       item doesn't decay. For any other value, the item decays By
       'perishable' points every hour; it needs to reach MAX_DECAY points
       before the item self destructs. For comparison, there are 720 hours in
       a month, and 8760 in a year; an item with a 'perishable' value of 1
       should self-destruct after a little over a year of uptime.

       This object triggers the on_decay(int) event every time decay occurs.
       For information on that, read the on_decay man page.

       Definition at line 22 of file decay.c.

MMEEMMBBEERR FFUUNNCCTTIIOONN DDOOCCUUMMEENNTTAATTIIOONN
   vvooiidd __rreesseett__ddeeccaayy (())
       Decays the object, triggering a self-destruct event when it's done.

       Definition at line 43 of file decay.c.

       References query_decay(), query_perishable(), and set_decay().

   vvooiidd ddeeccaayy__ddeessttrruucctt (()) [[ssttaattiicc]]
       Destruct this object. Triggered from __rreesseett__ddeeccaayy(()).

       Definition at line 52 of file decay.c.

   ssttrriinngg ddeeccaayy__iinnffoo (())
       This function is for keeping objedit happy.

       Definition at line 38 of file decay.c.

   iinntt qquueerryy__ddeeccaayy (())
       RReettuurrnnss::
           The amount the object has decayed.

       Definition at line 35 of file decay.c.

       Referenced by _reset_decay().

   iinntt qquueerryy__ppeerriisshhaabbllee (())
       RReettuurrnnss::
           The speed of the object's decay.

       Definition at line 32 of file decay.c.

       Referenced by _reset_decay().

   vvooiidd sseett__ddeeccaayy ((iinntt xx))
       Sets the amount of decay to _x.

       Definition at line 29 of file decay.c.

       Referenced by _reset_decay().

   vvooiidd sseett__ppeerriisshhaabbllee ((iinntt xx))
       Sets the decay speed to _x.

       Definition at line 26 of file decay.c.


AAUUTTHHOORR
       Generated automatically by Doxygen for Walraven from the source code.



Walraven                          8 Jan 2004                          Decay(3)
