aboutsummaryrefslogtreecommitdiffstats
path: root/doc/html/world_8h_source.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/world_8h_source.html')
-rw-r--r--doc/html/world_8h_source.html320
1 files changed, 156 insertions, 164 deletions
diff --git a/doc/html/world_8h_source.html b/doc/html/world_8h_source.html
index 4d396a7..3e18f62 100644
--- a/doc/html/world_8h_source.html
+++ b/doc/html/world_8h_source.html
@@ -3,7 +3,7 @@
<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.10"/>
+<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>gamedev: include/world.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
@@ -22,7 +22,7 @@
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
+ <td style="padding-left: 0.5em;">
<div id="projectname">gamedev
</div>
</td>
@@ -31,7 +31,7 @@
</table>
</div>
<!-- end header part -->
-<!-- Generated by Doxygen 1.8.10 -->
+<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
@@ -128,177 +128,165 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classWorld.html#a645767ccf316a9b4469db773ac111ae4"> 78</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classWorld.html#a645767ccf316a9b4469db773ac111ae4">x_start</a>;</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; </div>
-<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keywordtype">void</span> singleDetect(<a class="code" href="classEntity.html">Entity</a> *e);</div>
-<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; </div>
-<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="comment">/*</span></div>
-<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="comment"> * Deletes all entities in the world.</span></div>
-<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="world_8h.html#aa4f0d3eebc3c443f9be81bf48561a217"> 88</a></span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="world_8h.html#aa4f0d3eebc3c443f9be81bf48561a217"> 88</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classWorld.html#a0af69654347b29787877b77020fa0a5a">singleDetect</a>(<a class="code" href="classEntity.html">Entity</a> *e);</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="world_8h.html#aabefe07939b18f14fedbb9c9a14d02d5"> 89</a></span>&#160; </div>
-<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="world_8h.html#aa523d841be6ccb88f26cd56294adcd01"> 90</a></span>&#160; <span class="keywordtype">void</span> deleteEntities(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="world_8h.html#af61b66b2d9004f4975ae5f51c2177f3d"> 91</a></span>&#160; </div>
-<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="comment">/*</span></div>
-<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;<span class="comment"> * The size of the line array. This is set once by World-&gt;generate().</span></div>
-<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;<span class="comment"> */</span></div>
-<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; </div>
-<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> lineCount;</div>
-<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; </div>
-<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="comment">/*</span></div>
-<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;<span class="comment"> * Contains the background image layers (including the background image).</span></div>
-<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;<span class="comment"> */</span></div>
-<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; </div>
-<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <a class="code" href="structvec2.html">vec2</a> *star;</div>
-<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; </div>
-<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <a class="code" href="classTexturec.html">Texturec</a> *bgTex;</div>
-<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; </div>
-<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; Mix_Music *bgmObj;</div>
-<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keywordtype">char</span> *bgm;</div>
-<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; </div>
-<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;<span class="keyword">public</span>:</div>
-<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;</div>
-<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="comment">/*</span></div>
-<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;<span class="comment"> * These pointers keep track of worlds that are adjacent to this one. Used in ui.cpp</span></div>
-<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;<span class="comment"> * for world jumping.</span></div>
-<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;<span class="comment"> */</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;</div>
-<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <a class="code" href="classWorld.html">World</a> *toLeft,</div>
-<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; *toRight,</div>
-<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; *behind,</div>
-<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; *infront;</div>
+<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classWorld.html#a1c1e6ea7fd0d84660d2791a256aba382">deleteEntities</a>(<span class="keywordtype">void</span>);</div>
+<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; </div>
+<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classWorld.html#a432e07fd7f7504aaa6ff29408afe0678"> 108</a></span>&#160; <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classWorld.html#a432e07fd7f7504aaa6ff29408afe0678">lineCount</a>;</div>
+<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; </div>
+<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classWorld.html#a4f8b12f8eda220060ec01c0e9a6b9325"> 114</a></span>&#160; <a class="code" href="structvec2.html">vec2</a> *<a class="code" href="classWorld.html#a4f8b12f8eda220060ec01c0e9a6b9325">star</a>;</div>
+<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; </div>
+<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <a class="code" href="classTexturec.html">Texturec</a> *bgTex;</div>
+<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; </div>
+<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; Mix_Music *bgmObj;</div>
+<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="keywordtype">char</span> *bgm;</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; </div>
-<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="comment">/*</span></div>
-<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="comment"> * Entity arrays.</span></div>
-<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;<span class="comment"> */</span></div>
-<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; </div>
-<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; std::vector&lt;NPC *&gt; npc;</div>
-<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; std::vector&lt;Structures *&gt; build;</div>
-<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; std::vector&lt;Mob *&gt; mob;</div>
-<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; std::vector&lt;Entity *&gt; entity;</div>
-<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; std::vector&lt;Object *&gt; object;</div>
-<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; </div>
-<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keywordtype">void</span> addStructure(_TYPE t,<span class="keywordtype">float</span> x,<span class="keywordtype">float</span> <a class="code" href="world_8h.html#aa4f0d3eebc3c443f9be81bf48561a217">y</a>,<a class="code" href="classWorld.html">World</a> *outside,<a class="code" href="classWorld.html">World</a> *inside);</div>
-<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keywordtype">void</span> addMob(<span class="keywordtype">int</span> t,<span class="keywordtype">float</span> x,<span class="keywordtype">float</span> <a class="code" href="world_8h.html#aa4f0d3eebc3c443f9be81bf48561a217">y</a>);</div>
-<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="keywordtype">void</span> addMob(<span class="keywordtype">int</span> t,<span class="keywordtype">float</span> x,<span class="keywordtype">float</span> <a class="code" href="world_8h.html#aa4f0d3eebc3c443f9be81bf48561a217">y</a>,<span class="keywordtype">void</span> (*hey)(<a class="code" href="classMob.html">Mob</a> *));</div>
-<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keywordtype">void</span> addNPC(<span class="keywordtype">float</span> x,<span class="keywordtype">float</span> y);</div>
-<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keywordtype">void</span> addObject(ITEM_ID, <span class="keywordtype">bool</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">float</span>, <span class="keywordtype">float</span>);</div>
+<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;</div>
+<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="comment">/*</span></div>
+<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<span class="comment"> * These pointers keep track of worlds that are adjacent to this one. Used in ui.cpp</span></div>
+<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;<span class="comment"> * for world jumping.</span></div>
+<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;</div>
+<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <a class="code" href="classWorld.html">World</a> *toLeft,</div>
+<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; *toRight,</div>
+<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; *behind,</div>
+<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; *infront;</div>
+<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; </div>
+<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="comment">/*</span></div>
+<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;<span class="comment"> * Entity arrays.</span></div>
+<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; </div>
-<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="keywordtype">void</span> update(<a class="code" href="classPlayer.html">Player</a> *p,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> delta);</div>
-<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; </div>
-<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="comment">/*</span></div>
-<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;<span class="comment"> * Constructor and deconstructor, these do what you would expect.</span></div>
-<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="comment"> */</span></div>
-<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; </div>
-<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <a class="code" href="classWorld.html">World</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keyword">virtual</span> ~<a class="code" href="classWorld.html">World</a>(<span class="keywordtype">void</span>); <span class="comment">// Frees the &#39;line&#39; array.</span></div>
-<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; </div>
-<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="comment">/*</span></div>
-<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;<span class="comment"> * Generate a world of width `width`. This function is virtual so that other world</span></div>
-<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;<span class="comment"> * classes that are based on this one can generate themselves their own way.</span></div>
-<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; std::vector&lt;NPC *&gt; npc;</div>
+<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; std::vector&lt;Structures *&gt; build;</div>
+<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; std::vector&lt;Mob *&gt; mob;</div>
+<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; std::vector&lt;Entity *&gt; entity;</div>
+<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; std::vector&lt;Object *&gt; object;</div>
+<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; </div>
+<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keywordtype">void</span> addStructure(_TYPE t,<span class="keywordtype">float</span> x,<span class="keywordtype">float</span> <a class="code" href="world_8h.html#aa4f0d3eebc3c443f9be81bf48561a217">y</a>,<a class="code" href="classWorld.html">World</a> *outside,<a class="code" href="classWorld.html">World</a> *inside);</div>
+<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keywordtype">void</span> addMob(<span class="keywordtype">int</span> t,<span class="keywordtype">float</span> x,<span class="keywordtype">float</span> <a class="code" href="world_8h.html#aa4f0d3eebc3c443f9be81bf48561a217">y</a>);</div>
+<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="keywordtype">void</span> addMob(<span class="keywordtype">int</span> t,<span class="keywordtype">float</span> x,<span class="keywordtype">float</span> <a class="code" href="world_8h.html#aa4f0d3eebc3c443f9be81bf48561a217">y</a>,<span class="keywordtype">void</span> (*hey)(<a class="code" href="classMob.html">Mob</a> *));</div>
+<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="keywordtype">void</span> addNPC(<span class="keywordtype">float</span> x,<span class="keywordtype">float</span> y);</div>
+<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keywordtype">void</span> addObject(ITEM_ID, <span class="keywordtype">bool</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">float</span>, <span class="keywordtype">float</span>);</div>
+<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; </div>
+<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keywordtype">void</span> update(<a class="code" href="classPlayer.html">Player</a> *p,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> delta);</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; </div>
-<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> generate(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width);</div>
-<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="keywordtype">void</span> generateFunc(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width,<span class="keywordtype">float</span>(*func)(<span class="keywordtype">float</span>));</div>
-<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; </div>
-<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="comment">/*</span></div>
-<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;<span class="comment"> * Adds images to using for the background.</span></div>
-<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="comment">/*</span></div>
+<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;<span class="comment"> * Constructor and deconstructor, these do what you would expect.</span></div>
+<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; </div>
+<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <a class="code" href="classWorld.html">World</a>(<span class="keywordtype">void</span>);</div>
+<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keyword">virtual</span> ~<a class="code" href="classWorld.html">World</a>(<span class="keywordtype">void</span>); <span class="comment">// Frees the &#39;line&#39; array.</span></div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; </div>
-<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keywordtype">void</span> setBackground(<a class="code" href="world_8h.html#a0678a0e576121a23798fdbd5964143c5">WORLD_BG_TYPE</a> bgt);</div>
-<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; </div>
-<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="comment">/*</span></div>
-<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;<span class="comment"> * Start/stop background music. </span></div>
-<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;<span class="comment"> */</span></div>
-<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; </div>
-<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="keywordtype">void</span> setBGM(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);</div>
-<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="keywordtype">void</span> bgmPlay(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keywordtype">void</span> bgmStop(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; </div>
-<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="comment">/*</span></div>
-<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;<span class="comment"> * Looks for the furthest back layer in this world and adds a new layer of width `width` behind it.</span></div>
-<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="comment">/*</span></div>
+<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;<span class="comment"> * Generate a world of width `width`. This function is virtual so that other world</span></div>
+<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;<span class="comment"> * classes that are based on this one can generate themselves their own way.</span></div>
+<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; </div>
+<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> generate(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width);</div>
+<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="keywordtype">void</span> generateFunc(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width,<span class="keywordtype">float</span>(*func)(<span class="keywordtype">float</span>));</div>
+<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; </div>
+<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="comment">/*</span></div>
+<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;<span class="comment"> * Adds images to using for the background.</span></div>
+<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; </div>
+<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="keywordtype">void</span> setBackground(<a class="code" href="world_8h.html#a0678a0e576121a23798fdbd5964143c5">WORLD_BG_TYPE</a> bgt);</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; </div>
-<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="keywordtype">void</span> addLayer(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width);</div>
-<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; </div>
-<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="comment">/*</span></div>
-<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;<span class="comment"> * Draw the world and entities based on the player&#39;s coordinates. Virtual for the same</span></div>
-<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;<span class="comment"> * reason generate() is.</span></div>
-<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;<span class="comment"> */</span></div>
-<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; </div>
-<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> draw(<a class="code" href="classPlayer.html">Player</a> *p);</div>
-<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; </div>
-<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; </div>
-<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="comment">/*</span></div>
-<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;<span class="comment"> * Detect the player and any entities in the current world.</span></div>
-<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="comment">/*</span></div>
+<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160;<span class="comment"> * Start/stop background music. </span></div>
+<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; </div>
+<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <span class="keywordtype">void</span> setBGM(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);</div>
+<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <span class="keywordtype">void</span> bgmPlay(<span class="keywordtype">void</span>);</div>
+<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keywordtype">void</span> bgmStop(<span class="keywordtype">void</span>);</div>
+<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; </div>
+<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="comment">/*</span></div>
+<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;<span class="comment"> * Looks for the furthest back layer in this world and adds a new layer of width `width` behind it.</span></div>
+<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; </div>
+<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keywordtype">void</span> addLayer(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width);</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; </div>
-<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keywordtype">void</span> detect(<a class="code" href="classPlayer.html">Player</a> *p);</div>
-<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; </div>
-<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; <span class="comment">/*</span></div>
-<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;<span class="comment"> * These functions return the pointer to the world in the direction that is requested if it</span></div>
-<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;<span class="comment"> * exists and the player is in a condition that it can make the switch, otherwise they</span></div>
-<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;<span class="comment"> * return the current world.</span></div>
-<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="comment">/*</span></div>
+<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160;<span class="comment"> * Draw the world and entities based on the player&#39;s coordinates. Virtual for the same</span></div>
+<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;<span class="comment"> * reason generate() is.</span></div>
+<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; </div>
+<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> draw(<a class="code" href="classPlayer.html">Player</a> *p);</div>
+<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; </div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; </div>
-<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <a class="code" href="classWorld.html">World</a> *goWorldLeft(<a class="code" href="classPlayer.html">Player</a> *p);</div>
-<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <a class="code" href="classWorld.html">World</a> *goWorldRight(<a class="code" href="classPlayer.html">Player</a> *p); </div>
-<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; <a class="code" href="classWorld.html">World</a> *goWorldBack(<a class="code" href="classPlayer.html">Player</a> *p);</div>
-<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <a class="code" href="classWorld.html">World</a> *goWorldFront(<a class="code" href="classPlayer.html">Player</a> *p);</div>
-<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; </div>
-<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; <span class="comment">/*</span></div>
-<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160;<span class="comment"> * Called to enter/exit a structure.</span></div>
-<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160;<span class="comment"> */</span></div>
-<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; </div>
-<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; <a class="code" href="classWorld.html">World</a> *goInsideStructure(<a class="code" href="classPlayer.html">Player</a> *p);</div>
-<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; </div>
-<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; <span class="comment">/*</span></div>
-<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160;<span class="comment"> * These functions add features to the world.</span></div>
-<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;<span class="comment"> */</span></div>
-<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; </div>
-<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; <span class="keywordtype">void</span> addHole(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> start,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> end);</div>
+<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <span class="comment">/*</span></div>
+<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160;<span class="comment"> * Detect the player and any entities in the current world.</span></div>
+<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; </div>
+<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; <span class="keywordtype">void</span> detect(<a class="code" href="classPlayer.html">Player</a> *p);</div>
+<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; </div>
+<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="comment">/*</span></div>
+<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160;<span class="comment"> * These functions return the pointer to the world in the direction that is requested if it</span></div>
+<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160;<span class="comment"> * exists and the player is in a condition that it can make the switch, otherwise they</span></div>
+<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160;<span class="comment"> * return the current world.</span></div>
+<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; </div>
+<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; <a class="code" href="classWorld.html">World</a> *goWorldLeft(<a class="code" href="classPlayer.html">Player</a> *p);</div>
+<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; <a class="code" href="classWorld.html">World</a> *goWorldRight(<a class="code" href="classPlayer.html">Player</a> *p); </div>
+<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; <a class="code" href="classWorld.html">World</a> *goWorldBack(<a class="code" href="classPlayer.html">Player</a> *p);</div>
+<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; <a class="code" href="classWorld.html">World</a> *goWorldFront(<a class="code" href="classPlayer.html">Player</a> *p);</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; </div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; <span class="comment">/*</span></div>
-<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160;<span class="comment"> * Get&#39;s the world&#39;s width.</span></div>
+<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160;<span class="comment"> * Called to enter/exit a structure.</span></div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; </div>
-<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; <span class="keywordtype">int</span> getTheWidth(<span class="keywordtype">void</span>);</div>
+<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; <a class="code" href="classWorld.html">World</a> *goInsideStructure(<a class="code" href="classPlayer.html">Player</a> *p);</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; </div>
-<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; <span class="keywordtype">void</span> save(FILE *);</div>
-<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; <span class="keywordtype">void</span> load(FILE *);</div>
-<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160;};</div>
-<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160;</div>
-<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160;<span class="comment">/*</span></div>
-<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160;<span class="comment"> * Gets a good base y value for background rendering.</span></div>
-<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160;<span class="comment">*/</span></div>
-<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160;</div>
-<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160;<span class="keywordtype">float</span> worldGetYBase(<a class="code" href="classWorld.html">World</a> *w);</div>
-<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160;</div>
-<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160;<span class="comment">/*</span></div>
-<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160;<span class="comment"> * IndoorWorld - Indoor settings stored in a World class ;)</span></div>
-<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160;<span class="comment"> */</span></div>
-<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; </div>
-<div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="classIndoorWorld.html"> 231</a></span>&#160;<span class="keyword">class </span><a class="code" href="classIndoorWorld.html">IndoorWorld</a> : <span class="keyword">public</span> <a class="code" href="classWorld.html">World</a> {</div>
-<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160;<span class="keyword">public</span>:</div>
-<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; <a class="code" href="classWorld.html">World</a> *outside;</div>
-<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; <a class="code" href="classIndoorWorld.html">IndoorWorld</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; ~<a class="code" href="classIndoorWorld.html">IndoorWorld</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; </div>
-<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; <span class="keywordtype">void</span> generate(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width); <span class="comment">// Generates a flat world of width &#39;width&#39;</span></div>
-<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; <span class="keywordtype">void</span> draw(<a class="code" href="classPlayer.html">Player</a> *p); <span class="comment">// Draws the world (ignores layers)</span></div>
-<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160;};</div>
-<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160;</div>
-<div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="classArena.html"> 241</a></span>&#160;<span class="keyword">class </span><a class="code" href="classArena.html">Arena</a> : <span class="keyword">public</span> <a class="code" href="classWorld.html">World</a> {</div>
-<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160;<span class="keyword">private</span>:</div>
-<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; <a class="code" href="structvec2.html">vec2</a> pxy;</div>
-<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; <a class="code" href="structvec2.html">vec2</a> door;</div>
-<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; <a class="code" href="classWorld.html">World</a> *exit;</div>
-<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160;<span class="keyword">public</span>:</div>
-<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160; <a class="code" href="classArena.html">Arena</a>(<a class="code" href="classWorld.html">World</a> *leave,<a class="code" href="classPlayer.html">Player</a> *p);</div>
-<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; ~<a class="code" href="classArena.html">Arena</a>(<span class="keywordtype">void</span>);</div>
-<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; <a class="code" href="classWorld.html">World</a> *exitArena(<a class="code" href="classPlayer.html">Player</a> *p);</div>
-<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160;};</div>
-<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160;</div>
-<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">int</span> worldShade;</div>
-<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160;</div>
-<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160;<span class="preprocessor">#endif // WORLD_H</span></div>
+<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; <span class="comment">/*</span></div>
+<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160;<span class="comment"> * These functions add features to the world.</span></div>
+<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; </div>
+<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <span class="keywordtype">void</span> addHole(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> start,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> end);</div>
+<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; </div>
+<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; <span class="comment">/*</span></div>
+<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160;<span class="comment"> * Get&#39;s the world&#39;s width.</span></div>
+<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; </div>
+<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; <span class="keywordtype">int</span> getTheWidth(<span class="keywordtype">void</span>);</div>
+<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; </div>
+<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; <span class="keywordtype">void</span> save(FILE *);</div>
+<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; <span class="keywordtype">void</span> load(FILE *);</div>
+<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160;};</div>
+<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160;</div>
+<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160;<span class="comment">/*</span></div>
+<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160;<span class="comment"> * Gets a good base y value for background rendering.</span></div>
+<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160;<span class="comment">*/</span></div>
+<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160;</div>
+<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160;<span class="keywordtype">float</span> worldGetYBase(<a class="code" href="classWorld.html">World</a> *w);</div>
+<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160;</div>
+<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160;<span class="comment">/*</span></div>
+<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160;<span class="comment"> * IndoorWorld - Indoor settings stored in a World class ;)</span></div>
+<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160;<span class="comment"> */</span></div>
+<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160; </div>
+<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="classIndoorWorld.html"> 243</a></span>&#160;<span class="keyword">class </span><a class="code" href="classIndoorWorld.html">IndoorWorld</a> : <span class="keyword">public</span> <a class="code" href="classWorld.html">World</a> {</div>
+<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; <a class="code" href="classWorld.html">World</a> *outside;</div>
+<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160; <a class="code" href="classIndoorWorld.html">IndoorWorld</a>(<span class="keywordtype">void</span>);</div>
+<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160; ~<a class="code" href="classIndoorWorld.html">IndoorWorld</a>(<span class="keywordtype">void</span>);</div>
+<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; </div>
+<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; <span class="keywordtype">void</span> generate(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width); <span class="comment">// Generates a flat world of width &#39;width&#39;</span></div>
+<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; <span class="keywordtype">void</span> draw(<a class="code" href="classPlayer.html">Player</a> *p); <span class="comment">// Draws the world (ignores layers)</span></div>
+<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160;};</div>
+<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160;</div>
+<div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="classArena.html"> 253</a></span>&#160;<span class="keyword">class </span><a class="code" href="classArena.html">Arena</a> : <span class="keyword">public</span> <a class="code" href="classWorld.html">World</a> {</div>
+<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; <a class="code" href="structvec2.html">vec2</a> pxy;</div>
+<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; <a class="code" href="structvec2.html">vec2</a> door;</div>
+<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; <a class="code" href="classWorld.html">World</a> *exit;</div>
+<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; <a class="code" href="classArena.html">Arena</a>(<a class="code" href="classWorld.html">World</a> *leave,<a class="code" href="classPlayer.html">Player</a> *p);</div>
+<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; ~<a class="code" href="classArena.html">Arena</a>(<span class="keywordtype">void</span>);</div>
+<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; <a class="code" href="classWorld.html">World</a> *exitArena(<a class="code" href="classPlayer.html">Player</a> *p);</div>
+<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160;};</div>
+<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160;</div>
+<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">int</span> worldShade;</div>
+<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160;</div>
+<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160;<span class="preprocessor">#endif // WORLD_H</span></div>
<div class="ttc" id="structline__t_html"><div class="ttname"><a href="structline__t.html">line_t</a></div><div class="ttdef"><b>Definition:</b> world.h:50</div></div>
<div class="ttc" id="world_8h_html_a7e5783b78992864281462a5380a28924a970420c889e8f3dfb76298adc94c98f0"><div class="ttname"><a href="world_8h.html#a7e5783b78992864281462a5380a28924a970420c889e8f3dfb76298adc94c98f0">SUNNY</a></div><div class="ttdef"><b>Definition:</b> world.h:39</div></div>
<div class="ttc" id="world_8h_html_a0678a0e576121a23798fdbd5964143c5ae678da5bb217c4bb81b5ac0de53ad9cb"><div class="ttname"><a href="world_8h.html#a0678a0e576121a23798fdbd5964143c5ae678da5bb217c4bb81b5ac0de53ad9cb">BG_WOODHOUSE</a></div><div class="ttdef"><b>Definition:</b> world.h:29</div></div>
@@ -306,28 +294,32 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
<div class="ttc" id="classMob_html"><div class="ttname"><a href="classMob.html">Mob</a></div><div class="ttdef"><b>Definition:</b> entities.h:127</div></div>
<div class="ttc" id="structvec2_html"><div class="ttname"><a href="structvec2.html">vec2</a></div><div class="ttdef"><b>Definition:</b> common.h:46</div></div>
<div class="ttc" id="world_8h_html_a7e5783b78992864281462a5380a28924"><div class="ttname"><a href="world_8h.html#a7e5783b78992864281462a5380a28924">WEATHER</a></div><div class="ttdeci">WEATHER</div><div class="ttdef"><b>Definition:</b> world.h:38</div></div>
+<div class="ttc" id="classWorld_html_a1c1e6ea7fd0d84660d2791a256aba382"><div class="ttname"><a href="classWorld.html#a1c1e6ea7fd0d84660d2791a256aba382">World::deleteEntities</a></div><div class="ttdeci">void deleteEntities(void)</div><div class="ttdef"><b>Definition:</b> world.cpp:87</div></div>
<div class="ttc" id="classTexturec_html"><div class="ttname"><a href="classTexturec.html">Texturec</a></div><div class="ttdef"><b>Definition:</b> Texture.h:12</div></div>
<div class="ttc" id="world_8h_html_a7e5783b78992864281462a5380a28924a5b1b71f2b77a08a17c728a6f854a7bfe"><div class="ttname"><a href="world_8h.html#a7e5783b78992864281462a5380a28924a5b1b71f2b77a08a17c728a6f854a7bfe">RAIN</a></div><div class="ttdef"><b>Definition:</b> world.h:41</div></div>
<div class="ttc" id="structline__t_html_a77fb44a40c2154411e5af6cf39194b30"><div class="ttname"><a href="structline__t.html#a77fb44a40c2154411e5af6cf39194b30">line_t::y</a></div><div class="ttdeci">float y</div><div class="ttdef"><b>Definition:</b> world.h:51</div></div>
<div class="ttc" id="classWorld_html_afd9945f6ede5eabc3ff9243ce2b31247"><div class="ttname"><a href="classWorld.html#afd9945f6ede5eabc3ff9243ce2b31247">World::line</a></div><div class="ttdeci">struct line_t * line</div><div class="ttdef"><b>Definition:</b> world.h:70</div></div>
-<div class="ttc" id="classArena_html"><div class="ttname"><a href="classArena.html">Arena</a></div><div class="ttdef"><b>Definition:</b> world.h:241</div></div>
+<div class="ttc" id="classWorld_html_a0af69654347b29787877b77020fa0a5a"><div class="ttname"><a href="classWorld.html#a0af69654347b29787877b77020fa0a5a">World::singleDetect</a></div><div class="ttdeci">void singleDetect(Entity *e)</div><div class="ttdef"><b>Definition:</b> world.cpp:660</div></div>
+<div class="ttc" id="classArena_html"><div class="ttname"><a href="classArena.html">Arena</a></div><div class="ttdef"><b>Definition:</b> world.h:253</div></div>
<div class="ttc" id="classEntity_html"><div class="ttname"><a href="classEntity.html">Entity</a></div><div class="ttdef"><b>Definition:</b> entities.h:37</div></div>
<div class="ttc" id="structline__t_html_a90c59d30a06d5c4bd7ee6c73c66fc414"><div class="ttname"><a href="structline__t.html#a90c59d30a06d5c4bd7ee6c73c66fc414">line_t::color</a></div><div class="ttdeci">unsigned char color</div><div class="ttdef"><b>Definition:</b> world.h:54</div></div>
<div class="ttc" id="world_8h_html_aa4f0d3eebc3c443f9be81bf48561a217"><div class="ttname"><a href="world_8h.html#aa4f0d3eebc3c443f9be81bf48561a217">y</a></div><div class="ttdeci">float y</div><div class="ttdef"><b>Definition:</b> world.h:88</div></div>
<div class="ttc" id="structline__t_html_a43341c3344f32533472fdd85c7e9e430"><div class="ttname"><a href="structline__t.html#a43341c3344f32533472fdd85c7e9e430">line_t::gh</a></div><div class="ttdeci">float gh[2]</div><div class="ttdef"><b>Definition:</b> world.h:53</div></div>
+<div class="ttc" id="classWorld_html_a4f8b12f8eda220060ec01c0e9a6b9325"><div class="ttname"><a href="classWorld.html#a4f8b12f8eda220060ec01c0e9a6b9325">World::star</a></div><div class="ttdeci">vec2 * star</div><div class="ttdef"><b>Definition:</b> world.h:114</div></div>
<div class="ttc" id="classWorld_html_a645767ccf316a9b4469db773ac111ae4"><div class="ttname"><a href="classWorld.html#a645767ccf316a9b4469db773ac111ae4">World::x_start</a></div><div class="ttdeci">int x_start</div><div class="ttdef"><b>Definition:</b> world.h:78</div></div>
<div class="ttc" id="structline__t_html_a06568d82429331a242b9e6f45a36ae6d"><div class="ttname"><a href="structline__t.html#a06568d82429331a242b9e6f45a36ae6d">line_t::gs</a></div><div class="ttdeci">bool gs</div><div class="ttdef"><b>Definition:</b> world.h:52</div></div>
+<div class="ttc" id="classWorld_html_a432e07fd7f7504aaa6ff29408afe0678"><div class="ttname"><a href="classWorld.html#a432e07fd7f7504aaa6ff29408afe0678">World::lineCount</a></div><div class="ttdeci">unsigned int lineCount</div><div class="ttdef"><b>Definition:</b> world.h:108</div></div>
<div class="ttc" id="classPlayer_html"><div class="ttname"><a href="classPlayer.html">Player</a></div><div class="ttdef"><b>Definition:</b> entities.h:94</div></div>
<div class="ttc" id="world_8h_html_a0678a0e576121a23798fdbd5964143c5"><div class="ttname"><a href="world_8h.html#a0678a0e576121a23798fdbd5964143c5">WORLD_BG_TYPE</a></div><div class="ttdeci">WORLD_BG_TYPE</div><div class="ttdef"><b>Definition:</b> world.h:27</div></div>
<div class="ttc" id="world_8h_html_a7e5783b78992864281462a5380a28924a5564de0baf1f25257db17367eba68edd"><div class="ttname"><a href="world_8h.html#a7e5783b78992864281462a5380a28924a5564de0baf1f25257db17367eba68edd">DARK</a></div><div class="ttdef"><b>Definition:</b> world.h:40</div></div>
-<div class="ttc" id="classIndoorWorld_html"><div class="ttname"><a href="classIndoorWorld.html">IndoorWorld</a></div><div class="ttdef"><b>Definition:</b> world.h:231</div></div>
+<div class="ttc" id="classIndoorWorld_html"><div class="ttname"><a href="classIndoorWorld.html">IndoorWorld</a></div><div class="ttdef"><b>Definition:</b> world.h:243</div></div>
<div class="ttc" id="world_8h_html_a0678a0e576121a23798fdbd5964143c5a53c9e606f96cd2e762bac6c048d2dddb"><div class="ttname"><a href="world_8h.html#a0678a0e576121a23798fdbd5964143c5a53c9e606f96cd2e762bac6c048d2dddb">BG_FOREST</a></div><div class="ttdef"><b>Definition:</b> world.h:28</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
-</a> 1.8.10
+</a> 1.8.9.1
</small></address>
</body>
</html>