obj.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html><head><title>Python: obj</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>obj</strong></big></big></font></td
  8. ><td align=right valign=bottom
  9. ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br>(built-in)</font></td></tr></table>
  10. <p><tt>Contains&nbsp;the&nbsp;Python&nbsp;wrapper&nbsp;for&nbsp;game&nbsp;objects.&nbsp;Also&nbsp;contains&nbsp;utilities<br>
  11. for&nbsp;listing,&nbsp;storing,&nbsp;and&nbsp;generating&nbsp;objects&nbsp;from&nbsp;prototypes.</tt></p>
  12. <p>
  13. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  14. <tr bgcolor="#ee77aa">
  15. <td colspan=3 valign=bottom>&nbsp;<br>
  16. <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
  17. <tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  18. <td width="100%"><dl>
  19. <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
  20. </font></dt><dd>
  21. <dl>
  22. <dt><font face="helvetica, arial"><a href="obj.html#Obj">Obj</a>
  23. </font></dt></dl>
  24. </dd>
  25. </dl>
  26. <p>
  27. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  28. <tr bgcolor="#ffc8d8">
  29. <td colspan=3 valign=bottom>&nbsp;<br>
  30. <font color="#000000" face="helvetica, arial"><a name="Obj">class <strong>Obj</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
  31. <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
  32. <td colspan=2><tt><a href="#Obj">Obj</a>/<a href="#Obj">Obj</a>&nbsp;objects<br>&nbsp;</tt></td></tr>
  33. <tr><td>&nbsp;</td>
  34. <td width="100%">Methods defined here:<br>
  35. <dl><dt><a name="Obj-__cmp__"><strong>__cmp__</strong></a>(...)</dt><dd><tt>x.<a href="#Obj-__cmp__">__cmp__</a>(y)&nbsp;&lt;==&gt;&nbsp;cmp(x,y)</tt></dd></dl>
  36. <dl><dt><a name="Obj-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#Obj-__init__">__init__</a>(...)&nbsp;initializes&nbsp;x;&nbsp;see&nbsp;x.__class__.__doc__&nbsp;for&nbsp;signature</tt></dd></dl>
  37. <dl><dt><a name="Obj-attach"><strong>attach</strong></a>(...)</dt><dd><tt><a href="#Obj-attach">attach</a>(trigger)<br>
  38. &nbsp;<br>
  39. Attach&nbsp;a&nbsp;trigger&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;by&nbsp;key&nbsp;name.</tt></dd></dl>
  40. <dl><dt><a name="Obj-aux"><strong>aux</strong></a>(...)</dt><dd><tt>Alias&nbsp;for&nbsp;obj.<a href="#Obj">Obj</a>.<a href="#Obj-getAuxiliary">getAuxiliary</a>(name)</tt></dd></dl>
  41. <dl><dt><a name="Obj-copy"><strong>copy</strong></a>(...)</dt><dd><tt><a href="#Obj-copy">copy</a>()<br>
  42. &nbsp;<br>
  43. Returns&nbsp;a&nbsp;copy&nbsp;of&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>.</tt></dd></dl>
  44. <dl><dt><a name="Obj-deletevar"><strong>deletevar</strong></a>(...)</dt><dd><tt><a href="#Obj-deletevar">deletevar</a>(name)<br>
  45. &nbsp;<br>
  46. Deletes&nbsp;a&nbsp;special&nbsp;variable&nbsp;from&nbsp;an&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;if&nbsp;they&nbsp;have&nbsp;one&nbsp;by&nbsp;the<br>
  47. given&nbsp;name.</tt></dd></dl>
  48. <dl><dt><a name="Obj-delvar"><strong>delvar</strong></a>(...)</dt><dd><tt>Alias&nbsp;for&nbsp;obj.<a href="#Obj">Obj</a>.<a href="#Obj-deletevar">deletevar</a>(name)</tt></dd></dl>
  49. <dl><dt><a name="Obj-detach"><strong>detach</strong></a>(...)</dt><dd><tt><a href="#Obj-detach">detach</a>(trigger)<br>
  50. &nbsp;<br>
  51. Detach&nbsp;a&nbsp;trigger&nbsp;from&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;by&nbsp;key&nbsp;name.</tt></dd></dl>
  52. <dl><dt><a name="Obj-do_trigs"><strong>do_trigs</strong></a>(...)</dt><dd><tt><a href="#Obj-do_trigs">do_trigs</a>(type,&nbsp;ch=None,&nbsp;obj=None,&nbsp;room=None,&nbsp;exit=None,&nbsp;cmd=None,<br>
  53. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;arg=None,&nbsp;opts=None)<br>
  54. &nbsp;<br>
  55. Run&nbsp;triggers&nbsp;of&nbsp;the&nbsp;specified&nbsp;type&nbsp;on&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>.&nbsp;By&nbsp;default,&nbsp;the<br>
  56. trigger&nbsp;owner&nbsp;is&nbsp;'me'.&nbsp;Other&nbsp;variables&nbsp;can&nbsp;be&nbsp;specified.&nbsp;The&nbsp;opts<br>
  57. variable&nbsp;can&nbsp;be&nbsp;a&nbsp;dictionary&nbsp;that&nbsp;maps&nbsp;optional&nbsp;variable&nbsp;names&nbsp;to&nbsp;their<br>
  58. values.</tt></dd></dl>
  59. <dl><dt><a name="Obj-edesc"><strong>edesc</strong></a>(...)</dt><dd><tt><a href="#Obj-edesc">edesc</a>(keywords,&nbsp;desc)<br>
  60. &nbsp;<br>
  61. Create&nbsp;an&nbsp;extra&nbsp;description&nbsp;for&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>,&nbsp;accessible&nbsp;via&nbsp;a&nbsp;comma-<br>
  62. separated&nbsp;list&nbsp;of&nbsp;keywords.</tt></dd></dl>
  63. <dl><dt><a name="Obj-fromall"><strong>fromall</strong></a>(...)</dt><dd><tt><a href="#Obj-fromall">fromall</a>()<br>
  64. &nbsp;<br>
  65. Remove&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;from&nbsp;whichever&nbsp;room,&nbsp;character,&nbsp;or&nbsp;container&nbsp;it&nbsp;is&nbsp;in.</tt></dd></dl>
  66. <dl><dt><a name="Obj-getAuxiliary"><strong>getAuxiliary</strong></a>(...)</dt><dd><tt><a href="#Obj-getAuxiliary">getAuxiliary</a>(name)<br>
  67. &nbsp;<br>
  68. Returns&nbsp;<a href="__builtin__.html#object">object</a>'s&nbsp;auxiliary&nbsp;data&nbsp;of&nbsp;the&nbsp;specified&nbsp;name.</tt></dd></dl>
  69. <dl><dt><a name="Obj-get_type_data"><strong>get_type_data</strong></a>(...)</dt><dd><tt><a href="#Obj-get_type_data">get_type_data</a>(item_type)<br>
  70. &nbsp;<br>
  71. Returns&nbsp;Python&nbsp;item&nbsp;type&nbsp;data&nbsp;if&nbsp;it&nbsp;exists,&nbsp;or&nbsp;None.</tt></dd></dl>
  72. <dl><dt><a name="Obj-get_types"><strong>get_types</strong></a>(...)</dt><dd><tt><a href="#Obj-get_types">get_types</a>()<br>
  73. &nbsp;<br>
  74. Returns&nbsp;a&nbsp;comma-separated&nbsp;list&nbsp;of&nbsp;item&nbsp;types&nbsp;this&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;has.</tt></dd></dl>
  75. <dl><dt><a name="Obj-getvar"><strong>getvar</strong></a>(...)</dt><dd><tt><a href="#Obj-getvar">getvar</a>(name)<br>
  76. &nbsp;<br>
  77. Return&nbsp;value&nbsp;of&nbsp;a&nbsp;special&nbsp;variable.&nbsp;Return&nbsp;0&nbsp;if&nbsp;no&nbsp;value&nbsp;has&nbsp;been&nbsp;set.</tt></dd></dl>
  78. <dl><dt><a name="Obj-hasvar"><strong>hasvar</strong></a>(...)</dt><dd><tt><a href="#Obj-hasvar">hasvar</a>(name)<br>
  79. &nbsp;<br>
  80. Return&nbsp;True&nbsp;if&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;has&nbsp;the&nbsp;given&nbsp;special&nbsp;variable.&nbsp;False&nbsp;otherwise.</tt></dd></dl>
  81. <dl><dt><a name="Obj-isinstance"><strong>isinstance</strong></a>(...)</dt><dd><tt><a href="#Obj-isinstance">isinstance</a>(prototype)<br>
  82. &nbsp;<br>
  83. returns&nbsp;whether&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;inherits&nbsp;from&nbsp;a&nbsp;specified&nbsp;obj&nbsp;prototype.</tt></dd></dl>
  84. <dl><dt><a name="Obj-istype"><strong>istype</strong></a>(...)</dt><dd><tt><a href="#Obj-istype">istype</a>(item_type)<br>
  85. &nbsp;<br>
  86. Returns&nbsp;True&nbsp;or&nbsp;False&nbsp;if&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;is&nbsp;of&nbsp;the&nbsp;specified&nbsp;item&nbsp;type.</tt></dd></dl>
  87. <dl><dt><a name="Obj-settype"><strong>settype</strong></a>(...)</dt><dd><tt><a href="#Obj-settype">settype</a>(item_type)<br>
  88. &nbsp;<br>
  89. Make&nbsp;an&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;be&nbsp;the&nbsp;specified&nbsp;item&nbsp;type.</tt></dd></dl>
  90. <dl><dt><a name="Obj-setvar"><strong>setvar</strong></a>(...)</dt><dd><tt><a href="#Obj-setvar">setvar</a>(name,&nbsp;val)<br>
  91. &nbsp;<br>
  92. Set&nbsp;value&nbsp;of&nbsp;a&nbsp;special&nbsp;variable&nbsp;for&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>.&nbsp;Values&nbsp;must&nbsp;be&nbsp;strings<br>
  93. or&nbsp;numbers.&nbsp;This&nbsp;function&nbsp;is&nbsp;intended&nbsp;to&nbsp;allow&nbsp;scripts&nbsp;and&nbsp;triggers&nbsp;toopen-endedly&nbsp;add&nbsp;variables&nbsp;to&nbsp;objects.</tt></dd></dl>
  94. <dl><dt><a name="Obj-store"><strong>store</strong></a>(...)</dt><dd><tt><a href="#Obj-store">store</a>()<br>
  95. &nbsp;<br>
  96. Return&nbsp;a&nbsp;storage&nbsp;set&nbsp;representing&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>.</tt></dd></dl>
  97. <hr>
  98. Data descriptors defined here:<br>
  99. <dl><dt><strong>age</strong></dt>
  100. <dd><tt>Value&nbsp;is&nbsp;the&nbsp;difference&nbsp;between&nbsp;the&nbsp;object's&nbsp;creation&nbsp;time&nbsp;and&nbsp;the<br>
  101. current&nbsp;system&nbsp;time.&nbsp;Immutable.</tt></dd>
  102. </dl>
  103. <dl><dt><strong>birth</strong></dt>
  104. <dd><tt>Value&nbsp;is&nbsp;the&nbsp;object's&nbsp;creation&nbsp;time&nbsp;(system&nbsp;time).&nbsp;Immutable.</tt></dd>
  105. </dl>
  106. <dl><dt><strong>bits</strong></dt>
  107. <dd><tt>A&nbsp;comma-separated&nbsp;list&nbsp;of&nbsp;bits&nbsp;currently&nbsp;toggled&nbsp;for&nbsp;this&nbsp;object.</tt></dd>
  108. </dl>
  109. <dl><dt><strong>carrier</strong></dt>
  110. <dd><tt>The&nbsp;character&nbsp;whose&nbsp;inventory&nbsp;this&nbsp;object&nbsp;is&nbsp;currently&nbsp;in,&nbsp;or&nbsp;None.</tt></dd>
  111. </dl>
  112. <dl><dt><strong>chars</strong></dt>
  113. <dd><tt>A&nbsp;list&nbsp;of&nbsp;characters&nbsp;currently&nbsp;sitting/riding&nbsp;this&nbsp;object.&nbsp;Immutable.<br>
  114. See&nbsp;char.Char.furniture&nbsp;for&nbsp;changing&nbsp;a&nbsp;character's&nbsp;furniture.</tt></dd>
  115. </dl>
  116. <dl><dt><strong>container</strong></dt>
  117. <dd><tt>The&nbsp;container&nbsp;this&nbsp;object&nbsp;is&nbsp;currently&nbsp;in,&nbsp;or&nbsp;None.</tt></dd>
  118. </dl>
  119. <dl><dt><strong>container_capacity</strong></dt>
  120. <dd><tt>The&nbsp;maximum&nbsp;amount&nbsp;of&nbsp;weight&nbsp;c&nbsp;container&nbsp;can&nbsp;hold.</tt></dd>
  121. </dl>
  122. <dl><dt><strong>container_is_closable</strong></dt>
  123. <dd><tt>True&nbsp;or&nbsp;False&nbsp;if&nbsp;the&nbsp;container&nbsp;can&nbsp;be&nbsp;closed.</tt></dd>
  124. </dl>
  125. <dl><dt><strong>container_is_closed</strong></dt>
  126. <dd><tt>True&nbsp;or&nbsp;False&nbsp;if&nbsp;the&nbsp;container&nbsp;is&nbsp;closed.</tt></dd>
  127. </dl>
  128. <dl><dt><strong>container_is_locked</strong></dt>
  129. <dd><tt>True&nbsp;or&nbsp;False&nbsp;if&nbsp;the&nbsp;container&nbsp;is&nbsp;locked.</tt></dd>
  130. </dl>
  131. <dl><dt><strong>container_key</strong></dt>
  132. <dd><tt>An&nbsp;object&nbsp;prototype&nbsp;that&nbsp;acts&nbsp;as&nbsp;a&nbsp;key&nbsp;for&nbsp;this&nbsp;container.</tt></dd>
  133. </dl>
  134. <dl><dt><strong>container_pick_diff</strong></dt>
  135. <dd><tt>An&nbsp;integer&nbsp;representing&nbsp;how&nbsp;difficult&nbsp;a&nbsp;container's&nbsp;lock&nbsp;is&nbsp;to&nbsp;pick.</tt></dd>
  136. </dl>
  137. <dl><dt><strong>contents</strong></dt>
  138. <dd><tt>A&nbsp;list&nbsp;of&nbsp;other&nbsp;objects&nbsp;contained&nbsp;within&nbsp;this&nbsp;one.&nbsp;Immutable.<br>
  139. See&nbsp;obj.Obj.container&nbsp;for&nbsp;changing&nbsp;an&nbsp;object's&nbsp;container.</tt></dd>
  140. </dl>
  141. <dl><dt><strong>desc</strong></dt>
  142. <dd><tt>An&nbsp;object's&nbsp;verbose&nbsp;description&nbsp;e.g.,&nbsp;for&nbsp;when&nbsp;it&nbsp;is&nbsp;looked&nbsp;at.</tt></dd>
  143. </dl>
  144. <dl><dt><strong>furniture_capacity</strong></dt>
  145. <dd><tt>The&nbsp;number&nbsp;of&nbsp;characters&nbsp;a&nbsp;furniture&nbsp;object&nbsp;can&nbsp;accomodate.</tt></dd>
  146. </dl>
  147. <dl><dt><strong>furniture_type</strong></dt>
  148. <dd><tt>The&nbsp;type&nbsp;of&nbsp;furniture&nbsp;this&nbsp;is:&nbsp;'at'&nbsp;or&nbsp;'on'&nbsp;like&nbsp;e.g.,&nbsp;tables&nbsp;vs.&nbsp;couches.</tt></dd>
  149. </dl>
  150. <dl><dt><strong>hidden</strong></dt>
  151. <dd><tt>Integer&nbsp;value&nbsp;representing&nbsp;how&nbsp;hard&nbsp;this&nbsp;object&nbsp;is&nbsp;to&nbsp;see.</tt></dd>
  152. </dl>
  153. <dl><dt><strong>keywords</strong></dt>
  154. <dd><tt>A&nbsp;comma-separated&nbsp;list&nbsp;of&nbsp;keywords&nbsp;for&nbsp;referencing&nbsp;the&nbsp;object.</tt></dd>
  155. </dl>
  156. <dl><dt><strong>mdesc</strong></dt>
  157. <dd><tt>the&nbsp;equivalent&nbsp;of&nbsp;mname,&nbsp;for&nbsp;room&nbsp;descriptions.</tt></dd>
  158. </dl>
  159. <dl><dt><strong>mname</strong></dt>
  160. <dd><tt>The&nbsp;object's&nbsp;name&nbsp;for&nbsp;describing&nbsp;packs,&nbsp;e.g.,<br>
  161. a&nbsp;stack&nbsp;of&nbsp;12&nbsp;linen&nbsp;towels.&nbsp;The&nbsp;number&nbsp;should&nbsp;be&nbsp;replaced&nbsp;by&nbsp;%d,&nbsp;or<br>
  162. not&nbsp;included.</tt></dd>
  163. </dl>
  164. <dl><dt><strong>name</strong></dt>
  165. <dd><tt>The&nbsp;object's&nbsp;name&nbsp;e.g.,&nbsp;a&nbsp;longsword</tt></dd>
  166. </dl>
  167. <dl><dt><strong>objs</strong></dt>
  168. <dd><tt>Alias&nbsp;for&nbsp;obj.Obj.contents</tt></dd>
  169. </dl>
  170. <dl><dt><strong>portal_dest</strong></dt>
  171. <dd><tt>A&nbsp;string&nbsp;key&nbsp;specifying&nbsp;the&nbsp;destination&nbsp;of&nbsp;the&nbsp;portal.&nbsp;Can&nbsp;be&nbsp;set&nbsp;by<br>
  172. a&nbsp;string&nbsp;or&nbsp;the&nbsp;actual&nbsp;room.</tt></dd>
  173. </dl>
  174. <dl><dt><strong>portal_enter_mssg</strong></dt>
  175. <dd><tt>The&nbsp;message&nbsp;shown&nbsp;to&nbsp;the&nbsp;desination&nbsp;room&nbsp;when&nbsp;a&nbsp;character&nbsp;enters&nbsp;portal.</tt></dd>
  176. </dl>
  177. <dl><dt><strong>portal_leave_mssg</strong></dt>
  178. <dd><tt>The&nbsp;message&nbsp;shown&nbsp;to&nbsp;a&nbsp;room&nbsp;after&nbsp;a&nbsp;character&nbsp;leaves&nbsp;it&nbsp;via&nbsp;a&nbsp;portal.</tt></dd>
  179. </dl>
  180. <dl><dt><strong>prototypes</strong></dt>
  181. <dd><tt>A&nbsp;comma-separated&nbsp;list&nbsp;of&nbsp;prototypes&nbsp;this&nbsp;object&nbsp;inherits&nbsp;from.&nbsp;Immutable</tt></dd>
  182. </dl>
  183. <dl><dt><strong>rdesc</strong></dt>
  184. <dd><tt>The&nbsp;object's&nbsp;description&nbsp;when&nbsp;seen&nbsp;in&nbsp;a&nbsp;room,&nbsp;e.g.,<br>
  185. a&nbsp;longsword&nbsp;is&nbsp;here,&nbsp;gleaming&nbsp;in&nbsp;the&nbsp;sun.</tt></dd>
  186. </dl>
  187. <dl><dt><strong>room</strong></dt>
  188. <dd><tt>The&nbsp;room&nbsp;this&nbsp;object&nbsp;is&nbsp;current&nbsp;in,&nbsp;or&nbsp;None.</tt></dd>
  189. </dl>
  190. <dl><dt><strong>uid</strong></dt>
  191. <dd><tt>The&nbsp;object's&nbsp;unique&nbsp;identification&nbsp;number.&nbsp;Immutable.</tt></dd>
  192. </dl>
  193. <dl><dt><strong>wearer</strong></dt>
  194. <dd><tt>The&nbsp;character&nbsp;who&nbsp;is&nbsp;currently&nbsp;wearing&nbsp;this&nbsp;object,&nbsp;or&nbsp;None.</tt></dd>
  195. </dl>
  196. <dl><dt><strong>weight</strong></dt>
  197. <dd><tt>The&nbsp;object's&nbsp;weight&nbsp;(plus&nbsp;contents).&nbsp;When&nbsp;setting&nbsp;a&nbsp;new&nbsp;value,&nbsp;<br>
  198. sets&nbsp;raw&nbsp;weight&nbsp;(minus&nbsp;contents).</tt></dd>
  199. </dl>
  200. <dl><dt><strong>weight_raw</strong></dt>
  201. <dd><tt>The&nbsp;object's&nbsp;weight&nbsp;(minus&nbsp;contents)</tt></dd>
  202. </dl>
  203. <dl><dt><strong>worn_locs</strong></dt>
  204. <dd><tt>The&nbsp;position&nbsp;names&nbsp;this&nbsp;worn&nbsp;type&nbsp;must&nbsp;be&nbsp;equipped&nbsp;to.&nbsp;Immutable.</tt></dd>
  205. </dl>
  206. <dl><dt><strong>worn_type</strong></dt>
  207. <dd><tt>The&nbsp;type&nbsp;of&nbsp;worn&nbsp;item&nbsp;this&nbsp;is.</tt></dd>
  208. </dl>
  209. <hr>
  210. Data and other attributes defined here:<br>
  211. <dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of type object at 0x6f500&gt;<dd><tt>T.<a href="#Obj-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>
  212. </td></tr></table></td></tr></table><p>
  213. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  214. <tr bgcolor="#eeaa77">
  215. <td colspan=3 valign=bottom>&nbsp;<br>
  216. <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
  217. <tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  218. <td width="100%"><dl><dt><a name="-count_objs"><strong>count_objs</strong></a>(...)</dt><dd><tt><a href="#-count_objs">count_objs</a>(keyword,&nbsp;loc&nbsp;=&nbsp;None)<br>
  219. &nbsp;<br>
  220. count&nbsp;how&nbsp;many&nbsp;occurences&nbsp;of&nbsp;an&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;with&nbsp;the&nbsp;specified&nbsp;keyword,&nbsp;uid,<br>
  221. or&nbsp;prototype&nbsp;exist&nbsp;at&nbsp;a&nbsp;location.&nbsp;If&nbsp;loc&nbsp;is&nbsp;None,&nbsp;search&nbsp;the&nbsp;entire&nbsp;mud.<br>
  222. Loc&nbsp;can&nbsp;be&nbsp;a&nbsp;room,&nbsp;character,&nbsp;or&nbsp;container&nbsp;<a href="__builtin__.html#object">object</a>.</tt></dd></dl>
  223. <dl><dt><a name="-find_obj"><strong>find_obj</strong></a>(...)</dt><dd><tt>function&nbsp;has&nbsp;been&nbsp;deprecated.&nbsp;Entrypoint&nbsp;for&nbsp;generic_find().<br>
  224. Use&nbsp;mud.parse_args&nbsp;instead.</tt></dd></dl>
  225. <dl><dt><a name="-find_obj_key"><strong>find_obj_key</strong></a>(...)</dt><dd><tt>function&nbsp;has&nbsp;been&nbsp;deprecated.&nbsp;Entrypoint&nbsp;for&nbsp;generic_find().<br>
  226. Use&nbsp;mud.parse_args&nbsp;instead.</tt></dd></dl>
  227. <dl><dt><a name="-load_obj"><strong>load_obj</strong></a>(...)</dt><dd><tt><a href="#-load_obj">load_obj</a>(prototype,&nbsp;where=None,&nbsp;equip_to='')<br>
  228. &nbsp;<br>
  229. Generate&nbsp;a&nbsp;new&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;from&nbsp;the&nbsp;specified&nbsp;prototype.&nbsp;Add&nbsp;it&nbsp;to&nbsp;where.<br>
  230. Where&nbsp;can&nbsp;be&nbsp;a&nbsp;room,&nbsp;character,&nbsp;or&nbsp;container.&nbsp;If&nbsp;where&nbsp;is&nbsp;a&nbsp;character,<br>
  231. add&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;to&nbsp;the&nbsp;character's&nbsp;inventory&nbsp;unless&nbsp;a&nbsp;comma-separated<br>
  232. list&nbsp;of&nbsp;bodypart&nbsp;name&nbsp;of&nbsp;positions&nbsp;is&nbsp;specified.&nbsp;Return&nbsp;the&nbsp;created&nbsp;<a href="__builtin__.html#object">object</a>.</tt></dd></dl>
  233. <dl><dt><a name="-obj_list"><strong>obj_list</strong></a>(...)</dt><dd><tt><a href="#-obj_list">obj_list</a>()<br>
  234. &nbsp;<br>
  235. Return&nbsp;a&nbsp;list&nbsp;containing&nbsp;every&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;in&nbsp;the&nbsp;game.</tt></dd></dl>
  236. <dl><dt><a name="-read"><strong>read</strong></a>(...)</dt><dd><tt><a href="#-read">read</a>(storage_set)<br>
  237. &nbsp;<br>
  238. Read&nbsp;and&nbsp;return&nbsp;an&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;from&nbsp;a&nbsp;storage&nbsp;set.</tt></dd></dl>
  239. </td></tr></table>
  240. </body></html>