Accept(3)                                                            Accept(3)



NNAAMMEE
       Accept -

SSYYNNOOPPSSIISS
   PPuubblliicc MMeetthhooddss
       void sseett__vveerrbb (object v)
       void sseett__yyeess (string s, mixed p)
       void sseett__nnoo (string s, mixed p)
       void ssttaarrtt (object who)
       void oonn__aacccceepptt ()
       void oonn__rreejjeecctt ()
       void oonn__ttiimmee__oouutt ()

   PPuubblliicc AAttttrriibbuutteess
       object vveerrbb
       string yyeess
       string nnoo
       mixed yyeessppaarraamm
       mixed nnooppaarraamm

DDEETTAAIILLEEDD DDEESSCCRRIIPPTTIIOONN
       This object is cloned up whenever anyone has to make a decision to
       accept something or not. It is used to seal trades, give items, atone
       for sins, etc... it is meant to be fairly generic and should be useful
       for any number of applications.

       The intended pattern of use is:

       clone the object

       call set_verb, set_yes, and set_no on the object

       call start

       Typically the accept and reject functions should be defined in the
       originating verb. For example, /bin/give->on_accept(param).

       Definition at line 15 of file accept.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 oonn__aacccceepptt (())
       Called when the player accepts the request (/bin/accept).

       Definition at line 66 of file accept.c.

       References verb, yes, and yesparam.

   vvooiidd oonn__rreejjeecctt (())
       Called when the player rejects the request (/bin/reject).

       Definition at line 78 of file accept.c.

       References no, noparam, and verb.

       Referenced by on_time_out().

   vvooiidd oonn__ttiimmee__oouutt (())
       Called when the player doesn't respond to the request within 20
       seconds.

       Definition at line 90 of file accept.c.

       References on_reject().

   vvooiidd sseett__nnoo ((ssttrriinngg ss,, mmiixxeedd pp))
       Sets the action to be taken then the person rejects, either from
       timeout or direct rejection. _s is the function, _p its parameter.

       Definition at line 51 of file accept.c.

       References no, and noparam.

   vvooiidd sseett__vveerrbb ((oobbjjeecctt vv))
       Sets the filename (typically a verb) who is handling the request (i.e.
       '/bin/give'). The functions given in set_yes and set_no will be called
       in this verb.

       Definition at line 34 of file accept.c.

       References verb.

   vvooiidd sseett__yyeess ((ssttrriinngg ss,, mmiixxeedd pp))
       Sets the action to be taken when the person accepts -- _s is the
       function to call, and it will be passed parameter _p.

       Definition at line 42 of file accept.c.

       References yes, and yesparam.

   vvooiidd ssttaarrtt ((oobbjjeecctt wwhhoo))
       Function moves the object into the inventory of the target player,
       notifies them that they have a decision to make, and starts the timer
       (10 seconds).

       Definition at line 56 of file accept.c.

MMEEMMBBEERR DDAATTAA DDOOCCUUMMEENNTTAATTIIOONN
   ssttrriinngg nnoo
       Function to call if the action is refused.

       Definition at line 25 of file accept.c.

       Referenced by on_reject(), and set_no().

   mmiixxeedd nnooppaarraamm
       Parameters to pass to verb::yes().

       Definition at line 28 of file accept.c.

       Referenced by on_reject(), and set_no().

   oobbjjeecctt vveerrbb
       VVeerrbb that cloned this object in the first place.

       Definition at line 19 of file accept.c.

       Referenced by on_accept(), on_reject(), and set_verb().

   ssttrriinngg yyeess
       Function to call in verb if the action is accepted.

       Definition at line 22 of file accept.c.

       Referenced by on_accept(), and set_yes().

   mmiixxeedd yyeessppaarraamm
       Parameters to pass to verb::yes().

       Definition at line 28 of file accept.c.

       Referenced by on_accept(), and set_yes().


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



Walraven                          8 Jan 2004                         Accept(3)
