Mirror(3)                                                            Mirror(3)



NNAAMMEE
       Mirror -

SSYYNNOOPPSSIISS
   PPuubblliicc MMeetthhooddss
       object qquueerryy__mmaasstteerr__oobb ()
       void sseett__mmaasstteerr__oobb (object ob)
       int ccaattcchh__ccaallll (mixed result, string func, varargs args)

   PPuubblliicc AAttttrriibbuutteess
       symbol mmaasstteerr__oobb

DDEETTAAIILLEEDD DDEESSCCRRIIPPTTIIOONN
       Mirror objects are designed to act as slaves to a more complex 'master'
       object. A good example of this is doors -- you have two doors, one in
       each room, but one should be slave to the other. The simpler, slave
       door stores only those attributes which should uniquely belong to it,
       and all other requests for information are passed to the master door.
       This lets you cache things such as whether the door is open/closed,
       locked, etc.

       Definition at line 10 of file mirror.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
   iinntt ccaattcchh__ccaallll ((mmiixxeedd rreessuulltt,, ssttrriinngg ffuunncc,, vvaarraarrggss aarrggss))
       The magic that makes the mirror work. Pass calls through the master
       object.

       Definition at line 27 of file mirror.c.

       References query_master_ob().

   oobbjjeecctt qquueerryy__mmaasstteerr__oobb (())
       RReettuurrnnss::
           The master object that this mirror is slaved to, as an object
           pointer.

       Definition at line 17 of file mirror.c.

       References master_ob.

       Referenced by catch_call().

   vvooiidd sseett__mmaasstteerr__oobb ((oobbjjeecctt oobb))
       Give it an object pointer, and this object will start mirroring that
       object.

       Definition at line 22 of file mirror.c.

       References master_ob.

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syymmbbooll mmaasstteerr__oobb
       Stores the master object. Should survive a reboot, though won't work
       for non-saveload stuff too well.

       Definition at line 14 of file mirror.c.

       Referenced by query_master_ob(), and set_master_ob().


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



Walraven                          8 Jan 2004                         Mirror(3)
