<!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/com3.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="com3.c">com3.c</a></h1>
</div>
<div id="navi">
<h5>Functions</h5>
<pre>
<span class="navo"><a href="com3.c.html#s:_bury" title="line 76">bury</a>              <span class="navx"><a href="com3.c.html#xref:s:_bury" title="to xref">X</a></span></span>
<span class="nave"><a href="com3.c.html#s:_dig" title="line 13">dig</a>               <span class="navx"><a href="com3.c.html#xref:s:_dig" title="to xref">X</a></span></span>
<span class="navo"><a href="com3.c.html#s:_drink" title="line 139">drink</a>             <span class="navx"><a href="com3.c.html#xref:s:_drink" title="to xref">X</a></span></span>
<span class="nave"><a href="com3.c.html#s:_jump" title="line 37">jump</a>              <span class="navx"><a href="com3.c.html#xref:s:_jump" title="to xref">X</a></span></span>
<span class="navo"><a href="com3.c.html#s:_shoot" title="line 159">shoot</a>             <span class="navx"><a href="com3.c.html#xref:s:_shoot" 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="com3.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="com3.c.html#xref:s:_sccsid" id="s:_sccsid">sccsid</a>[] = <span class="sstr">"@(#)com3.c	1.2.1 1996/10/26"</span>;
<span class="cuser"><i id="n:9">   9</i>:</span> <a href="com3.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="com3.c.html#xref:s:_dig" id="s:_dig">dig</a>()
<span class="cuser"><i id="n:14">  14</i>:</span> <a href="com3.c.html#n:35" title="to line 35">{</a>
<span class="cuser"><i id="n:15">  15</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:SHOVEL" title="defined: 30">SHOVEL</a>))<a href="com3.c.html#n:32" title="to line 32">{</a>
<span class="cuser"><i id="n:16">  16</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"OK"</span>);
<span class="cuser"><i id="n:17">  17</i>:</span>         <a href="externs.h.html#s:_Time">Time</a>++;
<span class="cuser"><i id="n:18">  18</i>:</span>         <span class="skey">switch</span>(<a href="externs.h.html#s:_position">position</a>)<a href="com3.c.html#n:31" title="to line 31">{</a>
<span class="cuser"><i id="n:19">  19</i>:</span>             <span class="skey">case </span><span class="snum">144</span>:       <span class="scom">/* copse near beach */</span>
<span class="cuser"><i id="n:20">  20</i>:</span>                 <span class="skey">if </span>(!<a href="externs.h.html#s:_notes">notes</a>[<a href="externs.h.html#m:DUG" title="defined: 5">DUG</a>])<a href="com3.c.html#n:26" title="to line 26">{</a>
<span class="cuser"><i id="n:21">  21</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:DEADWOOD" title="defined: 20">DEADWOOD</a>);
<span class="cuser"><i id="n:22">  22</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:COMPASS" title="defined: 32">COMPASS</a>);
<span class="cuser"><i id="n:23">  23</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:KNIFE" title="defined: 0">KNIFE</a>);
<span class="cuser"><i id="n:24">  24</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:MACE" title="defined: 29">MACE</a>);
<span class="cuser"><i id="n:25">  25</i>:</span>                     <a href="externs.h.html#s:_notes">notes</a>[<a href="externs.h.html#m:DUG" title="defined: 5">DUG</a>] = <span class="snum">1</span>;
<span class="cuser"><i id="n:26">  26</i>:</span>                 <a href="com3.c.html#n:20" title="from line 20">}</a>
<span class="cuser"><i id="n:27">  27</i>:</span>                 <span class="skey">break</span>;
<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/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Nothing happens."</span>);
<span class="cuser"><i id="n:31">  31</i>:</span>         <a href="com3.c.html#n:18" title="from line 18">}</a>
<span class="cuser"><i id="n:32">  32</i>:</span>     <a href="com3.c.html#n:15" title="from line 15">}</a>
<span class="cuser"><i id="n:33">  33</i>:</span>     <span class="skey">else</span>
<span class="cuser"><i id="n:34">  34</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You don't have a shovel."</span>);
<span class="cuser"><i id="n:35">  35</i>:</span> <a href="com3.c.html#n:14" title="from line 14">}</a>
<span class="cuser"><i id="n:36">  36</i>:</span> 
<span class="cuser"><i id="n:37">  37</i>:</span> <a href="com3.c.html#xref:s:_jump" id="s:_jump">jump</a>()
<span class="cuser"><i id="n:38">  38</i>:</span> <a href="com3.c.html#n:74" title="to line 74">{</a>
<span class="cuser"><i id="n:39">  39</i>:</span>     <span class="skey">register </span><span class="styp">int </span>n;
<span class="cuser"><i id="n:40">  40</i>:</span> 
<span class="cuser"><i id="n:41">  41</i>:</span>     <span class="skey">switch</span>(<a href="externs.h.html#s:_position">position</a>)<a href="com3.c.html#n:63" title="to line 63">{</a>
<span class="cuser"><i id="n:42">  42</i>:</span>         <span class="skey">default</span>:
<span class="cuser"><i id="n:43">  43</i>:</span>             <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Nothing happens."</span>);
<span class="cuser"><i id="n:44">  44</i>:</span>             <span class="skey">return</span>(-<span class="snum">1</span>);
<span class="cuser"><i id="n:45">  45</i>:</span> 
<span class="cuser"><i id="n:46">  46</i>:</span>         <span class="skey">case </span><span class="snum">242</span>:
<span class="cuser"><i id="n:47">  47</i>:</span>             <a href="externs.h.html#s:_position">position</a> = <span class="snum">133</span>;
<span class="cuser"><i id="n:48">  48</i>:</span>             <span class="skey">break</span>;
<span class="cuser"><i id="n:49">  49</i>:</span>         <span class="skey">case </span><span class="snum">214</span>:
<span class="cuser"><i id="n:50">  50</i>:</span>         <span class="skey">case </span><span class="snum">215</span>:
<span class="cuser"><i id="n:51">  51</i>:</span>         <span class="skey">case </span><span class="snum">162</span>:
<span class="cuser"><i id="n:52">  52</i>:</span>         <span class="skey">case </span><span class="snum">159</span>:
<span class="cuser"><i id="n:53">  53</i>:</span>             <a href="externs.h.html#s:_position">position</a> = <span class="snum">145</span>;
<span class="cuser"><i id="n:54">  54</i>:</span>             <span class="skey">break</span>;
<span class="cuser"><i id="n:55">  55</i>:</span>         <span class="skey">case </span><span class="snum">232</span>:
<span class="cuser"><i id="n:56">  56</i>:</span>             <a href="externs.h.html#s:_position">position</a> = <span class="snum">275</span>;
<span class="cuser"><i id="n:57">  57</i>:</span>             <span class="skey">break</span>;
<span class="cuser"><i id="n:58">  58</i>:</span>         <span class="skey">case </span><span class="snum">3</span>:
<span class="cuser"><i id="n:59">  59</i>:</span>             <a href="externs.h.html#s:_position">position</a> = <span class="snum">1</span>;
<span class="cuser"><i id="n:60">  60</i>:</span>             <span class="skey">break</span>;
<span class="cuser"><i id="n:61">  61</i>:</span>         <span class="skey">case </span><span class="snum">172</span>:
<span class="cuser"><i id="n:62">  62</i>:</span>             <a href="externs.h.html#s:_position">position</a> = <span class="snum">201</span>;
<span class="cuser"><i id="n:63">  63</i>:</span>     <a href="com3.c.html#n:41" title="from line 41">}</a>
<span class="cuser"><i id="n:64">  64</i>:</span>     <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Ahhhhhhh..."</span>);
<span class="cuser"><i id="n:65">  65</i>:</span>     <a href="externs.h.html#s:_injuries">injuries</a>[<span class="snum">12</span>] = <a href="externs.h.html#s:_injuries">injuries</a>[<span class="snum">8</span>] = <a href="externs.h.html#s:_injuries">injuries</a>[<span class="snum">7</span>] = <a href="externs.h.html#s:_injuries">injuries</a>[<span class="snum">6</span>] = <span class="snum">1</span>;
<span class="cuser"><i id="n:66">  66</i>:</span>     <span class="skey">for </span>(n=<span class="snum">0</span>; n &lt; <a href="externs.h.html#m:NUMOFOBJECTS" title="defined: 64">NUMOFOBJECTS</a>; n++)
<span class="cuser"><i id="n:67">  67</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>,n))<a href="com3.c.html#n:70" title="to line 70">{</a>
<span class="cuser"><i id="n:68">  68</i>:</span>             <a href="externs.h.html#m:clearbit">clearbit</a>(<a href="externs.h.html#s:_inven">inven</a>,n);
<span class="cuser"><i id="n:69">  69</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,n);
<span class="cuser"><i id="n:70">  70</i>:</span>         <a href="com3.c.html#n:67" title="from line 67">}</a>
<span class="cuser"><i id="n:71">  71</i>:</span>     <a href="externs.h.html#s:_carrying">carrying</a> = <span class="snum">0</span>;
<span class="cuser"><i id="n:72">  72</i>:</span>     <a href="externs.h.html#s:_encumber">encumber</a> = <span class="snum">0</span>;
<span class="cuser"><i id="n:73">  73</i>:</span>     <span class="skey">return</span>(<span class="snum">0</span>);
<span class="cuser"><i id="n:74">  74</i>:</span> <a href="com3.c.html#n:38" title="from line 38">}</a>
<span class="cuser"><i id="n:75">  75</i>:</span> 
<span class="cuser"><i id="n:76">  76</i>:</span> <a href="com3.c.html#xref:s:_bury" id="s:_bury">bury</a>()
<span class="cuser"><i id="n:77">  77</i>:</span> <a href="com3.c.html#n:137" title="to line 137">{</a>
<span class="cuser"><i id="n:78">  78</i>:</span>     <span class="styp">int </span>value;
<span class="cuser"><i id="n:79">  79</i>:</span> 
<span class="cuser"><i id="n:80">  80</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:SHOVEL" title="defined: 30">SHOVEL</a>))<a href="com3.c.html#n:134" title="to line 134">{</a>
<span class="cuser"><i id="n:81">  81</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:OBJECT" title="defined: 1">OBJECT</a> &amp;&amp; <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:82">  82</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:83">  83</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,value) || value == <a href="externs.h.html#m:BODY" title="defined: 10">BODY</a>))
<span class="cuser"><i id="n:84">  84</i>:</span>             <span class="skey">switch</span>(value)<a href="com3.c.html#n:113" title="to line 113">{</a>
<span class="cuser"><i id="n:85">  85</i>:</span>                 <span class="skey">case </span><span id="l:_bury:BODY">BODY</span>:
<span class="cuser"><i id="n:86">  86</i>:</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:OBJECT" title="defined: 1">OBJECT</a>;
<span class="cuser"><i id="n:87">  87</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:MAID" title="defined: 10">MAID</a>) || <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:MAID" title="defined: 10">MAID</a>))
<span class="cuser"><i id="n:88">  88</i>:</span>                         value = <a href="externs.h.html#m:MAID" title="defined: 10">MAID</a>;
<span class="cuser"><i id="n:89">  89</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:DEADWOOD" title="defined: 20">DEADWOOD</a>) || <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:DEADWOOD" title="defined: 20">DEADWOOD</a>))
<span class="cuser"><i id="n:90">  90</i>:</span>                         value = <a href="externs.h.html#m:DEADWOOD" title="defined: 20">DEADWOOD</a>;
<span class="cuser"><i id="n:91">  91</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:DEADGOD" title="defined: 55">DEADGOD</a>) || <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:DEADGOD" title="defined: 55">DEADGOD</a>))
<span class="cuser"><i id="n:92">  92</i>:</span>                         value = <a href="externs.h.html#m:DEADGOD" title="defined: 55">DEADGOD</a>;
<span class="cuser"><i id="n:93">  93</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:DEADTIME" title="defined: 56">DEADTIME</a>) || <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:DEADTIME" title="defined: 56">DEADTIME</a>))
<span class="cuser"><i id="n:94">  94</i>:</span>                         value = <a href="externs.h.html#m:DEADTIME" title="defined: 56">DEADTIME</a>;
<span class="cuser"><i id="n:95">  95</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:DEADNATIVE" title="defined: 57">DEADNATIVE</a>) || <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:DEADNATIVE" title="defined: 57">DEADNATIVE</a>))
<span class="cuser"><i id="n:96">  96</i>:</span>                         value = <a href="externs.h.html#m:DEADNATIVE" title="defined: 57">DEADNATIVE</a>;
<span class="cuser"><i id="n:97">  97</i>:</span>                     <span class="skey">break</span>;
<span class="cuser"><i id="n:98">  98</i>:</span> 
<span class="cuser"><i id="n:99">  99</i>:</span>                 <span class="skey">case </span><span id="l:_bury:NATIVE">NATIVE</span>:
<span class="cuser"><i id="n:100"> 100</i>:</span>                 <span class="skey">case </span><span id="l:_bury:NORMGOD">NORMGOD</span>:
<span class="cuser"><i id="n:101"> 101</i>:</span>                     <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"She screams as you wrestle her into the hole."</span>);
<span class="cuser"><i id="n:102"> 102</i>:</span>                 <span class="skey">case </span><span id="l:_bury:TIMER">TIMER</span>:
<span class="cuser"><i id="n:103"> 103</i>:</span>                     <a href="externs.h.html#s:_power">power</a> += <span class="snum">7</span>;
<span class="cuser"><i id="n:104"> 104</i>:</span>                     <a href="externs.h.html#s:_ego">ego</a> -= <span class="snum">10</span>;
<span class="cuser"><i id="n:105"> 105</i>:</span>                 <span class="skey">case </span><span id="l:_bury:AMULET">AMULET</span>:
<span class="cuser"><i id="n:106"> 106</i>:</span>                 <span class="skey">case </span><span id="l:_bury:MEDALION">MEDALION</span>:
<span class="cuser"><i id="n:107"> 107</i>:</span>                 <span class="skey">case </span><span id="l:_bury:TALISMAN">TALISMAN</span>:
<span class="cuser"><i id="n:108"> 108</i>:</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:OBJECT" title="defined: 1">OBJECT</a>;
<span class="cuser"><i id="n:109"> 109</i>:</span>                     <span class="skey">break</span>;
<span class="cuser"><i id="n:110"> 110</i>:</span> 
<span class="cuser"><i id="n:111"> 111</i>:</span>                 <span class="skey">default</span>:
<span class="cuser"><i id="n:112"> 112</i>:</span>                     <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Wha..?"</span>);
<span class="cuser"><i id="n:113"> 113</i>:</span>             <a href="com3.c.html#n:84" title="from line 84">}</a>
<span class="cuser"><i id="n:114"> 114</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:OBJECT" title="defined: 1">OBJECT</a> &amp;&amp; <a href="externs.h.html#s:_position">position</a> &gt; <span class="snum">88 </span>&amp;&amp; (<a href="externs.h.html#m:testbit">testbit</a>(<a href="externs.h.html#s:_inven">inven</a>,value) || <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,value)))<a href="com3.c.html#n:131" title="to line 131">{</a>
<span class="cuser"><i id="n:115"> 115</i>:</span>             <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Buried."</span>);
<span class="cuser"><i id="n:116"> 116</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="com3.c.html#n:120" title="to line 120">{</a>
<span class="cuser"><i id="n:117"> 117</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:118"> 118</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:119"> 119</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:120"> 120</i>:</span>             <a href="com3.c.html#n:116" title="from line 116">}</a>
<span class="cuser"><i id="n:121"> 121</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,value);
<span class="cuser"><i id="n:122"> 122</i>:</span>             <span class="skey">switch</span>(value)<a href="com3.c.html#n:130" title="to line 130">{</a>
<span class="cuser"><i id="n:123"> 123</i>:</span>                 <span class="skey">case </span><span id="l:_bury:MAID">MAID</span>:
<span class="cuser"><i id="n:124"> 124</i>:</span>                 <span class="skey">case </span><span id="l:_bury:DEADWOOD">DEADWOOD</span>:
<span class="cuser"><i id="n:125"> 125</i>:</span>                 <span class="skey">case </span><span id="l:_bury:DEADNATIVE">DEADNATIVE</span>:
<span class="cuser"><i id="n:126"> 126</i>:</span>                 <span class="skey">case </span><span id="l:_bury:DEADTIME">DEADTIME</span>:
<span class="cuser"><i id="n:127"> 127</i>:</span>                 <span class="skey">case </span><span id="l:_bury:DEADGOD">DEADGOD</span>:
<span class="cuser"><i id="n:128"> 128</i>:</span>                     <a href="externs.h.html#s:_ego">ego</a> += <span class="snum">2</span>;
<span class="cuser"><i id="n:129"> 129</i>:</span>                     <a href="../../lib/libc/stdio/printf.c.html#s:_printf">printf</a>(<span class="sstr">"The %s should rest easier now.\n"</span>,<a href="externs.h.html#s:_objsht">objsht</a>[value]);
<span class="cuser"><i id="n:130"> 130</i>:</span>             <a href="com3.c.html#n:122" title="from line 122">}</a>
<span class="cuser"><i id="n:131"> 131</i>:</span>         <a href="com3.c.html#n:114" title="from line 114">}</a>
<span class="cuser"><i id="n:132"> 132</i>:</span>         <span class="skey">else</span>
<span class="cuser"><i id="n:133"> 133</i>:</span>             <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"It doesn't seem to work."</span>);
<span class="cuser"><i id="n:134"> 134</i>:</span>     <a href="com3.c.html#n:80" title="from line 80">}</a>
<span class="cuser"><i id="n:135"> 135</i>:</span>     <span class="skey">else</span>
<span class="cuser"><i id="n:136"> 136</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You aren't holding a shovel."</span>);
<span class="cuser"><i id="n:137"> 137</i>:</span> <a href="com3.c.html#n:77" title="from line 77">}</a>
<span class="cuser"><i id="n:138"> 138</i>:</span> 
<span class="cuser"><i id="n:139"> 139</i>:</span> <a href="com3.c.html#xref:s:_drink" id="s:_drink">drink</a>()
<span class="cuser"><i id="n:140"> 140</i>:</span> <a href="com3.c.html#n:157" title="to line 157">{</a>
<span class="cuser"><i id="n:141"> 141</i>:</span>     <span class="skey">register </span><span class="styp">int </span>n;
<span class="cuser"><i id="n:142"> 142</i>:</span> 
<span class="cuser"><i id="n:143"> 143</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:POTION" title="defined: 45">POTION</a>))<a href="com3.c.html#n:154" title="to line 154">{</a>
<span class="cuser"><i id="n:144"> 144</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The cool liquid runs down your throat but turns to fire and you choke."</span>);
<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 heat reaches your limbs and tingles your spirit.  You feel like falling"</span>);
<span class="cuser"><i id="n:146"> 146</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"asleep."</span>);
<span class="cuser"><i id="n:147"> 147</i>:</span>         <a href="externs.h.html#m:clearbit">clearbit</a>(<a href="externs.h.html#s:_inven">inven</a>, <a href="externs.h.html#m:POTION" title="defined: 45">POTION</a>);
<span class="cuser"><i id="n:148"> 148</i>:</span>         <a href="externs.h.html#s:_WEIGHT">WEIGHT</a> = <a href="externs.h.html#m:MAXWEIGHT" title="defined: 60">MAXWEIGHT</a>;
<span class="cuser"><i id="n:149"> 149</i>:</span>         <a href="externs.h.html#s:_CUMBER">CUMBER</a> = <a href="externs.h.html#m:MAXCUMBER" title="defined: 10">MAXCUMBER</a>;
<span class="cuser"><i id="n:150"> 150</i>:</span>         <span class="skey">for </span>(n=<span class="snum">0</span>; n &lt; <a href="externs.h.html#m:NUMOFINJURIES" title="defined: 13">NUMOFINJURIES</a>; n++)
<span class="cuser"><i id="n:151"> 151</i>:</span>             <a href="externs.h.html#s:_injuries">injuries</a>[n] = <span class="snum">0</span>;
<span class="cuser"><i id="n:152"> 152</i>:</span>         <a href="externs.h.html#s:_Time">Time</a>++;
<span class="cuser"><i id="n:153"> 153</i>:</span>         <a href="com5.c.html#s:_zzz">zzz</a>();
<span class="cuser"><i id="n:154"> 154</i>:</span>     <a href="com3.c.html#n:143" title="from line 143">}</a>
<span class="cuser"><i id="n:155"> 155</i>:</span>     <span class="skey">else</span>
<span class="cuser"><i id="n:156"> 156</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"I'm not thirsty."</span>);
<span class="cuser"><i id="n:157"> 157</i>:</span> <a href="com3.c.html#n:140" title="from line 140">}</a>
<span class="cuser"><i id="n:158"> 158</i>:</span> 
<span class="cuser"><i id="n:159"> 159</i>:</span> <a href="com3.c.html#xref:s:_shoot" id="s:_shoot">shoot</a>()
<span class="cuser"><i id="n:160"> 160</i>:</span> <a href="com3.c.html#n:285" title="to line 285">{</a>
<span class="cuser"><i id="n:161"> 161</i>:</span>     <span class="styp">int </span>firstnumber, value;
<span class="cuser"><i id="n:162"> 162</i>:</span>     <span class="skey">register </span><span class="styp">int </span>n;
<span class="cuser"><i id="n:163"> 163</i>:</span> 
<span class="cuser"><i id="n:164"> 164</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:LASER" title="defined: 22">LASER</a>))
<span class="cuser"><i id="n:165"> 165</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You aren't holding a blaster."</span>);
<span class="cuser"><i id="n:166"> 166</i>:</span>     <span class="skey">else </span><a href="com3.c.html#n:283" title="to line 283">{</a>
<span class="cuser"><i id="n:167"> 167</i>:</span>         firstnumber = <a href="externs.h.html#s:_wordnumber">wordnumber</a>;
<span class="cuser"><i id="n:168"> 168</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:169"> 169</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> &amp;&amp; <a href="externs.h.html#s:_wordtype">wordtype</a>[<a href="externs.h.html#s:_wordnumber">wordnumber</a>] == <a href="externs.h.html#m:OBJECT" title="defined: 1">OBJECT</a>)<a href="com3.c.html#n:186" title="to line 186">{</a>
<span class="cuser"><i id="n:170"> 170</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:171"> 171</i>:</span>             <a href="../../lib/libc/stdio/printf.c.html#s:_printf">printf</a>(<span class="sstr">"%s:\n"</span>, <a href="externs.h.html#s:_objsht">objsht</a>[value]);
<span class="cuser"><i id="n:172"> 172</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:173"> 173</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,value))<a href="com3.c.html#n:179" title="to line 179">{</a>
<span class="cuser"><i id="n:174"> 174</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,value);
<span class="cuser"><i id="n:175"> 175</i>:</span>                 <a href="externs.h.html#s:_Time">Time</a>++;
<span class="cuser"><i id="n:176"> 176</i>:</span>                 <a href="../../lib/libc/stdio/printf.c.html#s:_printf">printf</a>(<span class="sstr">"The %s explode%s\n"</span>,<a href="externs.h.html#s:_objsht">objsht</a>[value],(<a href="externs.h.html#s:_objsht">objsht</a>[value][n-<span class="snum">1</span>]==<span class="slit">'s' </span>? (<a href="externs.h.html#s:_objsht">objsht</a>[value][n-<span class="snum">2</span>]==<span class="slit">'s' </span>? <span class="sstr">"s." </span>: <span class="sstr">"."</span>) : <span class="sstr">"s."</span>));
<span class="cuser"><i id="n:177"> 177</i>:</span>                 <span class="skey">if </span>(value == <a href="externs.h.html#m:BOMB" title="defined: 54">BOMB</a>)
<span class="cuser"><i id="n:178"> 178</i>:</span>                     <a href="com6.c.html#s:_die">die</a>();
<span class="cuser"><i id="n:179"> 179</i>:</span>             <a href="com3.c.html#n:173" title="from line 173">}</a>
<span class="cuser"><i id="n:180"> 180</i>:</span>             <span class="skey">else</span>
<span class="cuser"><i id="n:181"> 181</i>:</span>                 <a href="../../lib/libc/stdio/printf.c.html#s:_printf">printf</a>(<span class="sstr">"I dont see any %s around here.\n"</span>, <a href="externs.h.html#s:_objsht">objsht</a>[value]);
<span class="cuser"><i id="n:182"> 182</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:183"> 183</i>:</span>                 <a href="externs.h.html#s:_wordnumber">wordnumber</a>++;
<span class="cuser"><i id="n:184"> 184</i>:</span>             <span class="skey">else</span>
<span class="cuser"><i id="n:185"> 185</i>:</span>                 <span class="skey">return</span>(firstnumber);
<span class="cuser"><i id="n:186"> 186</i>:</span>         <a href="com3.c.html#n:169" title="from line 169">}</a>
<span class="cuser"><i id="n:187"> 187</i>:</span>                 <span class="scom">/* special cases with their own return()'s */</span>
<span class="cuser"><i id="n:188"> 188</i>:</span> 
<span class="cuser"><i id="n:189"> 189</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> &amp;&amp; <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>)<a href="com3.c.html#n:281" title="to line 281">{</a>
<span class="cuser"><i id="n:190"> 190</i>:</span>             <a href="externs.h.html#s:_Time">Time</a>++;
<span class="cuser"><i id="n:191"> 191</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="com3.c.html#n:280" title="to line 280">{</a>
<span class="cuser"><i id="n:192"> 192</i>:</span> 
<span class="cuser"><i id="n:193"> 193</i>:</span>                 <span class="skey">case </span><span id="l:_shoot:DOOR">DOOR</span>:
<span class="cuser"><i id="n:194"> 194</i>:</span>                     <span class="skey">switch</span>(<a href="externs.h.html#s:_position">position</a>)<a href="com3.c.html#n:216" title="to line 216">{</a>
<span class="cuser"><i id="n:195"> 195</i>:</span>                         <span class="skey">case </span><span class="snum">189</span>:
<span class="cuser"><i id="n:196"> 196</i>:</span>                         <span class="skey">case </span><span class="snum">231</span>:
<span class="cuser"><i id="n:197"> 197</i>:</span>                             <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The door is unhinged."</span>);
<span class="cuser"><i id="n:198"> 198</i>:</span>                             <a href="externs.h.html#s:_location">location</a>[<span class="snum">189</span>].<a href="externs.h.html#m:north" title="defined: link[0]">north</a> = <span class="snum">231</span>;
<span class="cuser"><i id="n:199"> 199</i>:</span>                             <a href="externs.h.html#s:_location">location</a>[<span class="snum">231</span>].<a href="externs.h.html#m:south" title="defined: link[1]">south</a> = <span class="snum">189</span>;
<span class="cuser"><i id="n:200"> 200</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:201"> 201</i>:</span>                             <span class="skey">break</span>;
<span class="cuser"><i id="n:202"> 202</i>:</span>                         <span class="skey">case </span><span class="snum">30</span>:
<span class="cuser"><i id="n:203"> 203</i>:</span>                             <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The wooden door splinters."</span>);
<span class="cuser"><i id="n:204"> 204</i>:</span>                             <a href="externs.h.html#s:_location">location</a>[<span class="snum">30</span>].<a href="externs.h.html#m:west" title="defined: link[3]">west</a> = <span class="snum">25</span>;
<span class="cuser"><i id="n:205"> 205</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:206"> 206</i>:</span>                             <span class="skey">break</span>;
<span class="cuser"><i id="n:207"> 207</i>:</span>                         <span class="skey">case </span><span class="snum">31</span>:
<span class="cuser"><i id="n:208"> 208</i>:</span>                             <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The laser blast has no effect on the door."</span>);
<span class="cuser"><i id="n:209"> 209</i>:</span>                             <span class="skey">break</span>;
<span class="cuser"><i id="n:210"> 210</i>:</span>                         <span class="skey">case </span><span class="snum">20</span>:
<span class="cuser"><i id="n:211"> 211</i>:</span>                             <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The blast hits the door and it explodes into flame.  The magnesium burns"</span>);
<span class="cuser"><i id="n:212"> 212</i>:</span>                             <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"so rapidly that we have no chance to escape."</span>);
<span class="cuser"><i id="n:213"> 213</i>:</span>                             <a href="com6.c.html#s:_die">die</a>();
<span class="cuser"><i id="n:214"> 214</i>:</span>                         <span class="skey">default</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">"Nothing happens."</span>);
<span class="cuser"><i id="n:216"> 216</i>:</span>                     <a href="com3.c.html#n:194" title="from line 194">}</a>
<span class="cuser"><i id="n:217"> 217</i>:</span>                     <span class="skey">break</span>;
<span class="cuser"><i id="n:218"> 218</i>:</span> 
<span class="cuser"><i id="n:219"> 219</i>:</span>                 <span class="skey">case </span><span id="l:_shoot:NORMGOD">NORMGOD</span>:
<span class="cuser"><i id="n:220"> 220</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="com3.c.html#n:229" title="to line 229">{</a>
<span class="cuser"><i id="n:221"> 221</i>:</span>                         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The goddess is hit in the chest and splashes back against the rocks."</span>);
<span class="cuser"><i id="n:222"> 222</i>:</span>                         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Dark blood oozes from the charred blast hole.  Her naked body floats in the"</span>);
<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">"pools and then off downstream."</span>);
<span class="cuser"><i id="n:224"> 224</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:225"> 225</i>:</span>                         <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_location">location</a>[<span class="snum">180</span>].objects,<a href="externs.h.html#m:DEADGOD" title="defined: 55">DEADGOD</a>);
<span class="cuser"><i id="n:226"> 226</i>:</span>                         <a href="externs.h.html#s:_power">power</a> += <span class="snum">5</span>;
<span class="cuser"><i id="n:227"> 227</i>:</span>                         <a href="externs.h.html#s:_ego">ego</a> -= <span class="snum">10</span>;
<span class="cuser"><i id="n:228"> 228</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:229"> 229</i>:</span>                     <a href="com3.c.html#n:220" title="from line 220">}</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="com3.c.html#n:241" title="to line 241">{</a>
<span class="cuser"><i id="n:230"> 230</i>:</span>                         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The blast catches the goddess in the stomach, knocking her to the ground."</span>);
<span class="cuser"><i id="n:231"> 231</i>:</span>                         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"She writhes in the dirt as the agony of death taunts her."</span>);
<span class="cuser"><i id="n:232"> 232</i>:</span>                         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"She has stopped moving."</span>);
<span class="cuser"><i id="n:233"> 233</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: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:_position">position</a>].objects,<a href="externs.h.html#m:DEADGOD" title="defined: 55">DEADGOD</a>);
<span class="cuser"><i id="n:235"> 235</i>:</span>                         <a href="externs.h.html#s:_power">power</a> += <span class="snum">5</span>;
<span class="cuser"><i id="n:236"> 236</i>:</span>                         <a href="externs.h.html#s:_ego">ego</a> -= <span class="snum">10</span>;
<span class="cuser"><i id="n:237"> 237</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:238"> 238</i>:</span>                         <span class="skey">if </span>(<a href="externs.h.html#s:_wintime">wintime</a>)
<span class="cuser"><i id="n:239"> 239</i>:</span>                             <a href="com6.c.html#s:_live">live</a>();
<span class="cuser"><i id="n:240"> 240</i>:</span>                         <span class="skey">break</span>;
<span class="cuser"><i id="n:241"> 241</i>:</span>                     <a href="com3.c.html#n:229" title="from line 229">}</a> <span class="skey">else</span>
<span class="cuser"><i id="n:242"> 242</i>:</span>                         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"I don't see any goddess around here."</span>);
<span class="cuser"><i id="n:243"> 243</i>:</span>                     <span class="skey">break</span>;
<span class="cuser"><i id="n:244"> 244</i>:</span> 
<span class="cuser"><i id="n:245"> 245</i>:</span>                 <span class="skey">case </span><span id="l:_shoot:TIMER">TIMER</span>:
<span class="cuser"><i id="n:246"> 246</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="com3.c.html#n:253" title="to line 253">{</a>
<span class="cuser"><i id="n:247"> 247</i>:</span>                         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The old man slumps over the bar."</span>);
<span class="cuser"><i id="n:248"> 248</i>:</span>                         <a href="externs.h.html#s:_power">power</a>++;
<span class="cuser"><i id="n:249"> 249</i>:</span>                         <a href="externs.h.html#s:_ego">ego</a> -= <span class="snum">2</span>;
<span class="cuser"><i id="n:250"> 250</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:251"> 251</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:252"> 252</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:253"> 253</i>:</span>                     <a href="com3.c.html#n:246" title="from line 246">}</a>
<span class="cuser"><i id="n:254"> 254</i>:</span>                     <span class="skey">else </span><a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"What old timer?"</span>);
<span class="cuser"><i id="n:255"> 255</i>:</span>                     <span class="skey">break</span>;
<span class="cuser"><i id="n:256"> 256</i>:</span>                 <span class="skey">case </span><span id="l:_shoot:MAN">MAN</span>:
<span class="cuser"><i id="n:257"> 257</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="com3.c.html#n:261" title="to line 261">{</a>
<span class="cuser"><i id="n:258"> 258</i>:</span>                         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The man falls to the ground with blood pouring all over his white suit."</span>);
<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">"Your fantasy is over."</span>);
<span class="cuser"><i id="n:260"> 260</i>:</span>                         <a href="com6.c.html#s:_die">die</a>();
<span class="cuser"><i id="n:261"> 261</i>:</span>                     <a href="com3.c.html#n:257" title="from line 257">}</a>
<span class="cuser"><i id="n:262"> 262</i>:</span>                     <span class="skey">else </span><a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"What man?"</span>);
<span class="cuser"><i id="n:263"> 263</i>:</span>                     <span class="skey">break</span>;
<span class="cuser"><i id="n:264"> 264</i>:</span>                 <span class="skey">case </span><span id="l:_shoot:NATIVE">NATIVE</span>:
<span class="cuser"><i id="n:265"> 265</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="com3.c.html#n:272" title="to line 272">{</a>
<span class="cuser"><i id="n:266"> 266</i>:</span>                         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The girl is blown backwards several feet and lies in a pool of blood."</span>);
<span class="cuser"><i id="n:267"> 267</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:268"> 268</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:269"> 269</i>:</span>                         <a href="externs.h.html#s:_power">power</a> += <span class="snum">5</span>;
<span class="cuser"><i id="n:270"> 270</i>:</span>                         <a href="externs.h.html#s:_ego">ego</a> -= <span class="snum">2</span>;
<span class="cuser"><i id="n:271"> 271</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:272"> 272</i>:</span>                     <a href="com3.c.html#n:265" title="from line 265">}</a> <span class="skey">else </span><a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"There is no girl here."</span>);
<span class="cuser"><i id="n:273"> 273</i>:</span>                     <span class="skey">break</span>;
<span class="cuser"><i id="n:274"> 274</i>:</span>                 <span class="skey">case </span>-<span class="snum">1</span>:
<span class="cuser"><i id="n:275"> 275</i>:</span>                     <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Shoot what?"</span>);
<span class="cuser"><i id="n:276"> 276</i>:</span>                     <span class="skey">break</span>;
<span class="cuser"><i id="n:277"> 277</i>:</span> 
<span class="cuser"><i id="n:278"> 278</i>:</span>                 <span class="skey">default</span>:
<span class="cuser"><i id="n:279"> 279</i>:</span>                     <a href="../../lib/libc/stdio/printf.c.html#s:_printf">printf</a>(<span class="sstr">"You can't shoot 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:280"> 280</i>:</span>             <a href="com3.c.html#n:191" title="from line 191">}</a>
<span class="cuser"><i id="n:281"> 281</i>:</span>         <a href="com3.c.html#n:189" title="from line 189">}</a>
<span class="cuser"><i id="n:282"> 282</i>:</span>         <span class="skey">else </span><a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You must be a looney."</span>);
<span class="cuser"><i id="n:283"> 283</i>:</span>     <a href="com3.c.html#n:166" title="from line 166">}</a>
<span class="cuser"><i id="n:284"> 284</i>:</span>     <span class="skey">return</span>(firstnumber);
<span class="cuser"><i id="n:285"> 285</i>:</span> <a href="com3.c.html#n:160" title="from line 160">}</a>
</pre>
</div>
<div id="xref">
<h4>Defined functions</h4>
<div class="xe"><a id="xref:s:_bury" href="com3.c.html#s:_bury">bury</a>
 defined in line <a href="com3.c.html#n:76">76</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:377">377</a>
</li></ul>
</div>
<div class="xo"><a id="xref:s:_dig" href="com3.c.html#s:_dig">dig</a>
 defined in line <a href="com3.c.html#n:13">13</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:369">369</a>
</li></ul>
</div>
<div class="xe"><a id="xref:s:_drink" href="com3.c.html#s:_drink">drink</a>
 defined in line <a href="com3.c.html#n:139">139</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:385">385</a>
</li></ul>
</div>
<div class="xo"><a id="xref:s:_jump" href="com3.c.html#s:_jump">jump</a>
 defined in line <a href="com3.c.html#n:37">37</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:373">373</a>
</li></ul>
</div>
<div class="xe"><a id="xref:s:_shoot" href="com3.c.html#s:_shoot">shoot</a>
 defined in line <a href="com3.c.html#n:159">159</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:73">73</a>,
<a href="cypher.c.html#n:79">79</a>
</li></ul>
</div>
<h4>Defined variables</h4>
<div class="xe"><a id="xref:s:_sccsid" href="com3.c.html#s:_sccsid">sccsid</a>
 defined in line <a href="com3.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: 
      1379
      </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>
