-
Notifications
You must be signed in to change notification settings - Fork 0
/
api__simple_8cc_source.html
122 lines (120 loc) · 38.3 KB
/
api__simple_8cc_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Simutrans-Squirrel-API: api_simple.cc Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Simutrans-Squirrel-API
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">api_simple.cc</div> </div>
</div><!--header-->
<div class="contents">
<a href="api__simple_8cc.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div><div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="classtime__x.html"> 9</a></span> <span class="keyword">class </span><a class="code" href="classtime__x.html">time_x</a> {</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="classtime__x.html#ac8b98fec00a957c558bda54e4e6ff276"> 11</a></span>  integer <a class="code" href="classtime__x.html#ac8b98fec00a957c558bda54e4e6ff276">raw</a>; </div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="classtime__x.html#aca1536a498b55607497ce661d6eaab5c"> 12</a></span>  integer <a class="code" href="classtime__x.html#aca1536a498b55607497ce661d6eaab5c">year</a>; </div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classtime__x.html#a508e6515130f2b1b4039f789d2180a8f"> 13</a></span>  integer <a class="code" href="classtime__x.html#a508e6515130f2b1b4039f789d2180a8f">month</a>; </div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> };</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="classtime__ticks__x.html"> 19</a></span> <span class="keyword">class </span><a class="code" href="classtime__ticks__x.html">time_ticks_x</a> : <span class="keyword">public</span> <a class="code" href="classtime__x.html">time_x</a> {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classtime__ticks__x.html#a614a235a388be3a372f5571d04f3bcaf"> 21</a></span>  integer <a class="code" href="classtime__ticks__x.html#a614a235a388be3a372f5571d04f3bcaf">ticks</a>; </div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classtime__ticks__x.html#a8a2e305561775c0490a55c3d81d8f377"> 22</a></span>  integer <a class="code" href="classtime__ticks__x.html#a8a2e305561775c0490a55c3d81d8f377">ticks_per_month</a>; </div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classtime__ticks__x.html#aad7450c59a10b0ab506bd76b8f33bac4"> 23</a></span>  integer <a class="code" href="classtime__ticks__x.html#aad7450c59a10b0ab506bd76b8f33bac4">next_month_ticks</a>; </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> };</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classcoord.html"> 32</a></span> <span class="keyword">class </span><a class="code" href="classcoord.html">coord</a> {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classcoord.html#a31d0b44c0bfcea55a67587a3d8fe2348"> 35</a></span>  integer <a class="code" href="classcoord.html#a31d0b44c0bfcea55a67587a3d8fe2348">x</a>;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classcoord.html#a77e983dd41d55fb0594e983cc1cbcf15"> 37</a></span>  integer <a class="code" href="classcoord.html#a77e983dd41d55fb0594e983cc1cbcf15">y</a>;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="comment">// operators are defined in script_base.nut</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="classcoord.html">coord</a>(<span class="keywordtype">int</span> <a class="code" href="classcoord.html#a31d0b44c0bfcea55a67587a3d8fe2348">x</a>, <span class="keywordtype">int</span> <a class="code" href="classcoord.html#a77e983dd41d55fb0594e983cc1cbcf15">y</a>);</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="classcoord.html">coord</a> operator + (<a class="code" href="classcoord.html">coord</a> other);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="classcoord.html">coord</a> operator - (<a class="code" href="classcoord.html">coord</a> other);</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="classcoord.html">coord</a> operator - ();</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="code" href="classcoord.html">coord</a> operator * (integer fac);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="classcoord.html">coord</a> operator / (integer fac);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordtype">string</span> <a class="code" href="classcoord.html#ab7df16d922ba90a06d29f4056afdd972">_tostring</a>();</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordtype">string</span> <a class="code" href="classcoord.html#aa4827cc01e0bde2e7ec51806b410e153">href</a>(<span class="keywordtype">string</span> text);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="classdir.html">dir</a> <a class="code" href="classcoord.html#a46a03145891ad2c80f75ebc8d46bdeb0">to_dir</a>();</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> };</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classcoord3d.html"> 70</a></span> <span class="keyword">class </span><a class="code" href="classcoord3d.html">coord3d</a> : <span class="keyword">public</span> <a class="code" href="classcoord.html">coord</a> {</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classcoord3d.html#a52a528d37f4e3a486e4c5ee8e78554d8"> 73</a></span>  integer <a class="code" href="classcoord3d.html#a52a528d37f4e3a486e4c5ee8e78554d8">x</a>;</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classcoord3d.html#a6e16a3a8dc5abbf3ce6cc91f0c3f4494"> 75</a></span>  integer <a class="code" href="classcoord3d.html#a6e16a3a8dc5abbf3ce6cc91f0c3f4494">y</a>;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classcoord3d.html#ac0605ab7d344f3296bc32666c919a3ef"> 77</a></span>  integer <a class="code" href="classcoord3d.html#ac0605ab7d344f3296bc32666c919a3ef">z</a>;</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="comment">// operators are defined in script_base.nut</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="classcoord.html">coord</a>(<span class="keywordtype">int</span> <a class="code" href="classcoord3d.html#a52a528d37f4e3a486e4c5ee8e78554d8">x</a>, <span class="keywordtype">int</span> <a class="code" href="classcoord3d.html#a6e16a3a8dc5abbf3ce6cc91f0c3f4494">y</a>, <span class="keywordtype">int</span> <a class="code" href="classcoord3d.html#ac0605ab7d344f3296bc32666c919a3ef">z</a>);</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <a class="code" href="classcoord3d.html">coord3d</a> operator + (<a class="code" href="classcoord3d.html">coord3d</a> other);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <a class="code" href="classcoord3d.html">coord3d</a> operator - (<a class="code" href="classcoord.html">coord</a> other);</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <a class="code" href="classcoord3d.html">coord3d</a> operator + (<a class="code" href="classcoord3d.html">coord3d</a> other);</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="classcoord3d.html">coord3d</a> operator - (<a class="code" href="classcoord.html">coord</a> other);</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="classcoord3d.html">coord3d</a> operator - ();</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="classcoord3d.html">coord3d</a> operator * (integer fac);</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="classcoord3d.html">coord3d</a> operator / (integer fac);</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordtype">string</span> <a class="code" href="classcoord3d.html#a366677c0a4d3affe8ed7d9f8e8c0dd92">_tostring</a>();</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordtype">string</span> <a class="code" href="classcoord3d.html#a093be4dbed45b6446d05e6e37ded394b">href</a>(<span class="keywordtype">string</span> text);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> };</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <a class="code" href="classdir.html">dir</a> <a class="code" href="api__simple_8cc.html#a1ead498d4e9fe1b944b9adeebc170806">coord_to_dir</a>(<a class="code" href="classcoord.html">coord</a> <a class="code" href="classdir.html">dir</a>);</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classdir.html"> 110</a></span> <span class="keyword">class </span><a class="code" href="classdir.html">dir</a> {</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdir.html">dir</a> none;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdir.html">dir</a> north;</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdir.html">dir</a> east;</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdir.html">dir</a> northeast;</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdir.html">dir</a> south;</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdir.html">dir</a> northsouth;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdir.html">dir</a> southeast;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdir.html">dir</a> northsoutheast;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdir.html">dir</a> west;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdir.html">dir</a> northwest;</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdir.html">dir</a> eastwest;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdir.html">dir</a> northeastwest;</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdir.html">dir</a> southwest;</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdir.html">dir</a> northsouthwest;</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdir.html">dir</a> southeastwest;</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classdir.html">dir</a> all;</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classdir.html#abdd5a6e881b3fe2fad153f06430573b7">is_single</a>(<a class="code" href="classdir.html">dir</a> d);</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classdir.html#a4ec446fcb6ff3c66821b8a4dbc1976fe">is_twoway</a>(<a class="code" href="classdir.html">dir</a> d);</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classdir.html#a6fd8624a5d28891b92eff2bdd504e6a5">is_threeway</a>(<a class="code" href="classdir.html">dir</a> d);</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classdir.html#a5c123ab819f6063da8a56d480b11df01">is_curve</a>(<a class="code" href="classdir.html">dir</a> d);</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classdir.html#a12989961a428bc37e964a779420316f1">is_straight</a>(<a class="code" href="classdir.html">dir</a> d);</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keyword">static</span> <a class="code" href="classdir.html">dir</a> <a class="code" href="classdir.html#a3e1d664db7453876eff14b78d4ecd551">double</a>(<a class="code" href="classdir.html">dir</a> d);</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keyword">static</span> <a class="code" href="classdir.html">dir</a> <a class="code" href="classdir.html#afb73e882097e002321849eb8c49e9f53">backward</a>(<a class="code" href="classdir.html">dir</a> d);</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keyword">static</span> <a class="code" href="classslope.html">slope</a> <a class="code" href="classdir.html#ae1de7f3d5607444cc70117f65af00435">to_slope</a>(<a class="code" href="classdir.html">dir</a> d);</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keyword">static</span> <a class="code" href="classcoord.html">coord</a> <a class="code" href="classdir.html#a2bc083cd841af31e422a012b7b1672ac">to_coord</a>();</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> };</div><div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="classslope.html"> 180</a></span> <span class="keyword">class </span><a class="code" href="classslope.html">slope</a> {</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classslope.html">slope</a> flat;</div><div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="classslope.html#aad572e16b3350b68be02eb183ea2d1ac"> 185</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classslope.html">slope</a> <a class="code" href="classslope.html#aad572e16b3350b68be02eb183ea2d1ac">north</a>; </div><div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="classslope.html#aa81e8df72f647d94ec725f0d8b1e8563"> 186</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classslope.html">slope</a> <a class="code" href="classslope.html#aa81e8df72f647d94ec725f0d8b1e8563">west</a>; </div><div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="classslope.html#ae10e0dba04ebfaa2a781bc66dc23f829"> 187</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classslope.html">slope</a> <a class="code" href="classslope.html#ae10e0dba04ebfaa2a781bc66dc23f829">east</a>; </div><div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="classslope.html#a7cccc71b768edf2bbd83222984e8687c"> 188</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classslope.html">slope</a> <a class="code" href="classslope.html#a7cccc71b768edf2bbd83222984e8687c">south</a>; </div><div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classslope.html#a32f1f09ea76ef9db0fea47c78c78f071"> 189</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classslope.html">slope</a> <a class="code" href="classslope.html#a32f1f09ea76ef9db0fea47c78c78f071">northwest</a>; </div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="classslope.html#a968500ed4e794778ff6d6b4067716a0f"> 190</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classslope.html">slope</a> <a class="code" href="classslope.html#a968500ed4e794778ff6d6b4067716a0f">northeast</a>; </div><div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="classslope.html#a15bc99098169f239b2e28318fd8fa758"> 191</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classslope.html">slope</a> <a class="code" href="classslope.html#a15bc99098169f239b2e28318fd8fa758">southeast</a>; </div><div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classslope.html#ab741744af364373a805d7392e5f448c2"> 192</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classslope.html">slope</a> <a class="code" href="classslope.html#ab741744af364373a805d7392e5f448c2">southwest</a>; </div><div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="classslope.html#a239364ae4366266c5696307ae01fdcc3"> 193</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classslope.html">slope</a> <a class="code" href="classslope.html#a239364ae4366266c5696307ae01fdcc3">raised</a>; </div><div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classslope.html#a1afa90575055e38bb13043a0ce3fe261"> 194</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classslope.html">slope</a> <a class="code" href="classslope.html#a1afa90575055e38bb13043a0ce3fe261">all_up_slope</a> = 82; </div><div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="classslope.html#ae9f01698404f57eea862708e55143174"> 195</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classslope.html">slope</a> <a class="code" href="classslope.html#ae9f01698404f57eea862708e55143174">all_down_slope</a> = 83; </div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keyword">static</span> <a class="code" href="classdir.html">dir</a> <a class="code" href="classslope.html#a79765670ca24ed5c3ff4e34ec5c20b9c">to_dir</a>(<a class="code" href="classslope.html">slope</a> s);</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> };</div><div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="classingame__object.html"> 211</a></span> <span class="keyword">class </span><a class="code" href="classingame__object.html">ingame_object</a></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> {</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="keywordtype">bool</span> <a class="code" href="classingame__object.html#a6b0d393ea95417f6cc7d47816f56ca19">is_valid</a>();</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span> }</div><div class="ttc" id="classcoord3d_html_a6e16a3a8dc5abbf3ce6cc91f0c3f4494"><div class="ttname"><a href="classcoord3d.html#a6e16a3a8dc5abbf3ce6cc91f0c3f4494">coord3d::y</a></div><div class="ttdeci">integer y</div><div class="ttdoc">y-coordinate </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00075">api_simple.cc:75</a></div></div>
<div class="ttc" id="classtime__x_html_ac8b98fec00a957c558bda54e4e6ff276"><div class="ttname"><a href="classtime__x.html#ac8b98fec00a957c558bda54e4e6ff276">time_x::raw</a></div><div class="ttdeci">integer raw</div><div class="ttdoc">raw integer value of date </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00011">api_simple.cc:11</a></div></div>
<div class="ttc" id="classdir_html_a5c123ab819f6063da8a56d480b11df01"><div class="ttname"><a href="classdir.html#a5c123ab819f6063da8a56d480b11df01">dir::is_curve</a></div><div class="ttdeci">static bool is_curve(dir d)</div></div>
<div class="ttc" id="classtime__ticks__x_html_a614a235a388be3a372f5571d04f3bcaf"><div class="ttname"><a href="classtime__ticks__x.html#a614a235a388be3a372f5571d04f3bcaf">time_ticks_x::ticks</a></div><div class="ttdeci">integer ticks</div><div class="ttdoc">current time in ticks </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00021">api_simple.cc:21</a></div></div>
<div class="ttc" id="classdir_html_ae1de7f3d5607444cc70117f65af00435"><div class="ttname"><a href="classdir.html#ae1de7f3d5607444cc70117f65af00435">dir::to_slope</a></div><div class="ttdeci">static slope to_slope(dir d)</div></div>
<div class="ttc" id="classcoord_html_ab7df16d922ba90a06d29f4056afdd972"><div class="ttname"><a href="classcoord.html#ab7df16d922ba90a06d29f4056afdd972">coord::_tostring</a></div><div class="ttdeci">string _tostring()</div></div>
<div class="ttc" id="classcoord_html_a46a03145891ad2c80f75ebc8d46bdeb0"><div class="ttname"><a href="classcoord.html#a46a03145891ad2c80f75ebc8d46bdeb0">coord::to_dir</a></div><div class="ttdeci">dir to_dir()</div></div>
<div class="ttc" id="classtime__x_html_a508e6515130f2b1b4039f789d2180a8f"><div class="ttname"><a href="classtime__x.html#a508e6515130f2b1b4039f789d2180a8f">time_x::month</a></div><div class="ttdeci">integer month</div><div class="ttdoc">month in 0..11 </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00013">api_simple.cc:13</a></div></div>
<div class="ttc" id="classslope_html_ae10e0dba04ebfaa2a781bc66dc23f829"><div class="ttname"><a href="classslope.html#ae10e0dba04ebfaa2a781bc66dc23f829">slope::east</a></div><div class="ttdeci">static const slope east</div><div class="ttdoc">East slope. </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00187">api_simple.cc:187</a></div></div>
<div class="ttc" id="classcoord3d_html"><div class="ttname"><a href="classcoord3d.html">coord3d</a></div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00070">api_simple.cc:70</a></div></div>
<div class="ttc" id="classslope_html_a32f1f09ea76ef9db0fea47c78c78f071"><div class="ttname"><a href="classslope.html#a32f1f09ea76ef9db0fea47c78c78f071">slope::northwest</a></div><div class="ttdeci">static const slope northwest</div><div class="ttdoc">NW corner. </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00189">api_simple.cc:189</a></div></div>
<div class="ttc" id="classdir_html_a4ec446fcb6ff3c66821b8a4dbc1976fe"><div class="ttname"><a href="classdir.html#a4ec446fcb6ff3c66821b8a4dbc1976fe">dir::is_twoway</a></div><div class="ttdeci">static bool is_twoway(dir d)</div></div>
<div class="ttc" id="classtime__ticks__x_html"><div class="ttname"><a href="classtime__ticks__x.html">time_ticks_x</a></div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00019">api_simple.cc:19</a></div></div>
<div class="ttc" id="classcoord_html"><div class="ttname"><a href="classcoord.html">coord</a></div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00032">api_simple.cc:32</a></div></div>
<div class="ttc" id="classslope_html"><div class="ttname"><a href="classslope.html">slope</a></div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00180">api_simple.cc:180</a></div></div>
<div class="ttc" id="classtime__ticks__x_html_aad7450c59a10b0ab506bd76b8f33bac4"><div class="ttname"><a href="classtime__ticks__x.html#aad7450c59a10b0ab506bd76b8f33bac4">time_ticks_x::next_month_ticks</a></div><div class="ttdeci">integer next_month_ticks</div><div class="ttdoc">new month will start at this time </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00023">api_simple.cc:23</a></div></div>
<div class="ttc" id="classslope_html_ab741744af364373a805d7392e5f448c2"><div class="ttname"><a href="classslope.html#ab741744af364373a805d7392e5f448c2">slope::southwest</a></div><div class="ttdeci">static const slope southwest</div><div class="ttdoc">SW corner. </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00192">api_simple.cc:192</a></div></div>
<div class="ttc" id="classcoord3d_html_a366677c0a4d3affe8ed7d9f8e8c0dd92"><div class="ttname"><a href="classcoord3d.html#a366677c0a4d3affe8ed7d9f8e8c0dd92">coord3d::_tostring</a></div><div class="ttdeci">string _tostring()</div></div>
<div class="ttc" id="classdir_html_a3e1d664db7453876eff14b78d4ecd551"><div class="ttname"><a href="classdir.html#a3e1d664db7453876eff14b78d4ecd551">dir::double</a></div><div class="ttdeci">static dir double(dir d)</div></div>
<div class="ttc" id="classdir_html_a6fd8624a5d28891b92eff2bdd504e6a5"><div class="ttname"><a href="classdir.html#a6fd8624a5d28891b92eff2bdd504e6a5">dir::is_threeway</a></div><div class="ttdeci">static bool is_threeway(dir d)</div></div>
<div class="ttc" id="classcoord_html_aa4827cc01e0bde2e7ec51806b410e153"><div class="ttname"><a href="classcoord.html#aa4827cc01e0bde2e7ec51806b410e153">coord::href</a></div><div class="ttdeci">string href(string text)</div></div>
<div class="ttc" id="classslope_html_aad572e16b3350b68be02eb183ea2d1ac"><div class="ttname"><a href="classslope.html#aad572e16b3350b68be02eb183ea2d1ac">slope::north</a></div><div class="ttdeci">static const slope north</div><div class="ttdoc">North slope. </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00185">api_simple.cc:185</a></div></div>
<div class="ttc" id="classdir_html"><div class="ttname"><a href="classdir.html">dir</a></div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00110">api_simple.cc:110</a></div></div>
<div class="ttc" id="classslope_html_a239364ae4366266c5696307ae01fdcc3"><div class="ttname"><a href="classslope.html#a239364ae4366266c5696307ae01fdcc3">slope::raised</a></div><div class="ttdeci">static const slope raised</div><div class="ttdoc">special meaning: used as slope of bridgeheads </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00193">api_simple.cc:193</a></div></div>
<div class="ttc" id="classdir_html_a12989961a428bc37e964a779420316f1"><div class="ttname"><a href="classdir.html#a12989961a428bc37e964a779420316f1">dir::is_straight</a></div><div class="ttdeci">static bool is_straight(dir d)</div></div>
<div class="ttc" id="classcoord_html_a31d0b44c0bfcea55a67587a3d8fe2348"><div class="ttname"><a href="classcoord.html#a31d0b44c0bfcea55a67587a3d8fe2348">coord::x</a></div><div class="ttdeci">integer x</div><div class="ttdoc">x-coordinate </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00035">api_simple.cc:35</a></div></div>
<div class="ttc" id="classslope_html_ae9f01698404f57eea862708e55143174"><div class="ttname"><a href="classslope.html#ae9f01698404f57eea862708e55143174">slope::all_down_slope</a></div><div class="ttdeci">static const slope all_down_slope</div><div class="ttdoc">used for terraforming tools </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00195">api_simple.cc:195</a></div></div>
<div class="ttc" id="classcoord3d_html_a093be4dbed45b6446d05e6e37ded394b"><div class="ttname"><a href="classcoord3d.html#a093be4dbed45b6446d05e6e37ded394b">coord3d::href</a></div><div class="ttdeci">string href(string text)</div></div>
<div class="ttc" id="classingame__object_html_a6b0d393ea95417f6cc7d47816f56ca19"><div class="ttname"><a href="classingame__object.html#a6b0d393ea95417f6cc7d47816f56ca19">ingame_object::is_valid</a></div><div class="ttdeci">bool is_valid()</div></div>
<div class="ttc" id="classingame__object_html"><div class="ttname"><a href="classingame__object.html">ingame_object</a></div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00211">api_simple.cc:211</a></div></div>
<div class="ttc" id="classslope_html_aa81e8df72f647d94ec725f0d8b1e8563"><div class="ttname"><a href="classslope.html#aa81e8df72f647d94ec725f0d8b1e8563">slope::west</a></div><div class="ttdeci">static const slope west</div><div class="ttdoc">West slope. </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00186">api_simple.cc:186</a></div></div>
<div class="ttc" id="classdir_html_abdd5a6e881b3fe2fad153f06430573b7"><div class="ttname"><a href="classdir.html#abdd5a6e881b3fe2fad153f06430573b7">dir::is_single</a></div><div class="ttdeci">static bool is_single(dir d)</div></div>
<div class="ttc" id="classslope_html_a1afa90575055e38bb13043a0ce3fe261"><div class="ttname"><a href="classslope.html#a1afa90575055e38bb13043a0ce3fe261">slope::all_up_slope</a></div><div class="ttdeci">static const slope all_up_slope</div><div class="ttdoc">used for terraforming tools </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00194">api_simple.cc:194</a></div></div>
<div class="ttc" id="classdir_html_afb73e882097e002321849eb8c49e9f53"><div class="ttname"><a href="classdir.html#afb73e882097e002321849eb8c49e9f53">dir::backward</a></div><div class="ttdeci">static dir backward(dir d)</div></div>
<div class="ttc" id="classslope_html_a79765670ca24ed5c3ff4e34ec5c20b9c"><div class="ttname"><a href="classslope.html#a79765670ca24ed5c3ff4e34ec5c20b9c">slope::to_dir</a></div><div class="ttdeci">static dir to_dir(slope s)</div></div>
<div class="ttc" id="classslope_html_a7cccc71b768edf2bbd83222984e8687c"><div class="ttname"><a href="classslope.html#a7cccc71b768edf2bbd83222984e8687c">slope::south</a></div><div class="ttdeci">static const slope south</div><div class="ttdoc">South slope. </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00188">api_simple.cc:188</a></div></div>
<div class="ttc" id="classcoord_html_a77e983dd41d55fb0594e983cc1cbcf15"><div class="ttname"><a href="classcoord.html#a77e983dd41d55fb0594e983cc1cbcf15">coord::y</a></div><div class="ttdeci">integer y</div><div class="ttdoc">y-coordinate </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00037">api_simple.cc:37</a></div></div>
<div class="ttc" id="classdir_html_a2bc083cd841af31e422a012b7b1672ac"><div class="ttname"><a href="classdir.html#a2bc083cd841af31e422a012b7b1672ac">dir::to_coord</a></div><div class="ttdeci">static coord to_coord()</div></div>
<div class="ttc" id="classtime__x_html"><div class="ttname"><a href="classtime__x.html">time_x</a></div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00009">api_simple.cc:9</a></div></div>
<div class="ttc" id="api__simple_8cc_html_a1ead498d4e9fe1b944b9adeebc170806"><div class="ttname"><a href="api__simple_8cc.html#a1ead498d4e9fe1b944b9adeebc170806">coord_to_dir</a></div><div class="ttdeci">dir coord_to_dir(coord dir)</div></div>
<div class="ttc" id="classcoord3d_html_a52a528d37f4e3a486e4c5ee8e78554d8"><div class="ttname"><a href="classcoord3d.html#a52a528d37f4e3a486e4c5ee8e78554d8">coord3d::x</a></div><div class="ttdeci">integer x</div><div class="ttdoc">x-coordinate </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00073">api_simple.cc:73</a></div></div>
<div class="ttc" id="classslope_html_a15bc99098169f239b2e28318fd8fa758"><div class="ttname"><a href="classslope.html#a15bc99098169f239b2e28318fd8fa758">slope::southeast</a></div><div class="ttdeci">static const slope southeast</div><div class="ttdoc">SE corner. </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00191">api_simple.cc:191</a></div></div>
<div class="ttc" id="classcoord3d_html_ac0605ab7d344f3296bc32666c919a3ef"><div class="ttname"><a href="classcoord3d.html#ac0605ab7d344f3296bc32666c919a3ef">coord3d::z</a></div><div class="ttdeci">integer z</div><div class="ttdoc">z-coordinate - height </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00077">api_simple.cc:77</a></div></div>
<div class="ttc" id="classtime__ticks__x_html_a8a2e305561775c0490a55c3d81d8f377"><div class="ttname"><a href="classtime__ticks__x.html#a8a2e305561775c0490a55c3d81d8f377">time_ticks_x::ticks_per_month</a></div><div class="ttdeci">integer ticks_per_month</div><div class="ttdoc">length of one in-game month in ticks </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00022">api_simple.cc:22</a></div></div>
<div class="ttc" id="classtime__x_html_aca1536a498b55607497ce661d6eaab5c"><div class="ttname"><a href="classtime__x.html#aca1536a498b55607497ce661d6eaab5c">time_x::year</a></div><div class="ttdeci">integer year</div><div class="ttdoc">year </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00012">api_simple.cc:12</a></div></div>
<div class="ttc" id="classslope_html_a968500ed4e794778ff6d6b4067716a0f"><div class="ttname"><a href="classslope.html#a968500ed4e794778ff6d6b4067716a0f">slope::northeast</a></div><div class="ttdeci">static const slope northeast</div><div class="ttdoc">NE corner. </div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00190">api_simple.cc:190</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>