inform.html 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html><head><title>Python: inform</title>
  3. </head><body bgcolor="#f0f0f8">
  4. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
  5. <tr bgcolor="#7799ee">
  6. <td valign=bottom>&nbsp;<br>
  7. <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>inform</strong></big></big></font></td
  8. ><td align=right valign=bottom
  9. ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/hollis/Desktop/nakedmud/lib/pymodules/inform.py">/Users/hollis/Desktop/nakedmud/lib/pymodules/inform.py</a></font></td></tr></table>
  10. <p><tt>inform.py<br>
  11. &nbsp;<br>
  12. Python's&nbsp;mirror&nbsp;of&nbsp;C's&nbsp;inform.c&nbsp;--&nbsp;contains&nbsp;various&nbsp;functions&nbsp;that&nbsp;perform<br>
  13. informative&nbsp;duties.&nbsp;Examining&nbsp;places/things,&nbsp;displaying&nbsp;proper&nbsp;names,&nbsp;etc...</tt></p>
  14. <p>
  15. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  16. <tr bgcolor="#aa55cc">
  17. <td colspan=3 valign=bottom>&nbsp;<br>
  18. <font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
  19. <tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  20. <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="char.html">char</a><br>
  21. <a href="display.html">display</a><br>
  22. </td><td width="25%" valign=top><a href="hooks.html">hooks</a><br>
  23. <a href="mud.html">mud</a><br>
  24. </td><td width="25%" valign=top><a href="mudsock.html">mudsock</a><br>
  25. <a href="string.html">string</a><br>
  26. </td><td width="25%" valign=top><a href="utils.html">utils</a><br>
  27. </td></tr></table></td></tr></table><p>
  28. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  29. <tr bgcolor="#eeaa77">
  30. <td colspan=3 valign=bottom>&nbsp;<br>
  31. <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
  32. <tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  33. <td width="100%"><dl><dt><a name="-__unload__"><strong>__unload__</strong></a>()</dt><dd><tt>things&nbsp;that&nbsp;need&nbsp;to&nbsp;be&nbsp;detached&nbsp;when&nbsp;the&nbsp;module&nbsp;is&nbsp;un/reloaded</tt></dd></dl>
  34. <dl><dt><a name="-build_who"><strong>build_who</strong></a>(ch<font color="#909090">=None</font>)</dt><dd><tt>returns&nbsp;a&nbsp;formatted&nbsp;list&nbsp;of&nbsp;all&nbsp;the&nbsp;people&nbsp;currently&nbsp;online</tt></dd></dl>
  35. <dl><dt><a name="-equipment_look_hook"><strong>equipment_look_hook</strong></a>(info)</dt><dd><tt>displays&nbsp;a&nbsp;character's&nbsp;equipment&nbsp;when&nbsp;looked&nbsp;at</tt></dd></dl>
  36. <dl><dt><a name="-exit_look_hook"><strong>exit_look_hook</strong></a>(info)</dt></dl>
  37. <dl><dt><a name="-list_one_exit"><strong>list_one_exit</strong></a>(ch, ex, dir)</dt></dl>
  38. <dl><dt><a name="-list_one_furniture"><strong>list_one_furniture</strong></a>(ch, obj)</dt><dd><tt>list&nbsp;the&nbsp;contents&nbsp;of&nbsp;a&nbsp;piece&nbsp;of&nbsp;furniture&nbsp;to&nbsp;the&nbsp;character.</tt></dd></dl>
  39. <dl><dt><a name="-list_room_contents"><strong>list_room_contents</strong></a>(ch, room)</dt></dl>
  40. <dl><dt><a name="-list_room_exits"><strong>list_room_exits</strong></a>(ch, room, filter_compass<font color="#909090">=False</font>)</dt></dl>
  41. <dl><dt><a name="-room_look_hook"><strong>room_look_hook</strong></a>(info)</dt><dd><tt>diplays&nbsp;info&nbsp;about&nbsp;the&nbsp;room&nbsp;contents</tt></dd></dl>
  42. <dl><dt><a name="-show_equipment"><strong>show_equipment</strong></a>(ch, tgt)</dt><dd><tt>shows&nbsp;ch&nbsp;tgt's&nbsp;equipment</tt></dd></dl>
  43. </td></tr></table><p>
  44. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  45. <tr bgcolor="#55aa55">
  46. <td colspan=3 valign=bottom>&nbsp;<br>
  47. <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
  48. <tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  49. <td width="100%"><strong>cardinal_dirs</strong> = ['north', 'south', 'east', 'west']<br>
  50. <strong>compass_dirs</strong> = ['north', 'south', 'east', 'west', 'northwest', 'northeast', 'southwest', 'southeast']</td></tr></table>
  51. </body></html>