<!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/com1.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="com1.c">com1.c</a></h1>
</div>
<div id="navi">
<h5>Functions</h5>
<pre>
<span class="navo"><a href="com1.c.html#s:_convert" title="line 36">convert</a>           <span class="navx"><a href="com1.c.html#xref:s:_convert" title="to xref">X</a></span></span>
<span class="nave"><a href="com1.c.html#s:_crash" title="line 205">crash</a>             <span class="navx"><a href="com1.c.html#xref:s:_crash" title="to xref">X</a></span></span>
<span class="navo"><a href="com1.c.html#s:_move" title="line 13">move</a>              <span class="navx"><a href="com1.c.html#xref:s:_move" title="to xref">X</a></span></span>
<span class="nave"><a href="com1.c.html#s:_news" title="line 59">news</a>              <span class="navx"><a href="com1.c.html#xref:s:_news" 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="com1.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="com1.c.html#xref:s:_sccsid" id="s:_sccsid">sccsid</a>[] = <span class="sstr">"@(#)com1.c	1.3.1 1996/10/26"</span>;
<span class="cuser"><i id="n:9">   9</i>:</span> <a href="com1.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="com1.c.html#xref:s:_move" id="s:_move">move</a>(thataway, token)
<span class="cuser"><i id="n:14">  14</i>:</span> <span class="styp">int </span>thataway, token;
<span class="cuser"><i id="n:15">  15</i>:</span> <a href="com1.c.html#n:34" title="to line 34">{</a>
<span class="cuser"><i id="n:16">  16</i>:</span>     <a href="externs.h.html#s:_wordnumber">wordnumber</a>++;
<span class="cuser"><i id="n:17">  17</i>:</span>     <span class="skey">if </span>((!<a href="externs.h.html#s:_notes">notes</a>[<a href="externs.h.html#m:CANTMOVE" title="defined: 3">CANTMOVE</a>] &amp;&amp; !<a href="externs.h.html#s:_notes">notes</a>[<a href="externs.h.html#m:LAUNCHED" title="defined: 1">LAUNCHED</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:LAND" title="defined: 2">LAND</a>) || <a href="externs.h.html#s:_fuel">fuel</a> &gt; <span class="snum">0 </span>&amp;&amp; <a href="externs.h.html#s:_notes">notes</a>[<a href="externs.h.html#m:LAUNCHED" title="defined: 1">LAUNCHED</a>])
<span class="cuser"><i id="n:18">  18</i>:</span>         <span class="skey">if </span>(thataway) <a href="com1.c.html#n:22" title="to line 22">{</a>
<span class="cuser"><i id="n:19">  19</i>:</span>             <a href="externs.h.html#s:_position">position</a> = thataway;
<span class="cuser"><i id="n:20">  20</i>:</span>             <a href="room.c.html#s:_newway">newway</a>(token);
<span class="cuser"><i id="n:21">  21</i>:</span>             <a href="externs.h.html#s:_Time">Time</a>++;
<span class="cuser"><i id="n:22">  22</i>:</span>         <a href="com1.c.html#n:18" title="from line 18">}</a>
<span class="cuser"><i id="n:23">  23</i>:</span>         <span class="skey">else </span><a href="com1.c.html#n:28" title="to line 28">{</a>
<span class="cuser"><i id="n:24">  24</i>:</span>             <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You can't go this way."</span>);
<span class="cuser"><i id="n:25">  25</i>:</span>             <a href="room.c.html#s:_newway">newway</a>(token);
<span class="cuser"><i id="n:26">  26</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:27">  27</i>:</span>             <span class="skey">return</span>(<span class="snum">0</span>);
<span class="cuser"><i id="n:28">  28</i>:</span>         <a href="com1.c.html#n:23" title="from line 23">}</a>
<span class="cuser"><i id="n:29">  29</i>:</span>     <span class="skey">else if </span>(<a href="externs.h.html#s:_notes">notes</a>[<a href="externs.h.html#m:CANTMOVE" title="defined: 3">CANTMOVE</a>] &amp;&amp; !<a href="externs.h.html#s:_notes">notes</a>[<a href="externs.h.html#m:LAUNCHED" title="defined: 1">LAUNCHED</a>])
<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">"You aren't able to move; you better drop something."</span>);
<span class="cuser"><i id="n:31">  31</i>:</span>     <span class="skey">else</span>
<span class="cuser"><i id="n:32">  32</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You are out of fuel; now you will rot in space forever!"</span>);
<span class="cuser"><i id="n:33">  33</i>:</span>     <span class="skey">return</span>(<span class="snum">1</span>);
<span class="cuser"><i id="n:34">  34</i>:</span> <a href="com1.c.html#n:15" title="from line 15">}</a>
<span class="cuser"><i id="n:35">  35</i>:</span> 
<span class="cuser"><i id="n:36">  36</i>:</span> <a href="com1.c.html#xref:s:_convert" id="s:_convert">convert</a>(tothis)     <span class="scom">/* Converts day to night and vice versa. 	    */</span>
<span class="cuser"><i id="n:37">  37</i>:</span> <span class="styp">int </span>tothis;     <span class="scom">/* Day objects are permanent.  Night objects are added*/</span>
<span class="cuser"><i id="n:38">  38</i>:</span> <a href="com1.c.html#n:57" title="to line 57">{</a>           <span class="scom">/* at dusk, and subtracted at dawn.		*/</span>
<span class="cuser"><i id="n:39">  39</i>:</span>     <span class="skey">register struct </span><a href="externs.h.html#sd:objs" class="styp">objs</a> *p;
<span class="cuser"><i id="n:40">  40</i>:</span>     <span class="skey">register </span>i, j;
<span class="cuser"><i id="n:41">  41</i>:</span> 
<span class="cuser"><i id="n:42">  42</i>:</span>     <span class="skey">if </span>(tothis == <a href="externs.h.html#m:TONIGHT" title="defined: 1">TONIGHT</a>) <a href="com1.c.html#n:49" title="to line 49">{</a>
<span class="cuser"><i id="n:43">  43</i>:</span>         <span class="skey">for </span>(i = <span class="snum">1</span>; i &lt;= <a href="externs.h.html#m:NUMOFROOMS" title="defined: 275">NUMOFROOMS</a>; i++)
<span class="cuser"><i id="n:44">  44</i>:</span>             <span class="skey">for </span>(j = <span class="snum">0</span>; j &lt; <a href="externs.h.html#m:NUMOFWORDS">NUMOFWORDS</a>; j++)
<span class="cuser"><i id="n:45">  45</i>:</span>                 <a href="externs.h.html#s:_nightfile">nightfile</a>[i].objects[j] = <a href="externs.h.html#s:_dayfile">dayfile</a>[i].objects[j];
<span class="cuser"><i id="n:46">  46</i>:</span>         <span class="skey">for </span>(p = <a href="externs.h.html#s:_nightobjs">nightobjs</a>; p-&gt;room != <span class="snum">0</span>; p++)
<span class="cuser"><i id="n:47">  47</i>:</span>             <a href="externs.h.html#m:setbit">setbit</a>(<a href="externs.h.html#s:_nightfile">nightfile</a>[p-&gt;room].objects, p-&gt;obj);
<span class="cuser"><i id="n:48">  48</i>:</span>         <a href="externs.h.html#s:_location">location</a> = <a href="externs.h.html#s:_nightfile">nightfile</a>;
<span class="cuser"><i id="n:49">  49</i>:</span>     <a href="com1.c.html#n:42" title="from line 42">}</a> <span class="skey">else </span><a href="com1.c.html#n:56" title="to line 56">{</a>
<span class="cuser"><i id="n:50">  50</i>:</span>         <span class="skey">for </span>(i = <span class="snum">1</span>; i &lt;= <a href="externs.h.html#m:NUMOFROOMS" title="defined: 275">NUMOFROOMS</a>; i++)
<span class="cuser"><i id="n:51">  51</i>:</span>             <span class="skey">for </span>(j = <span class="snum">0</span>; j &lt; <a href="externs.h.html#m:NUMOFWORDS">NUMOFWORDS</a>; j++)
<span class="cuser"><i id="n:52">  52</i>:</span>                 <a href="externs.h.html#s:_dayfile">dayfile</a>[i].objects[j] = <a href="externs.h.html#s:_nightfile">nightfile</a>[i].objects[j];
<span class="cuser"><i id="n:53">  53</i>:</span>         <span class="skey">for </span>(p = <a href="externs.h.html#s:_nightobjs">nightobjs</a>; p-&gt;room != <span class="snum">0</span>; p++)
<span class="cuser"><i id="n:54">  54</i>:</span>             <a href="externs.h.html#m:clearbit">clearbit</a>(<a href="externs.h.html#s:_dayfile">dayfile</a>[p-&gt;room].objects, p-&gt;obj);
<span class="cuser"><i id="n:55">  55</i>:</span>         <a href="externs.h.html#s:_location">location</a> = <a href="externs.h.html#s:_dayfile">dayfile</a>;
<span class="cuser"><i id="n:56">  56</i>:</span>     <a href="com1.c.html#n:49" title="from line 49">}</a>
<span class="cuser"><i id="n:57">  57</i>:</span> <a href="com1.c.html#n:38" title="from line 38">}</a>
<span class="cuser"><i id="n:58">  58</i>:</span> 
<span class="cuser"><i id="n:59">  59</i>:</span> <a href="com1.c.html#xref:s:_news" id="s:_news">news</a>()
<span class="cuser"><i id="n:60">  60</i>:</span> <a href="com1.c.html#n:203" title="to line 203">{</a>
<span class="cuser"><i id="n:61">  61</i>:</span>     <span class="skey">register </span><span class="styp">int </span>n;
<span class="cuser"><i id="n:62">  62</i>:</span>     <span class="styp">int </span>hurt;
<span class="cuser"><i id="n:63">  63</i>:</span> 
<span class="cuser"><i id="n:64">  64</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_Time">Time</a> &gt; <span class="snum">30 </span>&amp;&amp; <a href="externs.h.html#s:_position">position</a> &lt; <span class="snum">32</span>)<a href="com1.c.html#n:69" title="to line 69">{</a>
<span class="cuser"><i id="n:65">  65</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"An explosion of shuddering magnitude splinters bulkheads and"</span>);
<span class="cuser"><i id="n:66">  66</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"ruptures the battlestar's hull.  You are sucked out into the"</span>);
<span class="cuser"><i id="n:67">  67</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"frozen void of space and killed."</span>);
<span class="cuser"><i id="n:68">  68</i>:</span>         <a href="com6.c.html#s:_die">die</a>();
<span class="cuser"><i id="n:69">  69</i>:</span>     <a href="com1.c.html#n:64" title="from line 64">}</a>
<span class="cuser"><i id="n:70">  70</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_Time">Time</a> &gt; <span class="snum">20 </span>&amp;&amp; <a href="externs.h.html#s:_position">position</a> &lt; <span class="snum">32</span>)
<span class="cuser"><i id="n:71">  71</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Explosions rock the battlestar."</span>);
<span class="cuser"><i id="n:72">  72</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_Time">Time</a> &gt; <a href="externs.h.html#s:_snooze">snooze</a>)<a href="com1.c.html#n:75" title="to line 75">{</a>
<span class="cuser"><i id="n:73">  73</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You drop from exhaustion..."</span>);
<span class="cuser"><i id="n:74">  74</i>:</span>         <a href="com5.c.html#s:_zzz">zzz</a>();
<span class="cuser"><i id="n:75">  75</i>:</span>     <a href="com1.c.html#n:72" title="from line 72">}</a>
<span class="cuser"><i id="n:76">  76</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_Time">Time</a> &gt; <a href="externs.h.html#s:_snooze">snooze</a> - <span class="snum">5</span>)
<span class="cuser"><i id="n:77">  77</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You're getting tired."</span>);
<span class="cuser"><i id="n:78">  78</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_Time">Time</a> &gt; (<a href="externs.h.html#s:_rythmn">rythmn</a> + <a href="externs.h.html#m:CYCLE" title="defined: 100">CYCLE</a>)) <a href="com1.c.html#n:97" title="to line 97">{</a>
<span class="cuser"><i id="n:79">  79</i>:</span>         <span class="skey">if </span>(<a href="externs.h.html#s:_location">location</a> == <a href="externs.h.html#s:_nightfile">nightfile</a>) <a href="com1.c.html#n:86" title="to line 86">{</a>
<span class="cuser"><i id="n:80">  80</i>:</span>             <a href="com1.c.html#s:_convert">convert</a>(<a href="externs.h.html#m:TODAY" title="defined: 0">TODAY</a>);
<span class="cuser"><i id="n:81">  81</i>:</span>             <span class="skey">if </span>(<a href="externs.h.html#m:OUTSIDE">OUTSIDE</a> &amp;&amp; <a href="externs.h.html#s:_Time">Time</a> - <a href="externs.h.html#s:_rythmn">rythmn</a> - <a href="externs.h.html#m:CYCLE" title="defined: 100">CYCLE</a> &lt; <span class="snum">10</span>) <a href="com1.c.html#n:85" title="to line 85">{</a>
<span class="cuser"><i id="n:82">  82</i>:</span>                 <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Dew lit sunbeams stretch out from a watery sunrise and herald the dawn."</span>);
<span class="cuser"><i id="n:83">  83</i>:</span>                 <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You awake from a misty dream-world into stark reality."</span>);
<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">"It is day."</span>);
<span class="cuser"><i id="n:85">  85</i>:</span>             <a href="com1.c.html#n:81" title="from line 81">}</a>
<span class="cuser"><i id="n:86">  86</i>:</span>         <a href="com1.c.html#n:79" title="from line 79">}</a> <span class="skey">else </span><a href="com1.c.html#n:95" title="to line 95">{</a>
<span class="cuser"><i id="n:87">  87</i>:</span>             <a href="com1.c.html#s:_convert">convert</a>(<a href="externs.h.html#m:TONIGHT" title="defined: 1">TONIGHT</a>);
<span class="cuser"><i id="n:88">  88</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#m:POOLS" title="defined: 126">POOLS</a>].objects, <a href="externs.h.html#m:BATHGOD" title="defined: 23">BATHGOD</a>);
<span class="cuser"><i id="n:89">  89</i>:</span>             <span class="skey">if </span>(<a href="externs.h.html#m:OUTSIDE">OUTSIDE</a> &amp;&amp; <a href="externs.h.html#s:_Time">Time</a> - <a href="externs.h.html#s:_rythmn">rythmn</a> - <a href="externs.h.html#m:CYCLE" title="defined: 100">CYCLE</a> &lt; <span class="snum">10</span>) <a href="com1.c.html#n:94" title="to line 94">{</a>
<span class="cuser"><i id="n:90">  90</i>:</span>                 <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The dying sun sinks into the ocean, leaving a blood stained sunset."</span>);
<span class="cuser"><i id="n:91">  91</i>:</span>                 <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The sky slowly fades from orange to violet to black.  A few stars"</span>);
<span class="cuser"><i id="n:92">  92</i>:</span>                 <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"flicker on, and it is night."</span>);
<span class="cuser"><i id="n:93">  93</i>:</span>                 <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The world seems completly different at night."</span>);
<span class="cuser"><i id="n:94">  94</i>:</span>             <a href="com1.c.html#n:89" title="from line 89">}</a>
<span class="cuser"><i id="n:95">  95</i>:</span>         <a href="com1.c.html#n:86" title="from line 86">}</a>
<span class="cuser"><i id="n:96">  96</i>:</span>         <a href="externs.h.html#s:_rythmn">rythmn</a> = <a href="externs.h.html#s:_Time">Time</a> - <a href="externs.h.html#s:_Time">Time</a> % <a href="externs.h.html#m:CYCLE" title="defined: 100">CYCLE</a>;
<span class="cuser"><i id="n:97">  97</i>:</span>     <a href="com1.c.html#n:78" title="from line 78">}</a>
<span class="cuser"><i id="n:98">  98</i>:</span>     <span class="skey">if </span>(!<a href="externs.h.html#s:_wiz">wiz</a> &amp;&amp; !<a href="externs.h.html#s:_tempwiz">tempwiz</a>)
<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:TALISMAN" title="defined: 19">TALISMAN</a>) || <a href="externs.h.html#m:testbit">testbit</a>(<a href="externs.h.html#s:_wear">wear</a>,<a href="externs.h.html#m:TALISMAN" title="defined: 19">TALISMAN</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:MEDALION" title="defined: 18">MEDALION</a>) || <a href="externs.h.html#m:testbit">testbit</a>(<a href="externs.h.html#s:_wear">wear</a>,<a href="externs.h.html#m:MEDALION" title="defined: 18">MEDALION</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>) || <a href="externs.h.html#m:testbit">testbit</a>(<a href="externs.h.html#s:_wear">wear</a>,<a href="externs.h.html#m:AMULET" title="defined: 17">AMULET</a>)))<a href="com1.c.html#n:102" title="to line 102">{</a>
<span class="cuser"><i id="n:100"> 100</i>:</span>             <a href="externs.h.html#s:_tempwiz">tempwiz</a> = <span class="snum">1</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">"The three amulets glow and reenforce each other in power.\nYou are now a wizard."</span>);
<span class="cuser"><i id="n:102"> 102</i>:</span>     <a href="com1.c.html#n:99" title="from line 99">}</a>
<span class="cuser"><i id="n:103"> 103</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:ELF" title="defined: 34">ELF</a>))<a href="com1.c.html#n:110" title="to line 110">{</a>
<span class="cuser"><i id="n:104"> 104</i>:</span> <a href="com1.c.html#n:108" title="to line 108">#ifdef</a> pdp11
<span class="cuser"><i id="n:105"> 105</i>:</span>         <a href="room.c.html#s:_strprt">strprt</a>(<a href="externs.h.html#m:ELF" title="defined: 34">ELF</a>);
<span class="cuser"><i id="n:106"> 106</i>:</span> #else
<span class="cuser"><i id="n:107"> 107</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:_objdes">objdes</a>[<a href="externs.h.html#m:ELF" title="defined: 34">ELF</a>]);
<span class="cuser"><i id="n:108"> 108</i>:</span> <a href="com1.c.html#n:104" title="from line 104">#endif</a>
<span class="cuser"><i id="n:109"> 109</i>:</span>         <a href="com7.c.html#s:_fight">fight</a>(<a href="externs.h.html#m:ELF" title="defined: 34">ELF</a>,<a href="externs.h.html#m:rnd">rnd</a>(<span class="snum">30</span>));
<span class="cuser"><i id="n:110"> 110</i>:</span>     <a href="com1.c.html#n:103" title="from line 103">}</a>
<span class="cuser"><i id="n:111"> 111</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:DARK" title="defined: 49">DARK</a>))<a href="com1.c.html#n:118" title="to line 118">{</a>
<span class="cuser"><i id="n:112"> 112</i>:</span> <a href="com1.c.html#n:116" title="to line 116">#ifdef</a> pdp11
<span class="cuser"><i id="n:113"> 113</i>:</span>         <a href="room.c.html#s:_strprt">strprt</a>(<a href="externs.h.html#m:DARK" title="defined: 49">DARK</a>);
<span class="cuser"><i id="n:114"> 114</i>:</span> #else
<span class="cuser"><i id="n:115"> 115</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:_objdes">objdes</a>[<a href="externs.h.html#m:DARK" title="defined: 49">DARK</a>]);
<span class="cuser"><i id="n:116"> 116</i>:</span> <a href="com1.c.html#n:112" title="from line 112">#endif</a>
<span class="cuser"><i id="n:117"> 117</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">100</span>);
<span class="cuser"><i id="n:118"> 118</i>:</span>     <a href="com1.c.html#n:111" title="from line 111">}</a>
<span class="cuser"><i id="n:119"> 119</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:WOODSMAN" title="defined: 3">WOODSMAN</a>))<a href="com1.c.html#n:126" title="to line 126">{</a>
<span class="cuser"><i id="n:120"> 120</i>:</span> <a href="com1.c.html#n:124" title="to line 124">#ifdef</a> pdp11
<span class="cuser"><i id="n:121"> 121</i>:</span>         <a href="room.c.html#s:_strprt">strprt</a>(<a href="externs.h.html#m:WOODSMAN" title="defined: 3">WOODSMAN</a>);
<span class="cuser"><i id="n:122"> 122</i>:</span> #else
<span class="cuser"><i id="n:123"> 123</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:_objdes">objdes</a>[<a href="externs.h.html#m:WOODSMAN" title="defined: 3">WOODSMAN</a>]);
<span class="cuser"><i id="n:124"> 124</i>:</span> <a href="com1.c.html#n:120" title="from line 120">#endif</a>
<span class="cuser"><i id="n:125"> 125</i>:</span>         <a href="com7.c.html#s:_fight">fight</a>(<a href="externs.h.html#m:WOODSMAN" title="defined: 3">WOODSMAN</a>,<span class="snum">50</span>);
<span class="cuser"><i id="n:126"> 126</i>:</span>     <a href="com1.c.html#n:119" title="from line 119">}</a>
<span class="cuser"><i id="n:127"> 127</i>:</span>     <span class="skey">switch</span>(<a href="externs.h.html#s:_position">position</a>)<a href="com1.c.html#n:142" title="to line 142">{</a>
<span class="cuser"><i id="n:128"> 128</i>:</span> 
<span class="cuser"><i id="n:129"> 129</i>:</span>         <span class="skey">case </span><span class="snum">267</span>:
<span class="cuser"><i id="n:130"> 130</i>:</span>         <span class="skey">case </span><span class="snum">257</span>:   <span class="scom">/* entering a cave */</span>
<span class="cuser"><i id="n:131"> 131</i>:</span>         <span class="skey">case </span><span class="snum">274</span>:
<span class="cuser"><i id="n:132"> 132</i>:</span>         <span class="skey">case </span><span class="snum">246</span>:
<span class="cuser"><i id="n:133"> 133</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:134"> 134</i>:</span>             <span class="skey">break</span>;
<span class="cuser"><i id="n:135"> 135</i>:</span>         <span class="skey">case </span><span class="snum">160</span>:
<span class="cuser"><i id="n:136"> 136</i>:</span>         <span class="skey">case </span><span class="snum">216</span>:   <span class="scom">/* leaving a cave */</span>
<span class="cuser"><i id="n:137"> 137</i>:</span>         <span class="skey">case </span><span class="snum">230</span>:
<span class="cuser"><i id="n:138"> 138</i>:</span>         <span class="skey">case </span><span class="snum">231</span>:
<span class="cuser"><i id="n:139"> 139</i>:</span>         <span class="skey">case </span><span class="snum">232</span>:
<span class="cuser"><i id="n:140"> 140</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">0</span>;
<span class="cuser"><i id="n:141"> 141</i>:</span>             <span class="skey">break</span>;
<span class="cuser"><i id="n:142"> 142</i>:</span>     <a href="com1.c.html#n:127" title="from line 127">}</a>
<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:_location">location</a>[<a href="externs.h.html#s:_position">position</a>].objects, <a href="externs.h.html#m:GIRL" title="defined: 47">GIRL</a>))
<span class="cuser"><i id="n:144"> 144</i>:</span>         <a href="externs.h.html#s:_meetgirl">meetgirl</a> = <span class="snum">1</span>;
<span class="cuser"><i id="n:145"> 145</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_meetgirl">meetgirl</a> &amp;&amp; <a href="externs.h.html#m:CYCLE" title="defined: 100">CYCLE</a> * <span class="snum">1.5 </span>- <a href="externs.h.html#s:_Time">Time</a> &lt; <span class="snum">10</span>)<a href="com1.c.html#n:149" title="to line 149">{</a>
<span class="cuser"><i id="n:146"> 146</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#m:GARDEN" title="defined: 197">GARDEN</a>].objects,<a href="externs.h.html#m:GIRLTALK" title="defined: 48">GIRLTALK</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#m:GARDEN" title="defined: 197">GARDEN</a>].objects,<a href="externs.h.html#m:LAMPON" title="defined: 12">LAMPON</a>);
<span class="cuser"><i id="n:148"> 148</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#m:GARDEN" title="defined: 197">GARDEN</a>].objects,<a href="externs.h.html#m:ROPE" title="defined: 27">ROPE</a>);
<span class="cuser"><i id="n:149"> 149</i>:</span>     <a href="com1.c.html#n:145" title="from line 145">}</a>
<span class="cuser"><i id="n:150"> 150</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_position">position</a> == <a href="externs.h.html#m:DOCK" title="defined: 93">DOCK</a> &amp;&amp; (<a href="externs.h.html#s:_beenthere">beenthere</a>[<a href="externs.h.html#s:_position">position</a>] || <a href="externs.h.html#s:_Time">Time</a> &gt; <a href="externs.h.html#m:CYCLE" title="defined: 100">CYCLE</a>))<a href="com1.c.html#n:153" title="to line 153">{</a>
<span class="cuser"><i id="n:151"> 151</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#m:DOCK" title="defined: 93">DOCK</a>].objects, <a href="externs.h.html#m:GIRL" title="defined: 47">GIRL</a>);
<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#m:DOCK" title="defined: 93">DOCK</a>].objects,<a href="externs.h.html#m:MAN" title="defined: 38">MAN</a>);
<span class="cuser"><i id="n:153"> 153</i>:</span>     <a href="com1.c.html#n:150" title="from line 150">}</a>
<span class="cuser"><i id="n:154"> 154</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_meetgirl">meetgirl</a> &amp;&amp; <a href="externs.h.html#s:_Time">Time</a> - <a href="externs.h.html#m:CYCLE" title="defined: 100">CYCLE</a> * <span class="snum">1.5 </span>&gt; <span class="snum">10</span>)<a href="com1.c.html#n:159" title="to line 159">{</a>
<span class="cuser"><i id="n:155"> 155</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#m:GARDEN" title="defined: 197">GARDEN</a>].objects,<a href="externs.h.html#m:GIRLTALK" title="defined: 48">GIRLTALK</a>);
<span class="cuser"><i id="n:156"> 156</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#m:GARDEN" title="defined: 197">GARDEN</a>].objects,<a href="externs.h.html#m:LAMPON" title="defined: 12">LAMPON</a>);
<span class="cuser"><i id="n:157"> 157</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#m:GARDEN" title="defined: 197">GARDEN</a>].objects,<a href="externs.h.html#m:ROPE" title="defined: 27">ROPE</a>);
<span class="cuser"><i id="n:158"> 158</i>:</span>         <a href="externs.h.html#s:_meetgirl">meetgirl</a> = <span class="snum">0</span>;
<span class="cuser"><i id="n:159"> 159</i>:</span>     <a href="com1.c.html#n:154" title="from line 154">}</a>
<span class="cuser"><i id="n:160"> 160</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:CYLON" title="defined: 14">CYLON</a>))<a href="com1.c.html#n:174" title="to line 174">{</a>
<span class="cuser"><i id="n:161"> 161</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Oh my God, you're being shot at by an alien spacecraft!"</span>);
<span class="cuser"><i id="n:162"> 162</i>:</span>         <a href="../../lib/libc/stdio/printf.c.html#s:_printf">printf</a>(<span class="sstr">"The targeting computer says we have %d seconds to attack!\n"</span>,<a href="externs.h.html#s:_clock">clock</a>);
<span class="cuser"><i id="n:163"> 163</i>:</span>         <a href="../../lib/libc/stdio/flsbuf.c.html#s:_fflush">fflush</a>(<a href="../../../include/stdio.h.html#m:stdout" title="defined: (&amp;_iob[1])">stdout</a>);
<span class="cuser"><i id="n:164"> 164</i>:</span>         <a href="../../lib/libc/gen/sleep.c.html#s:_sleep">sleep</a>(<span class="snum">1</span>);
<span class="cuser"><i id="n:165"> 165</i>:</span>         <span class="skey">if </span>(!<a href="fly.c.html#s:_visual">visual</a>())<a href="com1.c.html#n:171" title="to line 171">{</a>
<span class="cuser"><i id="n:166"> 166</i>:</span>             hurt = <a href="externs.h.html#m:rnd">rnd</a>(<a href="externs.h.html#m:NUMOFINJURIES" title="defined: 13">NUMOFINJURIES</a>);
<span class="cuser"><i id="n:167"> 167</i>:</span>             <a href="externs.h.html#s:_injuries">injuries</a>[hurt] = <span class="snum">1</span>;
<span class="cuser"><i id="n:168"> 168</i>:</span>             <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Laser blasts sear the cockpit, and the alien veers off in a victory roll."</span>);
<span class="cuser"><i id="n:169"> 169</i>:</span>             <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The viper shudders under a terrible explosion."</span>);
<span class="cuser"><i id="n:170"> 170</i>:</span>             <a href="../../lib/libc/stdio/printf.c.html#s:_printf">printf</a>(<span class="sstr">"I'm afraid you have suffered %s.\n"</span>, <a href="externs.h.html#s:_ouch">ouch</a>[hurt]);
<span class="cuser"><i id="n:171"> 171</i>:</span>         <a href="com1.c.html#n:165" title="from line 165">}</a>
<span class="cuser"><i id="n:172"> 172</i>:</span>         <span class="skey">else</span>
<span class="cuser"><i id="n:173"> 173</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:CYLON" title="defined: 14">CYLON</a>);
<span class="cuser"><i id="n:174"> 174</i>:</span>     <a href="com1.c.html#n:160" title="from line 160">}</a>
<span class="cuser"><i id="n:175"> 175</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_injuries">injuries</a>[<a href="externs.h.html#m:SKULL" title="defined: 11">SKULL</a>] &amp;&amp; <a href="externs.h.html#s:_injuries">injuries</a>[<a href="externs.h.html#m:INCISE" title="defined: 10">INCISE</a>] &amp;&amp; <a href="externs.h.html#s:_injuries">injuries</a>[<a href="externs.h.html#m:NECK" title="defined: 12">NECK</a>])<a href="com1.c.html#n:178" title="to line 178">{</a>
<span class="cuser"><i id="n:176"> 176</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"I'm afraid you have suffered fatal injuries."</span>);
<span class="cuser"><i id="n:177"> 177</i>:</span>         <a href="com6.c.html#s:_die">die</a>();
<span class="cuser"><i id="n:178"> 178</i>:</span>     <a href="com1.c.html#n:175" title="from line 175">}</a>
<span class="cuser"><i id="n:179"> 179</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:180"> 180</i>:</span>         <span class="skey">if </span>(<a href="externs.h.html#s:_injuries">injuries</a>[n] == <span class="snum">1</span>)<a href="com1.c.html#n:186" title="to line 186">{</a>
<span class="cuser"><i id="n:181"> 181</i>:</span>             <a href="externs.h.html#s:_injuries">injuries</a>[n] = <span class="snum">2</span>;
<span class="cuser"><i id="n:182"> 182</i>:</span>             <span class="skey">if </span>(<a href="externs.h.html#s:_WEIGHT">WEIGHT</a> &gt; <span class="snum">5</span>)
<span class="cuser"><i id="n:183"> 183</i>:</span>                 <a href="externs.h.html#s:_WEIGHT">WEIGHT</a> -= <span class="snum">5</span>;
<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>                 <a href="externs.h.html#s:_WEIGHT">WEIGHT</a> = <span class="snum">0</span>;
<span class="cuser"><i id="n:186"> 186</i>:</span>         <a href="com1.c.html#n:180" title="from line 180">}</a>
<span class="cuser"><i id="n:187"> 187</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_injuries">injuries</a>[<a href="externs.h.html#m:ARM" title="defined: 6">ARM</a>] == <span class="snum">2</span>)<a href="com1.c.html#n:190" title="to line 190">{</a>
<span class="cuser"><i id="n:188"> 188</i>:</span>         <a href="externs.h.html#s:_CUMBER">CUMBER</a> -= <span class="snum">5</span>;
<span class="cuser"><i id="n:189"> 189</i>:</span>         <a href="externs.h.html#s:_injuries">injuries</a>[<a href="externs.h.html#m:ARM" title="defined: 6">ARM</a>]++;
<span class="cuser"><i id="n:190"> 190</i>:</span>     <a href="com1.c.html#n:187" title="from line 187">}</a>
<span class="cuser"><i id="n:191"> 191</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_injuries">injuries</a>[<a href="externs.h.html#m:RIBS" title="defined: 7">RIBS</a>] == <span class="snum">2</span>)<a href="com1.c.html#n:194" title="to line 194">{</a>
<span class="cuser"><i id="n:192"> 192</i>:</span>         <a href="externs.h.html#s:_CUMBER">CUMBER</a> -= <span class="snum">2</span>;
<span class="cuser"><i id="n:193"> 193</i>:</span>         <a href="externs.h.html#s:_injuries">injuries</a>[<a href="externs.h.html#m:RIBS" title="defined: 7">RIBS</a>]++;
<span class="cuser"><i id="n:194"> 194</i>:</span>     <a href="com1.c.html#n:191" title="from line 191">}</a>
<span class="cuser"><i id="n:195"> 195</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_injuries">injuries</a>[<a href="externs.h.html#m:SPINE" title="defined: 9">SPINE</a>] == <span class="snum">2</span>)<a href="com1.c.html#n:198" title="to line 198">{</a>
<span class="cuser"><i id="n:196"> 196</i>:</span>         <a href="externs.h.html#s:_WEIGHT">WEIGHT</a> = <span class="snum">0</span>;
<span class="cuser"><i id="n:197"> 197</i>:</span>         <a href="externs.h.html#s:_injuries">injuries</a>[<a href="externs.h.html#m:SPINE" title="defined: 9">SPINE</a>]++;
<span class="cuser"><i id="n:198"> 198</i>:</span>     <a href="com1.c.html#n:195" title="from line 195">}</a>
<span class="cuser"><i id="n:199"> 199</i>:</span>     <span class="skey">if </span>(<a href="externs.h.html#s:_carrying">carrying</a> &gt; <a href="externs.h.html#s:_WEIGHT">WEIGHT</a> || <a href="externs.h.html#s:_encumber">encumber</a> &gt; <a href="externs.h.html#s:_CUMBER">CUMBER</a>)
<span class="cuser"><i id="n:200"> 200</i>:</span>         <a href="externs.h.html#s:_notes">notes</a>[<a href="externs.h.html#m:CANTMOVE" title="defined: 3">CANTMOVE</a>] = <span class="snum">1</span>;
<span class="cuser"><i id="n:201"> 201</i>:</span>     <span class="skey">else</span>
<span class="cuser"><i id="n:202"> 202</i>:</span>         <a href="externs.h.html#s:_notes">notes</a>[<a href="externs.h.html#m:CANTMOVE" title="defined: 3">CANTMOVE</a>] = <span class="snum">0</span>;
<span class="cuser"><i id="n:203"> 203</i>:</span> <a href="com1.c.html#n:60" title="from line 60">}</a>
<span class="cuser"><i id="n:204"> 204</i>:</span> 
<span class="cuser"><i id="n:205"> 205</i>:</span> <a href="com1.c.html#xref:s:_crash" id="s:_crash">crash</a>()
<span class="cuser"><i id="n:206"> 206</i>:</span> <a href="com1.c.html#n:235" title="to line 235">{</a>
<span class="cuser"><i id="n:207"> 207</i>:</span>     <span class="styp">int </span>hurt1,hurt2;
<span class="cuser"><i id="n:208"> 208</i>:</span> 
<span class="cuser"><i id="n:209"> 209</i>:</span>     <a href="externs.h.html#s:_fuel">fuel</a>--;
<span class="cuser"><i id="n:210"> 210</i>:</span>     <span class="skey">if </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:flyhere" title="defined: link[7]">flyhere</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:LAND" title="defined: 2">LAND</a>) &amp;&amp; <a href="externs.h.html#s:_fuel">fuel</a> &lt;= <span class="snum">0</span>))<a href="com1.c.html#n:234" title="to line 234">{</a>
<span class="cuser"><i id="n:211"> 211</i>:</span>         <span class="skey">if </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:flyhere" title="defined: link[7]">flyhere</a>)
<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">"You're flying too low.  We're going to crash!"</span>);
<span class="cuser"><i id="n:213"> 213</i>:</span>         <span class="skey">else</span><a href="com1.c.html#n:221" title="to line 221">{</a>
<span class="cuser"><i id="n:214"> 214</i>:</span>             <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"You're out of fuel.  We'll have to crash land!"</span>);
<span class="cuser"><i id="n:215"> 215</i>:</span>             <span class="skey">if </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>)<a href="com1.c.html#n:219" title="to line 219">{</a>
<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">"Your viper strikes the ground and explodes into firey fragments."</span>);
<span class="cuser"><i id="n:217"> 217</i>:</span>                 <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"Thick black smoke billows up from the wreckage."</span>);
<span class="cuser"><i id="n:218"> 218</i>:</span>                 <a href="com6.c.html#s:_die">die</a>();
<span class="cuser"><i id="n:219"> 219</i>:</span>             <a href="com1.c.html#n:215" title="from line 215">}</a>
<span class="cuser"><i id="n:220"> 220</i>:</span>             <a href="externs.h.html#s:_position">position</a> = <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="cuser"><i id="n:221"> 221</i>:</span>         <a href="com1.c.html#n:213" title="from line 213">}</a>
<span class="cuser"><i id="n:222"> 222</i>:</span>         <a href="externs.h.html#s:_notes">notes</a>[<a href="externs.h.html#m:LAUNCHED" title="defined: 1">LAUNCHED</a>] = <span class="snum">0</span>;
<span class="cuser"><i id="n:223"> 223</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:CRASH" title="defined: 33">CRASH</a>);
<span class="cuser"><i id="n:224"> 224</i>:</span>         <a href="externs.h.html#s:_Time">Time</a> += <a href="externs.h.html#m:rnd">rnd</a>(<a href="externs.h.html#m:CYCLE" title="defined: 100">CYCLE</a>/<span class="snum">4</span>);
<span class="cuser"><i id="n:225"> 225</i>:</span>         <a href="../../lib/libc/stdio/puts.c.html#s:_puts">puts</a>(<span class="sstr">"The viper explodes into the ground and you lose consciousness..."</span>);
<span class="cuser"><i id="n:226"> 226</i>:</span>         <a href="com5.c.html#s:_zzz">zzz</a>();
<span class="cuser"><i id="n:227"> 227</i>:</span>         hurt1 = <a href="externs.h.html#m:rnd">rnd</a>(<a href="externs.h.html#m:NUMOFINJURIES" title="defined: 13">NUMOFINJURIES</a> - <span class="snum">2</span>) + <span class="snum">2</span>;
<span class="cuser"><i id="n:228"> 228</i>:</span>         hurt2 = <a href="externs.h.html#m:rnd">rnd</a>(<a href="externs.h.html#m:NUMOFINJURIES" title="defined: 13">NUMOFINJURIES</a> - <span class="snum">2</span>) + <span class="snum">2</span>;
<span class="cuser"><i id="n:229"> 229</i>:</span>         <a href="externs.h.html#s:_injuries">injuries</a>[hurt1] = <span class="snum">1</span>;
<span class="cuser"><i id="n:230"> 230</i>:</span>         <a href="externs.h.html#s:_injuries">injuries</a>[hurt2] = <span class="snum">1</span>;
<span class="cuser"><i id="n:231"> 231</i>:</span>         <a href="externs.h.html#s:_injuries">injuries</a>[<span class="snum">0</span>] = <span class="snum">1</span>;    <span class="scom">/* abrasions */</span>
<span class="cuser"><i id="n:232"> 232</i>:</span>         <a href="externs.h.html#s:_injuries">injuries</a>[<span class="snum">1</span>] = <span class="snum">1</span>;    <span class="scom">/* lacerations */</span>
<span class="cuser"><i id="n:233"> 233</i>:</span>         <a href="../../lib/libc/stdio/printf.c.html#s:_printf">printf</a>(<span class="sstr">"I'm afraid you have suffered %s and %s.\n"</span>,<a href="externs.h.html#s:_ouch">ouch</a>[hurt1],<a href="externs.h.html#s:_ouch">ouch</a>[hurt2]);
<span class="cuser"><i id="n:234"> 234</i>:</span>     <a href="com1.c.html#n:210" title="from line 210">}</a>
<span class="cuser"><i id="n:235"> 235</i>:</span> <a href="com1.c.html#n:206" title="from line 206">}</a>
</pre>
</div>
<div id="xref">
<h4>Defined functions</h4>
<div class="xe"><a id="xref:s:_convert" href="com1.c.html#s:_convert">convert</a>
 defined in line <a href="com1.c.html#n:36">36</a>;  used 2 times
