<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
<meta name="Generator" content="src2html"/>
<link rel="stylesheet" type="text/css" href="../../../../.misc/src2html.css"/>
<title>2.11BSD#431 - /usr/src/games/battlestar/com2.c</title>
</head><body>
<div class="cuser">
<div id="head">
<h1>
2.11BSD#431 - <a href="../../../../index.html">/</a><a href="../../../../usr.1.html">usr</a>/<a href="../../../src.1.html">src</a>/<a href="../../games.1.html">games</a>/<a href="../battlestar.1.html">battlestar</a>/<a href="com2.c">com2.c</a></h1>
</div>
<div id="navi">
<h5>Functions</h5>
<pre>
<span class="navo"><a href="com2.c.html#s:_draw" title="line 89">draw</a>              <span class="navx"><a href="com2.c.html#xref:s:_draw" title="to xref">X</a></span></span>
<span class="nave"><a href="com2.c.html#s:_follow" title="line 246">follow</a>            <span class="navx"><a href="com2.c.html#xref:s:_follow" title="to xref">X</a></span></span>
<span class="navo"><a href="com2.c.html#s:_murder" title="line 131">murder</a>            <span class="navx"><a href="com2.c.html#xref:s:_murder" title="to xref">X</a></span></span>
<span class="nave"><a href="com2.c.html#s:_put" title="line 74">put</a>               <span class="navx"><a href="com2.c.html#xref:s:_put" title="to xref">X</a></span></span>
<span class="navo"><a href="com2.c.html#s:_ravage" title="line 197">ravage</a>            <span class="navx"><a href="com2.c.html#xref:s:_ravage" title="to xref">X</a></span></span>
<span class="nave"><a href="com2.c.html#s:_use" title="line 94">use</a>               <span class="navx"><a href="com2.c.html#xref:s:_use" title="to xref">X</a></span></span>
<span class="navo"><a href="com2.c.html#s:_wearit" title="line 13">wearit</a>            <span class="navx"><a href="com2.c.html#xref:s:_wearit" title="to xref">X</a></span></span>
</pre>
</div>
<div id="body">
<div id="code">
<pre>
<span class="cuser"><i id="n:1">   1</i>:</span> <span class="scom">/*</span>
<span class="cuser"><i id="n:2">   2</i>:</span> <span class="scom"> * Copyright (c) 1983 Regents of the University of California,</span>
<span class="cuser"><i id="n:3">   3</i>:</span> <span class="scom"> * All rights reserved.  Redistribution permitted subject to</span>
<span class="cuser"><i id="n:4">   4</i>:</span> <span class="scom"> * the terms of the Berkeley Software License Agreement.</span>
<span class="cuser"><i id="n:5">   5</i>:</span> <span class="scom"> */</span>
<span class="cuser"><i id="n:6">   6</i>:</span> 
<span class="cuser"><i id="n:7">   7</i>:</span> <a href="com2.c.html#n:9" title="to line 9">#if</a> !<span class="skey">defined</span>(lint) &amp;&amp; !<span class="skey">defined</span>(pdp11)
<span class="cuser"><i id="n:8">   8</i>:</span> <span class="skey">static </span><span class="styp">char </span><a href="com2.c.html#xref:s:_sccsid" id="s:_sccsid">sccsid</a>[] = <span class="sstr">"@(#)com2.c	1.3.1 1996/10/26"</span>;
<span class="cuser"><i id="n:9">   9</i>:</span> <a href="com2.c.html#n:7" title="from line 7">#endif</a>
<span class="cuser"><i id="n:10">  10</i>:</span> 
<span class="cuser"><i id="n:11">  11</i>:</span> #include <a href="externs.h.html" title="/usr/src/games/battlestar/externs.h" class="sstr">"externs.h"</a>
<span class="cuser"><i id="n:12">  12</i>:</span> 
<span class="cuser"><i id="n:13">  13</i>:</span> <a href="com2.c.html#xref:s:_wearit" id="s:_wearit">wearit</a>()        <span class="scom">/* synonyms = {sheathe, sheath} */</span>
<span class="cuser"><i id="n:14">  14</i>:</span> <a href="com2.c.html#n:72" title="to line 72">{</a>
<span class="cuser"><i id="n:15">  15</i>:</span>     <span class="skey">register </span><span class="styp">int </span>n;
<span class="cuser"><i id="n:16">  16</i>:</span>     <span class="styp">int </span>firstnumber, value;
<span class="cuser"><i id="n:17">  17</i>:</span> 
<span class="cuser"><i id="n:18">  18</i>:</span>     firstnumber = <a href="externs.h.html#s:_wordnumber">wordnumber</a>;
<span class="cuser"><i id="n:19">  19</i>:</span>     <span class="skey">while</span>(<a href="externs.h.html#s:_wordtype">wordtype</a>[++<a href="externs.h.html#s:_wordnumber">wordnumber</a>] == <a href="externs.h.html#m:ADJS" title="defined: 4">ADJS</a>);
<span class="cuser"><i id="n:20">  20</i>:</span>     <span class="skey">while</span>(<a href="externs.h.html#s:_wordnumber">wordnumber</a> &lt;= <a href="externs.h.html#s:_wordcount">wordcount</a>)<a href="com2.c.html#n:69" title="to line 69">{</a>
<span class="cuser"><i id="n:21">  21</i>:</span>         value = <a href="externs.h.html#s:_wordvalue">wordvalue</a>[<a href="externs.h.html#s:_wordnumber">wordnumber</a>];
<span class="cuser"><i id="n:22">  22</i>:</span>         <span class="skey">for </span>(n=<span class="snum">0</span>; <a href="externs.h.html#s:_objsht">objsht</a>[value][n]; n++);
<span class="cuser"><i id="n:23">  23</i>:</span>         <span class="skey">switch</span>(value)<a href="com2.c.html#n:68" title="to line 68">{</a>
<span class="cuser"><i id="n:24">  24</i>:</span> 
<span class="cuser"><i id="n:25">  25</i>:</span>             <span class="skey">case </span>-<span class="snum">1</span>:
<span class="cuser"><i id="n:26">  26</i>:</span>                 <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Wear what?"</span>);
<span class="cuser"><i id="n:27">  27</i>:</span>                 <span class="skey">return</span>(firstnumber);
<span class="cuser"><i id="n:28">  28</i>:</span> 
<span class="cuser"><i id="n:29">  29</i>:</span>             <span class="skey">default</span>:
<span class="cuser"><i id="n:30">  30</i>:</span>                 <a href="../../lib/libc/stdio/printf.c.html#s:_printf">printf</a>(<span class="sstr">"You can't wear%s%s!\n"</span>,(<a href="externs.h.html#s:_objsht">objsht</a>[value][n-<span class="snum">1</span>] == <span class="slit">'s' </span>? <span class="sstr">" " </span>: <span class="sstr">" a "</span>),<a href="externs.h.html#s:_objsht">objsht</a>[value]);
<span class="cuser"><i id="n:31">  31</i>:</span>                 <span class="skey">return</span>(firstnumber);
<span class="cuser"><i id="n:32">  32</i>:</span> 
<span class="cuser"><i id="n:33">  33</i>:</span>             <span class="skey">case </span><span id="l:_wearit:KNIFE">KNIFE</span>:
<span class="cuser"><i id="n:34">  34</i>:</span>         <span class="scom">/*	case SHIRT:	*/</span>
<span class="cuser"><i id="n:35">  35</i>:</span>             <span class="skey">case </span><span id="l:_wearit:ROBE">ROBE</span>:
<span class="cuser"><i id="n:36">  36</i>:</span>             <span class="skey">case </span><span id="l:_wearit:LEVIS">LEVIS</span>: <span class="scom">/* wearable things */</span>
<span class="cuser"><i id="n:37">  37</i>:</span>             <span class="skey">case </span><span id="l:_wearit:SWORD">SWORD</span>:
<span class="cuser"><i id="n:38">  38</i>:</span>             <span class="skey">case </span><span id="l:_wearit:MAIL">MAIL</span>:
<span class="cuser"><i id="n:39">  39</i>:</span>             <span class="skey">case </span><span id="l:_wearit:HELM">HELM</span>:
<span class="cuser"><i id="n:40">  40</i>:</span>             <span class="skey">case </span><span id="l:_wearit:SHOES">SHOES</span>:
<span class="cuser"><i id="n:41">  41</i>:</span>             <span class="skey">case </span><span id="l:_wearit:PAJAMAS">PAJAMAS</span>:
<span class="cuser"><i id="n:42">  42</i>:</span>             <span class="skey">case </span><span id="l:_wearit:COMPASS">COMPASS</span>:
<span class="cuser"><i id="n:43">  43</i>:</span>             <span class="skey">case </span><span id="l:_wearit:LASER">LASER</span>:
<span class="cuser"><i id="n:44">  44</i>:</span>             <span class="skey">case </span><span id="l:_wearit:AMULET">AMULET</span>:
<span class="cuser"><i id="n:45">  45</i>:</span>             <span class="skey">case </span><span id="l:_wearit:TALISMAN">TALISMAN</span>:
<span class="cuser"><i id="n:46">  46</i>:</span>             <span class="skey">case </span><span id="l:_wearit:MEDALION">MEDALION</span>:
<span class="cuser"><i id="n:47">  47</i>:</span>             <span class="skey">case </span><span id="l:_wearit:ROPE">ROPE</span>:
<span class="cuser"><i id="n:48">  48</i>:</span>             <span class="skey">case </span><span id="l:_wearit:RING">RING</span>:
<span class="cuser"><i id="n:49">  49</i>:</span>             <span class="skey">case </span><span id="l:_wearit:BRACELET">BRACELET</span>:
<span class="cuser"><i id="n:50">  50</i>:</span>             <span class="skey">case </span><span id="l:_wearit:GRENADE">GRENADE</span>:
<span class="cuser"><i id="n:51">  51</i>:</span> 
<span class="cuser"><i id="n:52">  52</i>:</span>                 <span class="skey">if </span>(<a href="externs.h.html#m:testbit">testbit</a>(<a href="externs.h.html#s:_inven">inven</a>,value))<a href="com2.c.html#n:59" title="to line 59">{</a>
<span class="cuser"><i id="n:53">  53</i>:</span>                     <a href="externs.h.html#m:clearbit">clearbit</a>(<a href="externs.h.html#s:_inven">inven</a>,value);
<span class="cuser"><i id="n:54">  54</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_wear">wear</a>,value);
<span class="cuser"><i id="n:55">  55</i>:</span>                     <a href="externs.h.html#s:_carrying">carrying</a> -= <a href="externs.h.html#s:_objwt">objwt</a>[value];
<span class="cuser"><i id="n:56">  56</i>:</span>                     <a href="externs.h.html#s:_encumber">encumber</a> -= <a href="externs.h.html#s:_objcumber">objcumber</a>[value];
<span class="cuser"><i id="n:57">  57</i>:</span>                     <a href="externs.h.html#s:_Time">Time</a>++;
<span class="cuser"><i id="n:58">  58</i>:</span>                     <a href="../../lib/libc/stdio/printf.c.html#s:_printf">printf</a>(<span class="sstr">"You are now wearing %s %s.\n"</span>,(<a href="externs.h.html#s:_objsht">objsht</a>[value][n-<span class="snum">1</span>] == <span class="slit">'s' </span>? <span class="sstr">"the" </span>: <span class="sstr">"a"</span>), <a href="externs.h.html#s:_objsht">objsht</a>[value]);
<span class="cuser"><i id="n:59">  59</i>:</span>                 <a href="com2.c.html#n:52" title="from line 52">}</a>
<span class="cuser"><i id="n:60">  60</i>:</span>                 <span class="skey">else if </span>(<a href="externs.h.html#m:testbit">testbit</a>(<a href="externs.h.html#s:_wear">wear</a>,value))
<span class="cuser"><i id="n:61">  61</i>:</span>                     <a href="../../lib/libc/stdio/printf.c.html#s:_printf">printf</a>(<span class="sstr">"You are already wearing the %s.\n"</span>, <a href="externs.h.html#s:_objsht">objsht</a>[value]);
<span class="cuser"><i id="n:62">  62</i>:</span>                 <span class="skey">else</span>
<span class="cuser"><i id="n:63">  63</i>:</span>                     <a href="../../lib/libc/stdio/printf.c.html#s:_printf">printf</a>(<span class="sstr">"You aren't holding the %s.\n"</span>, <a href="externs.h.html#s:_objsht">objsht</a>[value]);
<span class="cuser"><i id="n:64">  64</i>:</span>                 <span class="skey">if </span>(<a href="externs.h.html#s:_wordnumber">wordnumber</a> &lt; <a href="externs.h.html#s:_wordcount">wordcount</a> - <span class="snum">1 </span>&amp;&amp; <a href="externs.h.html#s:_wordvalue">wordvalue</a>[++<a href="externs.h.html#s:_wordnumber">wordnumber</a>] == <a href="externs.h.html#m:AND" title="defined: 1023">AND</a>)
<span class="cuser"><i id="n:65">  65</i>:</span>                     <a href="externs.h.html#s:_wordnumber">wordnumber</a>++;
<span class="cuser"><i id="n:66">  66</i>:</span>                 <span class="skey">else</span>
<span class="cuser"><i id="n:67">  67</i>:</span>                     <span class="skey">return</span>(firstnumber);
<span class="cuser"><i id="n:68">  68</i>:</span>         <a href="com2.c.html#n:23" title="from line 23">}</a> <span class="scom">/* end switch */</span>
<span class="cuser"><i id="n:69">  69</i>:</span>     <a href="com2.c.html#n:20" title="from line 20">}</a> <span class="scom">/* end while */</span>
<span class="cuser"><i id="n:70">  70</i>:</span>     <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Don't be ridiculous."</span>);
<span class="cuser"><i id="n:71">  71</i>:</span>     <span class="skey">return</span>(firstnumber);
<span class="cuser"><i id="n:72">  72</i>:</span> <a href="com2.c.html#n:14" title="from line 14">}</a>
<span class="cuser"><i id="n:73">  73</i>:</span> 
<span class="cuser"><i id="n:74">  74</i>:</span> <a href="com2.c.html#xref:s:_put" id="s:_put">put</a>()       <span class="scom">/* synonyms = {buckle, strap, tie} */</span>
<span class="cuser"><i id="n:75">  75</i>:</span> <a href="com2.c.html#n:87" title="to line 87">{</a>
<span class="cuser"><i id="n:76">  76</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_wordvalue">wordvalue</a>[<a href="externs.h.html#s:_wordnumber">wordnumber</a> + <span class="snum">1</span>] == <a href="externs.h.html#m:ON" title="defined: 1037">ON</a>)<a href="com2.c.html#n:79" title="to line 79">{</a>
<span class="cuser"><i id="n:77">  77</i>:</span>         <a href="externs.h.html#s:_wordvalue">wordvalue</a>[++<a href="externs.h.html#s:_wordnumber">wordnumber</a>] = <a href="externs.h.html#m:PUTON" title="defined: 1018">PUTON</a>;
<span class="cuser"><i id="n:78">  78</i>:</span>         <span class="skey">return</span>(<a href="cypher.c.html#s:_cypher">cypher</a>());
<span class="cuser"><i id="n:79">  79</i>:</span>     <a href="com2.c.html#n:76" title="from line 76">}</a>
<span class="cuser"><i id="n:80">  80</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_wordvalue">wordvalue</a>[<a href="externs.h.html#s:_wordnumber">wordnumber</a> + <span class="snum">1</span>] == <a href="externs.h.html#m:DOWN" title="defined: 1001">DOWN</a>)<a href="com2.c.html#n:83" title="to line 83">{</a>
<span class="cuser"><i id="n:81">  81</i>:</span>         <a href="externs.h.html#s:_wordvalue">wordvalue</a>[++<a href="externs.h.html#s:_wordnumber">wordnumber</a>] = <a href="externs.h.html#m:DROP" title="defined: 1015">DROP</a>;
<span class="cuser"><i id="n:82">  82</i>:</span>         <span class="skey">return</span>(<a href="cypher.c.html#s:_cypher">cypher</a>());
<span class="cuser"><i id="n:83">  83</i>:</span>     <a href="com2.c.html#n:80" title="from line 80">}</a>
<span class="cuser"><i id="n:84">  84</i>:</span>     <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"I don't understand what you want to put."</span>);
<span class="cuser"><i id="n:85">  85</i>:</span>     <span class="skey">return</span>(-<span class="snum">1</span>);
<span class="cuser"><i id="n:86">  86</i>:</span> 
<span class="cuser"><i id="n:87">  87</i>:</span> <a href="com2.c.html#n:75" title="from line 75">}</a>
<span class="cuser"><i id="n:88">  88</i>:</span> 
<span class="cuser"><i id="n:89">  89</i>:</span> <a href="com2.c.html#xref:s:_draw" id="s:_draw">draw</a>()          <span class="scom">/* synonyms = {pull, carry} */</span>
<span class="cuser"><i id="n:90">  90</i>:</span> <a href="com2.c.html#n:92" title="to line 92">{</a>
<span class="cuser"><i id="n:91">  91</i>:</span>     <span class="skey">return</span>(<a href="com4.c.html#s:_take">take</a>(<a href="externs.h.html#s:_wear">wear</a>));
<span class="cuser"><i id="n:92">  92</i>:</span> <a href="com2.c.html#n:90" title="from line 90">}</a>
<span class="cuser"><i id="n:93">  93</i>:</span> 
<span class="cuser"><i id="n:94">  94</i>:</span> <a href="com2.c.html#xref:s:_use" id="s:_use">use</a>()
<span class="cuser"><i id="n:95">  95</i>:</span> <a href="com2.c.html#n:129" title="to line 129">{</a>
<span class="cuser"><i id="n:96">  96</i>:</span>     <span class="skey">while </span>(<a href="externs.h.html#s:_wordtype">wordtype</a>[++<a href="externs.h.html#s:_wordnumber">wordnumber</a>] == <a href="externs.h.html#m:ADJS" title="defined: 4">ADJS</a> &amp;&amp; <a href="externs.h.html#s:_wordnumber">wordnumber</a> &lt; <a href="externs.h.html#s:_wordcount">wordcount</a>);
<span class="cuser"><i id="n:97">  97</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_wordvalue">wordvalue</a>[<a href="externs.h.html#s:_wordnumber">wordnumber</a>] == <a href="externs.h.html#m:AMULET" title="defined: 17">AMULET</a> &amp;&amp; <a href="externs.h.html#m:testbit">testbit</a>(<a href="externs.h.html#s:_inven">inven</a>,<a href="externs.h.html#m:AMULET" title="defined: 17">AMULET</a>) &amp;&amp; <a href="externs.h.html#s:_position">position</a> != <a href="externs.h.html#m:FINAL" title="defined: 275">FINAL</a>)<a href="com2.c.html#n:117" title="to line 117">{</a>
<span class="cuser"><i id="n:98">  98</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The amulet begins to glow."</span>);
<span class="cuser"><i id="n:99">  99</i>:</span>         <span class="skey">if </span>(<a href="externs.h.html#m:testbit">testbit</a>(<a href="externs.h.html#s:_inven">inven</a>,<a href="externs.h.html#m:MEDALION" title="defined: 18">MEDALION</a>))<a href="com2.c.html#n:108" title="to line 108">{</a>
<span class="cuser"><i id="n:100"> 100</i>:</span>             <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The medallion comes to life too."</span>);
<span class="cuser"><i id="n:101"> 101</i>:</span>             <span class="skey">if </span>(<a href="externs.h.html#s:_position">position</a> == <span class="snum">114</span>)<a href="com2.c.html#n:107" title="to line 107">{</a>
<span class="cuser"><i id="n:102"> 102</i>:</span>                 <a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].<a href="externs.h.html#m:down" title="defined: link[6]">down</a> = <span class="snum">160</span>;
<span class="cuser"><i id="n:103"> 103</i>:</span>                 <a href="room.c.html#s:_whichway">whichway</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>]);
<span class="cuser"><i id="n:104"> 104</i>:</span>                 <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The waves subside and it is possible to descend to the sea cave now."</span>);
<span class="cuser"><i id="n:105"> 105</i>:</span>                 <a href="externs.h.html#s:_Time">Time</a>++;
<span class="cuser"><i id="n:106"> 106</i>:</span>                 <span class="skey">return</span>(-<span class="snum">1</span>);
<span class="cuser"><i id="n:107"> 107</i>:</span>             <a href="com2.c.html#n:101" title="from line 101">}</a>
<span class="cuser"><i id="n:108"> 108</i>:</span>         <a href="com2.c.html#n:99" title="from line 99">}</a>
<span class="cuser"><i id="n:109"> 109</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"A light mist falls over your eyes and the sound of purling water trickles in"</span>);
<span class="cuser"><i id="n:110"> 110</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"your ears.   When the mist lifts you are standing beside a cool stream."</span>);
<span class="cuser"><i id="n:111"> 111</i>:</span>         <span class="skey">if </span>(<a href="externs.h.html#s:_position">position</a> == <span class="snum">229</span>)
<span class="cuser"><i id="n:112"> 112</i>:</span>             <a href="externs.h.html#s:_position">position</a> = <span class="snum">224</span>;
<span class="cuser"><i id="n:113"> 113</i>:</span>         <span class="skey">else</span>
<span class="cuser"><i id="n:114"> 114</i>:</span>             <a href="externs.h.html#s:_position">position</a> = <span class="snum">229</span>;
<span class="cuser"><i id="n:115"> 115</i>:</span>         <a href="externs.h.html#s:_Time">Time</a>++;
<span class="cuser"><i id="n:116"> 116</i>:</span>         <span class="skey">return</span>(<span class="snum">0</span>);
<span class="cuser"><i id="n:117"> 117</i>:</span>     <a href="com2.c.html#n:97" title="from line 97">}</a>
<span class="cuser"><i id="n:118"> 118</i>:</span>     <span class="skey">else if </span>(<a href="externs.h.html#s:_position">position</a> == <a href="externs.h.html#m:FINAL" title="defined: 275">FINAL</a>)
<span class="cuser"><i id="n:119"> 119</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The amulet won't work in here."</span>);
<span class="cuser"><i id="n:120"> 120</i>:</span>     <span class="skey">else if </span>(<a href="externs.h.html#s:_wordvalue">wordvalue</a>[<a href="externs.h.html#s:_wordnumber">wordnumber</a>] == <a href="externs.h.html#m:COMPASS" title="defined: 32">COMPASS</a> &amp;&amp; <a href="externs.h.html#m:testbit">testbit</a>(<a href="externs.h.html#s:_inven">inven</a>,<a href="externs.h.html#m:COMPASS" title="defined: 32">COMPASS</a>))
<span class="cuser"><i id="n:121"> 121</i>:</span>         <a href="../../lib/libc/stdio/printf.c.html#s:_printf">printf</a>(<span class="sstr">"Your compass points %s.\n"</span>,<a href="room.c.html#s:_truedirec">truedirec</a>(<a href="externs.h.html#m:NORTH" title="defined: 1010">NORTH</a>,<span class="slit">'-'</span>));
<span class="cuser"><i id="n:122"> 122</i>:</span>     <span class="skey">else if </span>(<a href="externs.h.html#s:_wordvalue">wordvalue</a>[<a href="externs.h.html#s:_wordnumber">wordnumber</a>] == <a href="externs.h.html#m:COMPASS" title="defined: 32">COMPASS</a>)
<span class="cuser"><i id="n:123"> 123</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You aren't holding the compass."</span>);
<span class="cuser"><i id="n:124"> 124</i>:</span>     <span class="skey">else if </span>(<a href="externs.h.html#s:_wordvalue">wordvalue</a>[<a href="externs.h.html#s:_wordnumber">wordnumber</a>] == <a href="externs.h.html#m:AMULET" title="defined: 17">AMULET</a>)
<span class="cuser"><i id="n:125"> 125</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You aren't holding the amulet."</span>);
<span class="cuser"><i id="n:126"> 126</i>:</span>     <span class="skey">else</span>
<span class="cuser"><i id="n:127"> 127</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"There is no apparent use."</span>);
<span class="cuser"><i id="n:128"> 128</i>:</span>     <span class="skey">return</span>(-<span class="snum">1</span>);
<span class="cuser"><i id="n:129"> 129</i>:</span> <a href="com2.c.html#n:95" title="from line 95">}</a>
<span class="cuser"><i id="n:130"> 130</i>:</span> 
<span class="cuser"><i id="n:131"> 131</i>:</span> <a href="com2.c.html#xref:s:_murder" id="s:_murder">murder</a>()
<span class="cuser"><i id="n:132"> 132</i>:</span> <a href="com2.c.html#n:195" title="to line 195">{</a>
<span class="cuser"><i id="n:133"> 133</i>:</span>     <span class="skey">register </span><span class="styp">int </span>n;
<span class="cuser"><i id="n:134"> 134</i>:</span> 
<span class="cuser"><i id="n:135"> 135</i>:</span>     <span class="skey">for </span>(n=<span class="snum">0</span>; !((n == <a href="externs.h.html#m:SWORD" title="defined: 1">SWORD</a> || n == <a href="externs.h.html#m:KNIFE" title="defined: 0">KNIFE</a> || n == <a href="externs.h.html#m:TWO_HANDED" title="defined: 4">TWO_HANDED</a> || n == <a href="externs.h.html#m:MACE" title="defined: 29">MACE</a> || n == <a href="externs.h.html#m:CLEAVER" title="defined: 5">CLEAVER</a> || n == <a href="externs.h.html#m:BROAD" title="defined: 6">BROAD</a> || n == <a href="externs.h.html#m:CHAIN" title="defined: 26">CHAIN</a> || n == <a href="externs.h.html#m:SHOVEL" title="defined: 30">SHOVEL</a> || n == <a href="externs.h.html#m:HALBERD" title="defined: 31">HALBERD</a>) &amp;&amp; <a href="externs.h.html#m:testbit">testbit</a>(<a href="externs.h.html#s:_inven">inven</a>,n)) &amp;&amp; n &lt; <a href="externs.h.html#m:NUMOFOBJECTS" title="defined: 64">NUMOFOBJECTS</a>; n++);
<span class="cuser"><i id="n:136"> 136</i>:</span>     <span class="skey">if </span>(n == <a href="externs.h.html#m:NUMOFOBJECTS" title="defined: 64">NUMOFOBJECTS</a>)
<span class="cuser"><i id="n:137"> 137</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You don't have suitable weapons to kill."</span>);
<span class="cuser"><i id="n:138"> 138</i>:</span>     <span class="skey">else </span><a href="com2.c.html#n:194" title="to line 194">{</a>
<span class="cuser"><i id="n:139"> 139</i>:</span>         <a href="../../lib/libc/stdio/printf.c.html#s:_printf">printf</a>(<span class="sstr">"Your %s should do the trick.\n"</span>,<a href="externs.h.html#s:_objsht">objsht</a>[n]);
<span class="cuser"><i id="n:140"> 140</i>:</span>         <span class="skey">while </span>(<a href="externs.h.html#s:_wordtype">wordtype</a>[++<a href="externs.h.html#s:_wordnumber">wordnumber</a>] == <a href="externs.h.html#m:ADJS" title="defined: 4">ADJS</a>);
<span class="cuser"><i id="n:141"> 141</i>:</span>         <span class="skey">switch</span>(<a href="externs.h.html#s:_wordvalue">wordvalue</a>[<a href="externs.h.html#s:_wordnumber">wordnumber</a>])<a href="com2.c.html#n:193" title="to line 193">{</a>
<span class="cuser"><i id="n:142"> 142</i>:</span> 
<span class="cuser"><i id="n:143"> 143</i>:</span>             <span class="skey">case </span><span id="l:_murder:NORMGOD">NORMGOD</span>:
<span class="cuser"><i id="n:144"> 144</i>:</span>                 <span class="skey">if </span>(<a href="externs.h.html#m:testbit">testbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#m:BATHGOD" title="defined: 23">BATHGOD</a>))<a href="com2.c.html#n:150" title="to line 150">{</a>
<span class="cuser"><i id="n:145"> 145</i>:</span>                     <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The goddess's head slices off.  Her corpse floats in the water."</span>);
<span class="cuser"><i id="n:146"> 146</i>:</span>                     <a href="externs.h.html#m:clearbit">clearbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#m:BATHGOD" title="defined: 23">BATHGOD</a>);
<span class="cuser"><i id="n:147"> 147</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#m:DEADGOD" title="defined: 55">DEADGOD</a>);
<span class="cuser"><i id="n:148"> 148</i>:</span>                     <a href="externs.h.html#s:_power">power</a> += <span class="snum">5</span>;
<span class="cuser"><i id="n:149"> 149</i>:</span>                     <a href="externs.h.html#s:_notes">notes</a>[<a href="externs.h.html#m:JINXED" title="defined: 4">JINXED</a>]++;
<span class="cuser"><i id="n:150"> 150</i>:</span>                 <a href="com2.c.html#n:144" title="from line 144">}</a> <span class="skey">else if </span>(<a href="externs.h.html#m:testbit">testbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#m:NORMGOD" title="defined: 24">NORMGOD</a>))<a href="com2.c.html#n:158" title="to line 158">{</a>
<span class="cuser"><i id="n:151"> 151</i>:</span>                     <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The goddess pleads but you strike her mercilessly.  Her broken body lies in a\npool of blood."</span>);
<span class="cuser"><i id="n:152"> 152</i>:</span>                     <a href="externs.h.html#m:clearbit">clearbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#m:NORMGOD" title="defined: 24">NORMGOD</a>);
<span class="cuser"><i id="n:153"> 153</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#m:DEADGOD" title="defined: 55">DEADGOD</a>);
<span class="cuser"><i id="n:154"> 154</i>:</span>                     <a href="externs.h.html#s:_power">power</a> += <span class="snum">5</span>;
<span class="cuser"><i id="n:155"> 155</i>:</span>                     <a href="externs.h.html#s:_notes">notes</a>[<a href="externs.h.html#m:JINXED" title="defined: 4">JINXED</a>]++;
<span class="cuser"><i id="n:156"> 156</i>:</span>                     <span class="skey">if </span>(<a href="externs.h.html#s:_wintime">wintime</a>)
<span class="cuser"><i id="n:157"> 157</i>:</span>                         <a href="com6.c.html#s:_live">live</a>();
<span class="cuser"><i id="n:158"> 158</i>:</span>                 <a href="com2.c.html#n:150" title="from line 150">}</a> <span class="skey">else </span><a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"I dont see her anywhere."</span>);
<span class="cuser"><i id="n:159"> 159</i>:</span>                 <span class="skey">break</span>;
<span class="cuser"><i id="n:160"> 160</i>:</span>             <span class="skey">case </span><span id="l:_murder:TIMER">TIMER</span>:
<span class="cuser"><i id="n:161"> 161</i>:</span>                 <span class="skey">if </span>(<a href="externs.h.html#m:testbit">testbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#m:TIMER" title="defined: 50">TIMER</a>))<a href="com2.c.html#n:167" title="to line 167">{</a>
<span class="cuser"><i id="n:162"> 162</i>:</span>                     <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The old man offers no resistance."</span>);
<span class="cuser"><i id="n:163"> 163</i>:</span>                     <a href="externs.h.html#m:clearbit">clearbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#m:TIMER" title="defined: 50">TIMER</a>);
<span class="cuser"><i id="n:164"> 164</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#m:DEADTIME" title="defined: 56">DEADTIME</a>);
<span class="cuser"><i id="n:165"> 165</i>:</span>                     <a href="externs.h.html#s:_power">power</a>++;
<span class="cuser"><i id="n:166"> 166</i>:</span>                     <a href="externs.h.html#s:_notes">notes</a>[<a href="externs.h.html#m:JINXED" title="defined: 4">JINXED</a>]++;
<span class="cuser"><i id="n:167"> 167</i>:</span>                 <a href="com2.c.html#n:161" title="from line 161">}</a> <span class="skey">else </span><a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Who?"</span>);
<span class="cuser"><i id="n:168"> 168</i>:</span>                 <span class="skey">break</span>;
<span class="cuser"><i id="n:169"> 169</i>:</span>             <span class="skey">case </span><span id="l:_murder:NATIVE">NATIVE</span>:
<span class="cuser"><i id="n:170"> 170</i>:</span>                 <span class="skey">if </span>(<a href="externs.h.html#m:testbit">testbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#m:NATIVE" title="defined: 58">NATIVE</a>))<a href="com2.c.html#n:176" title="to line 176">{</a>
<span class="cuser"><i id="n:171"> 171</i>:</span>                     <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The girl screams as you cut her body to shreds.  She is dead."</span>);
<span class="cuser"><i id="n:172"> 172</i>:</span>                     <a href="externs.h.html#m:clearbit">clearbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#m:NATIVE" title="defined: 58">NATIVE</a>);
<span class="cuser"><i id="n:173"> 173</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#m:DEADNATIVE" title="defined: 57">DEADNATIVE</a>);
<span class="cuser"><i id="n:174"> 174</i>:</span>                     <a href="externs.h.html#s:_power">power</a> += <span class="snum">5</span>;
<span class="cuser"><i id="n:175"> 175</i>:</span>                     <a href="externs.h.html#s:_notes">notes</a>[<a href="externs.h.html#m:JINXED" title="defined: 4">JINXED</a>]++;
<span class="cuser"><i id="n:176"> 176</i>:</span>                 <a href="com2.c.html#n:170" title="from line 170">}</a> <span class="skey">else </span><a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"What girl?"</span>);
<span class="cuser"><i id="n:177"> 177</i>:</span>                 <span class="skey">break</span>;
<span class="cuser"><i id="n:178"> 178</i>:</span>             <span class="skey">case </span><span id="l:_murder:MAN">MAN</span>:
<span class="cuser"><i id="n:179"> 179</i>:</span>                 <span class="skey">if </span>(<a href="externs.h.html#m:testbit">testbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#m:MAN" title="defined: 38">MAN</a>))<a href="com2.c.html#n:183" title="to line 183">{</a>
<span class="cuser"><i id="n:180"> 180</i>:</span>                     <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You strike him to the ground, and he coughs up blood."</span>);
<span class="cuser"><i id="n:181"> 181</i>:</span>                     <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Your fantasy is over."</span>);
<span class="cuser"><i id="n:182"> 182</i>:</span>                     <a href="com6.c.html#s:_die">die</a>();
<span class="cuser"><i id="n:183"> 183</i>:</span>                 <a href="com2.c.html#n:179" title="from line 179">}</a>
<span class="cuser"><i id="n:184"> 184</i>:</span>             <span class="skey">case </span>-<span class="snum">1</span>:
<span class="cuser"><i id="n:185"> 185</i>:</span>                 <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Kill what?"</span>);
<span class="cuser"><i id="n:186"> 186</i>:</span>                 <span class="skey">break</span>;
<span class="cuser"><i id="n:187"> 187</i>:</span> 
<span class="cuser"><i id="n:188"> 188</i>:</span>             <span class="skey">default</span>:
<span class="cuser"><i id="n:189"> 189</i>:</span>                 <span class="skey">if </span>(<a href="externs.h.html#s:_wordtype">wordtype</a>[<a href="externs.h.html#s:_wordnumber">wordnumber</a>] != <a href="externs.h.html#m:NOUNS" title="defined: 2">NOUNS</a>)
<span class="cuser"><i id="n:190"> 190</i>:</span>                     <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Kill what?"</span>);
<span class="cuser"><i id="n:191"> 191</i>:</span>                 <span class="skey">else</span>
<span class="cuser"><i id="n:192"> 192</i>:</span>                     <a href="../../lib/libc/stdio/printf.c.html#s:_printf">printf</a>(<span class="sstr">"You can't kill the %s!\n"</span>,<a href="externs.h.html#s:_objsht">objsht</a>[<a href="externs.h.html#s:_wordvalue">wordvalue</a>[<a href="externs.h.html#s:_wordnumber">wordnumber</a>]]);
<span class="cuser"><i id="n:193"> 193</i>:</span>         <a href="com2.c.html#n:141" title="from line 141">}</a>
<span class="cuser"><i id="n:194"> 194</i>:</span>     <a href="com2.c.html#n:138" title="from line 138">}</a>
<span class="cuser"><i id="n:195"> 195</i>:</span> <a href="com2.c.html#n:132" title="from line 132">}</a>
<span class="cuser"><i id="n:196"> 196</i>:</span> 
<span class="cuser"><i id="n:197"> 197</i>:</span> <a href="com2.c.html#xref:s:_ravage" id="s:_ravage">ravage</a>()
<span class="cuser"><i id="n:198"> 198</i>:</span> <a href="com2.c.html#n:244" title="to line 244">{</a>
<span class="cuser"><i id="n:199"> 199</i>:</span>     <span class="skey">while </span>(<a href="externs.h.html#s:_wordtype">wordtype</a>[++<a href="externs.h.html#s:_wordnumber">wordnumber</a>] != <a href="externs.h.html#m:NOUNS" title="defined: 2">NOUNS</a> &amp;&amp; <a href="externs.h.html#s:_wordnumber">wordnumber</a> &lt;= <a href="externs.h.html#s:_wordcount">wordcount</a>);
<span class="cuser"><i id="n:200"> 200</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_wordtype">wordtype</a>[<a href="externs.h.html#s:_wordnumber">wordnumber</a>] == <a href="externs.h.html#m:NOUNS" title="defined: 2">NOUNS</a> &amp;&amp; <a href="externs.h.html#m:testbit">testbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#s:_wordvalue">wordvalue</a>[<a href="externs.h.html#s:_wordnumber">wordnumber</a>]))<a href="com2.c.html#n:241" title="to line 241">{</a>
<span class="cuser"><i id="n:201"> 201</i>:</span>         <a href="externs.h.html#s:_Time">Time</a>++;
<span class="cuser"><i id="n:202"> 202</i>:</span>         <span class="skey">switch</span>(<a href="externs.h.html#s:_wordvalue">wordvalue</a>[<a href="externs.h.html#s:_wordnumber">wordnumber</a>])<a href="com2.c.html#n:240" title="to line 240">{</a>
<span class="cuser"><i id="n:203"> 203</i>:</span>             <span class="skey">case </span><span id="l:_ravage:NORMGOD">NORMGOD</span>:
<span class="cuser"><i id="n:204"> 204</i>:</span>                 <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You attack the goddess, and she screams as you beat her.  She falls down"</span>);
<span class="cuser"><i id="n:205"> 205</i>:</span>                 <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"crying and tries to hold her torn and bloodied dress around her."</span>);
<span class="cuser"><i id="n:206"> 206</i>:</span>                 <a href="externs.h.html#s:_power">power</a> += <span class="snum">5</span>;
<span class="cuser"><i id="n:207"> 207</i>:</span>                 <a href="externs.h.html#s:_pleasure">pleasure</a> += <span class="snum">8</span>;
<span class="cuser"><i id="n:208"> 208</i>:</span>                 <a href="externs.h.html#s:_ego">ego</a> -= <span class="snum">10</span>;
<span class="cuser"><i id="n:209"> 209</i>:</span>                 <a href="externs.h.html#s:_wordnumber">wordnumber</a>--;
<span class="cuser"><i id="n:210"> 210</i>:</span>                 <a href="externs.h.html#s:_godready">godready</a> = -<span class="snum">30000</span>;
<span class="cuser"><i id="n:211"> 211</i>:</span>                 <a href="com2.c.html#s:_murder">murder</a>();
<span class="cuser"><i id="n:212"> 212</i>:</span>                 <a href="externs.h.html#s:_win">win</a> = -<span class="snum">30000</span>;
<span class="cuser"><i id="n:213"> 213</i>:</span>                 <span class="skey">break</span>;
<span class="cuser"><i id="n:214"> 214</i>:</span>             <span class="skey">case </span><span id="l:_ravage:NATIVE">NATIVE</span>:
<span class="cuser"><i id="n:215"> 215</i>:</span>                 <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The girl tries to run, but you catch her and throw her down.  Her face is"</span>);
<span class="cuser"><i id="n:216"> 216</i>:</span>                 <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"bleeding, and she screams as you tear off her clothes."</span>);
<span class="cuser"><i id="n:217"> 217</i>:</span>                 <a href="externs.h.html#s:_power">power</a> += <span class="snum">3</span>;
<span class="cuser"><i id="n:218"> 218</i>:</span>                 <a href="externs.h.html#s:_pleasure">pleasure</a> += <span class="snum">5</span>;
<span class="cuser"><i id="n:219"> 219</i>:</span>                 <a href="externs.h.html#s:_ego">ego</a> -= <span class="snum">10</span>;
<span class="cuser"><i id="n:220"> 220</i>:</span>                 <a href="externs.h.html#s:_wordnumber">wordnumber</a>--;
<span class="cuser"><i id="n:221"> 221</i>:</span>                 <a href="com2.c.html#s:_murder">murder</a>();
<span class="cuser"><i id="n:222"> 222</i>:</span>                 <span class="skey">if </span>(<a href="externs.h.html#m:rnd">rnd</a>(<span class="snum">100</span>) &lt; <span class="snum">50</span>)<a href="com2.c.html#n:236" title="to line 236">{</a>
<span class="cuser"><i id="n:223"> 223</i>:</span>                     <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Her screams have attracted attention.  I think we are surrounded."</span>);
<span class="cuser"><i id="n:224"> 224</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_ahead">ahead</a>].objects,<a href="externs.h.html#m:WOODSMAN" title="defined: 3">WOODSMAN</a>);
<span class="cuser"><i id="n:225"> 225</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_ahead">ahead</a>].objects,<a href="externs.h.html#m:DEADWOOD" title="defined: 20">DEADWOOD</a>);
<span class="cuser"><i id="n:226"> 226</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_ahead">ahead</a>].objects,<a href="externs.h.html#m:MALLET" title="defined: 21">MALLET</a>);
<span class="cuser"><i id="n:227"> 227</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_back">back</a>].objects,<a href="externs.h.html#m:WOODSMAN" title="defined: 3">WOODSMAN</a>);
<span class="cuser"><i id="n:228"> 228</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_back">back</a>].objects,<a href="externs.h.html#m:DEADWOOD" title="defined: 20">DEADWOOD</a>);
<span class="cuser"><i id="n:229"> 229</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_back">back</a>].objects,<a href="externs.h.html#m:MALLET" title="defined: 21">MALLET</a>);
<span class="cuser"><i id="n:230"> 230</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_left">left</a>].objects,<a href="externs.h.html#m:WOODSMAN" title="defined: 3">WOODSMAN</a>);
<span class="cuser"><i id="n:231"> 231</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_left">left</a>].objects,<a href="externs.h.html#m:DEADWOOD" title="defined: 20">DEADWOOD</a>);
<span class="cuser"><i id="n:232"> 232</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_left">left</a>].objects,<a href="externs.h.html#m:MALLET" title="defined: 21">MALLET</a>);
<span class="cuser"><i id="n:233"> 233</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_right">right</a>].objects,<a href="externs.h.html#m:WOODSMAN" title="defined: 3">WOODSMAN</a>);
<span class="cuser"><i id="n:234"> 234</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_right">right</a>].objects,<a href="externs.h.html#m:DEADWOOD" title="defined: 20">DEADWOOD</a>);
<span class="cuser"><i id="n:235"> 235</i>:</span>                     <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_right">right</a>].objects,<a href="externs.h.html#m:MALLET" title="defined: 21">MALLET</a>);
<span class="cuser"><i id="n:236"> 236</i>:</span>                 <a href="com2.c.html#n:222" title="from line 222">}</a>
<span class="cuser"><i id="n:237"> 237</i>:</span>                 <span class="skey">break</span>;
<span class="cuser"><i id="n:238"> 238</i>:</span>             <span class="skey">default</span>:
<span class="cuser"><i id="n:239"> 239</i>:</span>                 <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You are perverted."</span>);
<span class="cuser"><i id="n:240"> 240</i>:</span>         <a href="com2.c.html#n:202" title="from line 202">}</a>
<span class="cuser"><i id="n:241"> 241</i>:</span>     <a href="com2.c.html#n:200" title="from line 200">}</a>
<span class="cuser"><i id="n:242"> 242</i>:</span>     <span class="skey">else</span>
<span class="cuser"><i id="n:243"> 243</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Who?"</span>);
<span class="cuser"><i id="n:244"> 244</i>:</span> <a href="com2.c.html#n:198" title="from line 198">}</a>
<span class="cuser"><i id="n:245"> 245</i>:</span> 
<span class="cuser"><i id="n:246"> 246</i>:</span> <a href="com2.c.html#xref:s:_follow" id="s:_follow">follow</a>()
<span class="cuser"><i id="n:247"> 247</i>:</span> <a href="com2.c.html#n:269" title="to line 269">{</a>
<span class="cuser"><i id="n:248"> 248</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_followfight">followfight</a> == <a href="externs.h.html#s:_Time">Time</a>)<a href="com2.c.html#n:257" title="to line 257">{</a>
<span class="cuser"><i id="n:249"> 249</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The Dark Lord leaps away and runs down secret tunnels and corridoors."</span>);
<span class="cuser"><i id="n:250"> 250</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You chase him through the darkness and splash in pools of water."</span>);
<span class="cuser"><i id="n:251"> 251</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You have cornered him.  His laser sword extends as he steps forward."</span>);
<span class="cuser"><i id="n:252"> 252</i>:</span>         <a href="externs.h.html#s:_position">position</a> = <a href="externs.h.html#m:FINAL" title="defined: 275">FINAL</a>;
<span class="cuser"><i id="n:253"> 253</i>:</span>         <a href="com7.c.html#s:_fight">fight</a>(<a href="externs.h.html#m:DARK" title="defined: 49">DARK</a>,<span class="snum">75</span>);
<span class="cuser"><i id="n:254"> 254</i>:</span>         <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#m:TALISMAN" title="defined: 19">TALISMAN</a>);
<span class="cuser"><i id="n:255"> 255</i>:</span>         <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#m:AMULET" title="defined: 17">AMULET</a>);
<span class="cuser"><i id="n:256"> 256</i>:</span>         <span class="skey">return</span>(<span class="snum">0</span>);
<span class="cuser"><i id="n:257"> 257</i>:</span>     <a href="com2.c.html#n:248" title="from line 248">}</a>
<span class="cuser"><i id="n:258"> 258</i>:</span>     <span class="skey">else if </span>(<a href="externs.h.html#s:_followgod">followgod</a> == <a href="externs.h.html#s:_Time">Time</a>)<a href="com2.c.html#n:265" title="to line 265">{</a>
<span class="cuser"><i id="n:259"> 259</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The goddess leads you down a steamy tunnel and into a high, wide chamber."</span>);
<span class="cuser"><i id="n:260"> 260</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"She sits down on a throne."</span>);
<span class="cuser"><i id="n:261"> 261</i>:</span>         <a href="externs.h.html#s:_position">position</a> = <span class="snum">268</span>;
<span class="cuser"><i id="n:262"> 262</i>:</span>         <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects,<a href="externs.h.html#m:NORMGOD" title="defined: 24">NORMGOD</a>);
<span class="cuser"><i id="n:263"> 263</i>:</span>         <a href="externs.h.html#s:_notes">notes</a>[<a href="externs.h.html#m:CANTSEE" title="defined: 2">CANTSEE</a>] = <span class="snum">1</span>;
<span class="cuser"><i id="n:264"> 264</i>:</span>         <span class="skey">return</span>(<span class="snum">0</span>);
<span class="cuser"><i id="n:265"> 265</i>:</span>     <a href="com2.c.html#n:258" title="from line 258">}</a>
<span class="cuser"><i id="n:266"> 266</i>:</span>     <span class="skey">else</span>
<span class="cuser"><i id="n:267"> 267</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"There is no one to follow."</span>);
<span class="cuser"><i id="n:268"> 268</i>:</span>     <span class="skey">return</span>(-<span class="snum">1</span>);
<span class="cuser"><i id="n:269"> 269</i>:</span> <a href="com2.c.html#n:247" title="from line 247">}</a>
</pre>
</div>
<div id="xref">
<h4>Defined functions</h4>
<div class="xe"><a id="xref:s:_draw" href="com2.c.html#s:_draw">draw</a>
 defined in line <a href="com2.c.html#n:89">89</a>;  used 2 times
