<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: exit</title> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> <tr bgcolor="#7799ee"> <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>exit</strong></big></big></font></td ><td align=right valign=bottom ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br>(built-in)</font></td></tr></table> <p><tt>The exit module, for all MUD exit-related stuff.</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ee77aa"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="exit.html#Exit">Exit</a> </font></dt></dl> </dd> </dl> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> <font color="#000000" face="helvetica, arial"><a name="Exit">class <strong>Exit</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt>Python <a href="#Exit">Exit</a> <a href="__builtin__.html#object">object</a><br> </tt></td></tr> <tr><td> </td> <td width="100%">Methods defined here:<br> <dl><dt><a name="Exit-__cmp__"><strong>__cmp__</strong></a>(...)</dt><dd><tt>x.<a href="#Exit-__cmp__">__cmp__</a>(y) <==> cmp(x,y)</tt></dd></dl> <dl><dt><a name="Exit-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#Exit-__init__">__init__</a>(...) initializes x; see x.__class__.__doc__ for signature</tt></dd></dl> <dl><dt><a name="Exit-close"><strong>close</strong></a>(...)</dt><dd><tt><a href="#Exit-close">close</a>()<br> <br> Close the exit's door if it exists.</tt></dd></dl> <dl><dt><a name="Exit-filldoor"><strong>filldoor</strong></a>(...)</dt><dd><tt><a href="#Exit-filldoor">filldoor</a>()<br> <br> Erase a door that was on the exit.</tt></dd></dl> <dl><dt><a name="Exit-lock"><strong>lock</strong></a>(...)</dt><dd><tt><a href="#Exit-lock">lock</a>()<br> <br> Locks the exit's door if it exists. Also closes.</tt></dd></dl> <dl><dt><a name="Exit-makedoor"><strong>makedoor</strong></a>(...)</dt><dd><tt><a href="#Exit-makedoor">makedoor</a>(name=None, keywords=None, opposite=None, closed=False, locked=False)<br> <br> Create a door for the exit.</tt></dd></dl> <dl><dt><a name="Exit-open"><strong>open</strong></a>(...)</dt><dd><tt><a href="#Exit-open">open</a>()<br> <br> Opens the exit's door if it exists. Also unlocks.</tt></dd></dl> <dl><dt><a name="Exit-unlock"><strong>unlock</strong></a>(...)</dt><dd><tt><a href="#Exit-unlock">unlock</a>()<br> <br> Unlocks the exit's door if it exists.</tt></dd></dl> <hr> Data and other attributes defined here:<br> <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#Exit-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl> <dl><dt><strong>desc</strong> = <attribute 'desc' of 'exit.Exit' objects><dd><tt>The verbose description of the exit when, e.g., it is looked at.</tt></dl> <dl><dt><strong>dest</strong> = <attribute 'dest' of 'exit.Exit' objects><dd><tt>The room that this exit leads to. Can be set either by assigning a<br> world room key, or an actual room.</tt></dl> <dl><dt><strong>destproto</strong> = <attribute 'destproto' of 'exit.Exit' objects><dd><tt>The world room key of our destination. Immutable.</tt></dl> <dl><dt><strong>enter_mssg</strong> = <attribute 'enter_mssg' of 'exit.Exit' objects><dd><tt>A message for when a char enters the room via this exit.</tt></dl> <dl><dt><strong>hidden</strong> = <attribute 'hidden' of 'exit.Exit' objects><dd><tt>Alias for exit.<a href="#Exit">Exit</a>.spot_diff</tt></dl> <dl><dt><strong>is_closable</strong> = <attribute 'is_closable' of 'exit.Exit' objects><dd><tt>True or False if an exit can be closed. Immutable.</tt></dl> <dl><dt><strong>is_closed</strong> = <attribute 'is_closed' of 'exit.Exit' objects><dd><tt>True or False if an exit is closed. Immutable.</tt></dl> <dl><dt><strong>is_locked</strong> = <attribute 'is_locked' of 'exit.Exit' objects><dd><tt>True or False if an exit is locked.</tt></dl> <dl><dt><strong>key</strong> = <attribute 'key' of 'exit.Exit' objects><dd><tt>An <a href="__builtin__.html#object">object</a> prototype name that can be used to unlock this exit. Can be<br> set either by assigning a prototype name, or an actual <a href="__builtin__.html#object">object</a>.</tt></dl> <dl><dt><strong>keywords</strong> = <attribute 'keywords' of 'exit.Exit' objects><dd><tt>A comma-separated string of the door's keywords.</tt></dl> <dl><dt><strong>leave_mssg</strong> = <attribute 'leave_mssg' of 'exit.Exit' objects><dd><tt>A message for when a character leaves a room via this exit.</tt></dl> <dl><dt><strong>name</strong> = <attribute 'name' of 'exit.Exit' objects><dd><tt>The name of the door for this exit, if any.</tt></dl> <dl><dt><strong>opposite</strong> = <attribute 'opposite' of 'exit.Exit' objects><dd><tt>if the exit is special, a dir name for the exit that leads back to<br> this exit's room.</tt></dl> <dl><dt><strong>pick_diff</strong> = <attribute 'pick_diff' of 'exit.Exit' objects><dd><tt>Integer value representing how hard the exit's lock is to pick.</tt></dl> <dl><dt><strong>room</strong> = <attribute 'room' of 'exit.Exit' objects><dd><tt>The room we this exit is attached to. Immutable.</tt></dl> <dl><dt><strong>spot_diff</strong> = <attribute 'spot_diff' of 'exit.Exit' objects><dd><tt>Integer value representing how hard to see the exit is.</tt></dl> <dl><dt><strong>uid</strong> = <attribute 'uid' of 'exit.Exit' objects><dd><tt>The exit's universal identification nubmer. Immutable.</tt></dl> </td></tr></table></td></tr></table> </body></html>