<ul>
<li class="xxe">in line <a href="com1.c.html#n:80">80</a>,
<a href="com1.c.html#n:87">87</a>
</li></ul>
</div>
<div class="xo"><a id="xref:s:_crash" href="com1.c.html#s:_crash">crash</a>
 defined in line <a href="com1.c.html#n:205">205</a>;  used 2 times
<ul>
<li class="xxe"> in <a href="battlestar.c.html">/usr/src/games/battlestar/battlestar.c</a> line 
<a href="battlestar.c.html#n:37">37</a>
</li><li class="xxo"> in <a href="com5.c.html">/usr/src/games/battlestar/com5.c</a> line 
<a href="com5.c.html#n:113">113</a>
</li></ul>
</div>
<div class="xe"><a id="xref:s:_move" href="com1.c.html#s:_move">move</a>
 defined in line <a href="com1.c.html#n:13">13</a>;  used 11 times
<ul>
<li class="xxe"> in <a href="com7.c.html">/usr/src/games/battlestar/com7.c</a> line 
<a href="com7.c.html#n:174">174</a>-<a href="com7.c.html#n:182">182</a>(5)
</li><li class="xxo"> in <a href="cypher.c.html">/usr/src/games/battlestar/cypher.c</a> line 
<a href="cypher.c.html#n:29">29</a>,
<a href="cypher.c.html#n:39">39</a>,
<a href="cypher.c.html#n:45">45</a>,
<a href="cypher.c.html#n:51">51</a>,
<a href="cypher.c.html#n:57">57</a>,
<a href="cypher.c.html#n:63">63</a>
</li></ul>
</div>
<div class="xo"><a id="xref:s:_news" href="com1.c.html#s:_news">news</a>
 defined in line <a href="com1.c.html#n:59">59</a>;  used 1 times
<ul>
<li class="xxe"> in <a href="battlestar.c.html">/usr/src/games/battlestar/battlestar.c</a> line 
<a href="battlestar.c.html#n:34">34</a>
</li></ul>
</div>
<h4>Defined variables</h4>
<div class="xe"><a id="xref:s:_sccsid" href="com1.c.html#s:_sccsid">sccsid</a>
 defined in line <a href="com1.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: 
      1724
      </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>