<ul>
<li class="xxe"> in <a href="cypher.c.html">/usr/src/games/battlestar/cypher.c</a> line 
<a href="cypher.c.html#n:146">146</a>-<a href="cypher.c.html#n:151">151</a>(2)
</li></ul>
</div>
<div class="xo"><a id="xref:s:_follow" href="com2.c.html#s:_follow">follow</a>
 defined in line <a href="com2.c.html#n:246">246</a>;  used 1 times
<ul>
<li class="xxe"> in <a href="cypher.c.html">/usr/src/games/battlestar/cypher.c</a> line 
<a href="cypher.c.html#n:319">319</a>
</li></ul>
</div>
<div class="xe"><a id="xref:s:_murder" href="com2.c.html#s:_murder">murder</a>
 defined in line <a href="com2.c.html#n:131">131</a>;  used 3 times
<ul>
<li class="xxe">in line <a href="com2.c.html#n:211">211</a>,
<a href="com2.c.html#n:221">221</a>
</li><li class="xxo"> in <a href="cypher.c.html">/usr/src/games/battlestar/cypher.c</a> line 
<a href="cypher.c.html#n:306">306</a>
</li></ul>
</div>
<div class="xo"><a id="xref:s:_put" href="com2.c.html#s:_put">put</a>
 defined in line <a href="com2.c.html#n:74">74</a>;  used 1 times
<ul>
<li class="xxe"> in <a href="cypher.c.html">/usr/src/games/battlestar/cypher.c</a> line 
<a href="cypher.c.html#n:200">200</a>
</li></ul>
</div>
<div class="xe"><a id="xref:s:_ravage" href="com2.c.html#s:_ravage">ravage</a>
 defined in line <a href="com2.c.html#n:197">197</a>;  used 1 times
<ul>
<li class="xxe"> in <a href="cypher.c.html">/usr/src/games/battlestar/cypher.c</a> line 
<a href="cypher.c.html#n:311">311</a>
</li></ul>
</div>
<div class="xo"><a id="xref:s:_use" href="com2.c.html#s:_use">use</a>
 defined in line <a href="com2.c.html#n:94">94</a>;  used 1 times
<ul>
<li class="xxe"> in <a href="cypher.c.html">/usr/src/games/battlestar/cypher.c</a> line 
<a href="cypher.c.html#n:236">236</a>
</li></ul>
</div>
<div class="xe"><a id="xref:s:_wearit" href="com2.c.html#s:_wearit">wearit</a>
 defined in line <a href="com2.c.html#n:13">13</a>;  used 3 times
<ul>
<li class="xxe"> in <a href="com4.c.html">/usr/src/games/battlestar/com4.c</a> line 
<a href="com4.c.html#n:297">297</a>
</li><li class="xxo"> in <a href="cypher.c.html">/usr/src/games/battlestar/cypher.c</a> line 
<a href="cypher.c.html#n:175">175</a>-<a href="cypher.c.html#n:180">180</a>(2)
</li></ul>
</div>
<h4>Defined variables</h4>
<div class="xe"><a id="xref:s:_sccsid" href="com2.c.html#s:_sccsid">sccsid</a>
 defined in line <a href="com2.c.html#n:8">8</a>;  <i>never used</i>
</div>
</div>
</div>
<div id="tail">
<table border="0" width="100%" cellspacing="2" cellpadding="0">
  <tr>
    <td align="left">
      Last modified: 1996-10-27
      <br/>
      Generated: 2016-12-26
    </td>
    <td align="center"><small>Generated by src2html V0.67
      <br/>page hit count: 
      1470
      </small>
    </td>
    <td align="right">
      <a href="http://jigsaw.w3.org/css-validator/check/referer">
        <img alt="Valid CSS" height="31" width="88"
             src="../../../../.misc/valid-css.png"/>
      </a>
      <a href="http://validator.w3.org/check?uri=referer">
         <img alt="Valid XHTML 1.0 Strict" 
              height="31" width="88" src="../../../../.misc/valid-xhtml10.png"/>
      </a>
    </td>
  </tr>
</table>
</div></div>
</body></html>
