summaryrefslogtreecommitdiff
path: root/docs/html/_info_panel_8cpp_source.html
blob: 59e5a49146b6e1864f06e3814a43553987c7cd09 (plain)
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!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"/>
<title>Rally X: source/presentation/InfoPanel.cpp Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="car.PNG"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Rally X
   
   </div>
   <div id="projectbrief">ELEN3009 Project by Justin Wernick and David Schneider</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">source/presentation/InfoPanel.cpp</div>  </div>
</div>
<div class="contents">
<a href="_info_panel_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include &quot;<a class="code" href="_info_panel_8h.html">InfoPanel.h</a>&quot;</span>
<a name="l00002"></a>00002 
<a name="l00003"></a><a class="code" href="class_info_panel.html#a5a3d0afb5ebd764de04484b1817912b6">00003</a> <a class="code" href="class_info_panel.html#a5a3d0afb5ebd764de04484b1817912b6" title="Creates an InfoPanel from the given back and front buffers.">InfoPanel::InfoPanel</a>(ALLEGRO_BITMAP* back, ALLEGRO_BITMAP* front, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height)
<a name="l00004"></a>00004     :<a class="code" href="class_screen_panel.html" title="Parent class for panels that are drawn on the screen.">ScreenPanel</a>(back, front, x, y, width, height),
<a name="l00005"></a>00005     _petrolHeadingY(_width/10),
<a name="l00006"></a>00006     _petrolGuageY(_petrolHeadingY + _width/10),
<a name="l00007"></a>00007     _petrolGuageHeight(_width/10),
<a name="l00008"></a>00008     _checkpointHeadingY(_petrolGuageY + _petrolGuageHeight + _width/10),
<a name="l00009"></a>00009     _checkpointValueY(_checkpointHeadingY + _width/10),
<a name="l00010"></a>00010     _miniMazeY(_checkpointValueY + _width/5),
<a name="l00011"></a>00011     _miniMazeHeight(_height - _miniMazeY),
<a name="l00012"></a>00012     _miniMazeblockWidth(0)
<a name="l00013"></a>00013 {
<a name="l00014"></a>00014     <a class="code" href="class_info_panel.html#a38d023a2b00eafa303de37550cb96817" title="The font being used to write the headings and number of checkpoints remaining.">_panelFont</a> = al_load_font(<span class="stringliteral">&quot;junction 02.ttf&quot;</span>, <a class="code" href="class_screen_panel.html#afbbcad2a101b95869dcdef9bf0898f65" title="The width of the sub-bitmaps being drawn to in pixels.">_width</a>/10, 0);
<a name="l00015"></a>00015     <span class="keywordflow">if</span> (<a class="code" href="class_info_panel.html#a38d023a2b00eafa303de37550cb96817" title="The font being used to write the headings and number of checkpoints remaining.">_panelFont</a> == NULL)
<a name="l00016"></a>00016     {
<a name="l00017"></a>00017         al_show_native_message_box(NULL, <span class="stringliteral">&quot;Fatal error&quot;</span>, <span class="stringliteral">&quot;Fatal error&quot;</span>, <span class="stringliteral">&quot;The file &#39;junction 02.ttf&#39; was not found. Ensure that it is located in the working directory.&quot;</span>, NULL, ALLEGRO_MESSAGEBOX_ERROR);
<a name="l00018"></a>00018         <span class="keywordflow">throw</span> <a class="code" href="class_install_failure.html" title="Exception to be thrown if any component of Allegro fails to install at runtime.">InstallFailure</a>();
<a name="l00019"></a>00019     }
<a name="l00020"></a>00020 }
<a name="l00021"></a>00021 
<a name="l00022"></a><a class="code" href="class_info_panel.html#a052da279d4bf0405ae3735f24cc2e2a2">00022</a> <a class="code" href="class_info_panel.html#a052da279d4bf0405ae3735f24cc2e2a2" title="Destructor that ensured that the font created is destroyed.">InfoPanel::~InfoPanel</a>()
<a name="l00023"></a>00023 {
<a name="l00024"></a>00024     al_destroy_font(<a class="code" href="class_info_panel.html#a38d023a2b00eafa303de37550cb96817" title="The font being used to write the headings and number of checkpoints remaining.">_panelFont</a>);
<a name="l00025"></a>00025 }
<a name="l00026"></a>00026 
<a name="l00027"></a><a class="code" href="class_info_panel.html#aa9628c14e08ac6573e0191d9d4afa227">00027</a> <span class="keywordtype">void</span> <a class="code" href="class_info_panel.html#aa9628c14e08ac6573e0191d9d4afa227" title="Draws the InfoPanel using the given objects.">InfoPanel::draw</a>(<span class="keyword">const</span> <a class="code" href="class_maze.html" title="A rectangular 2D boolean array, representing where cars can drive and where they cannot.">Maze</a>&amp; maze, <span class="keyword">const</span> list&lt;PlayerCar&gt;&amp; players, <span class="keyword">const</span> list&lt;EnemyCar&gt;&amp; enemies, <span class="keyword">const</span> list&lt;Checkpoint&gt;&amp; checkpoints, <span class="keyword">const</span> list&lt;Rock&gt;&amp; rocks, <span class="keyword">const</span> list&lt;Smokescreen&gt;&amp; smokescreens, <span class="keyword">const</span> list&lt;DestroyedObjectPopup&gt;&amp; popups)
<a name="l00028"></a>00028 {
<a name="l00029"></a>00029     ALLEGRO_BITMAP* prev_draw = al_get_target_bitmap();
<a name="l00030"></a>00030     al_set_target_bitmap(<a class="code" href="class_screen_panel.html#a1a3ec8e60be5d5cede210171bda33468" title="The back buffer. Only the back buffer can be drawn to.">_back</a>);
<a name="l00031"></a>00031 
<a name="l00032"></a>00032     <span class="keywordtype">double</span> petrol = 0;
<a name="l00033"></a>00033     <span class="keywordflow">if</span> (!players.empty())
<a name="l00034"></a>00034     {
<a name="l00035"></a>00035         petrol = players.front().petrol();
<a name="l00036"></a>00036     }
<a name="l00037"></a>00037 
<a name="l00038"></a>00038     al_clear_to_color(<a class="code" href="class_info_panel.html#a27ac079ed1a39ae672b6ceb9e0974855" title="Caches colours for drawing.">_colourStore</a>.<a class="code" href="class_colour_store.html#ac8474c4e9b335215f03ec2c749847ad2" title="Returns the colour associated with a given image.">getColour</a>(<a class="code" href="class_bitmap_store.html#af3bc66181673def9d0a590cd13c7e386a4e2a075dff2c02bf40b134c9090d1f02">BitmapStore::MAZE_FLOOR</a>));
<a name="l00039"></a>00039 
<a name="l00040"></a>00040     <span class="comment">//gets a mazeblock width the fits the current maze</span>
<a name="l00041"></a>00041     <a class="code" href="class_info_panel.html#abb211fac23293e41f23b86fd70df98f0" title="The width of each Maze block being drawn.">_miniMazeblockWidth</a> = min(static_cast&lt;float&gt;(<a class="code" href="class_screen_panel.html#afbbcad2a101b95869dcdef9bf0898f65" title="The width of the sub-bitmaps being drawn to in pixels.">_width</a>)/maze.<a class="code" href="class_maze.html#a6963ffbb8e10f5ca72ddc749b3f29419" title="Provides access to the width of the Maze object.">width</a>(), <span class="keyword">static_cast&lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span>(<a class="code" href="class_info_panel.html#ad38206daa42c82b45878e6d0c55f2860" title="The height of the Maze.">_miniMazeHeight</a>)/maze.<a class="code" href="class_maze.html#a53de30abea69713225ab77703e753d81" title="Provides access to the height of the Maze object.">height</a>());
<a name="l00042"></a>00042 
<a name="l00043"></a>00043     <span class="comment">//draws petrol heading and bar</span>
<a name="l00044"></a>00044     al_draw_text(<a class="code" href="class_info_panel.html#a38d023a2b00eafa303de37550cb96817" title="The font being used to write the headings and number of checkpoints remaining.">_panelFont</a>, al_map_rgb(255,255,255), 1, <a class="code" href="class_info_panel.html#a5ab76703538ad6e396a21ea8fb47d23d" title="The y coordinate of the heading for the petrol guage.">_petrolHeadingY</a>, ALLEGRO_ALIGN_LEFT , <span class="stringliteral">&quot;Petrol&quot;</span>);
<a name="l00045"></a>00045     al_draw_filled_rectangle(0,<a class="code" href="class_info_panel.html#a29976100c8fc5c130be713dfb5c2807e" title="The y coordinate of top of the petrol guage.">_petrolGuageY</a>,<a class="code" href="class_screen_panel.html#afbbcad2a101b95869dcdef9bf0898f65" title="The width of the sub-bitmaps being drawn to in pixels.">_width</a>*petrol, <a class="code" href="class_info_panel.html#a29976100c8fc5c130be713dfb5c2807e" title="The y coordinate of top of the petrol guage.">_petrolGuageY</a>+<a class="code" href="class_info_panel.html#a0c85348f8471d86da73772f86a62f84c" title="The height of the rectangle that is the petrol guage.">_petrolGuageHeight</a>, al_map_rgb(255,128,0));
<a name="l00046"></a>00046 
<a name="l00047"></a>00047     <span class="comment">//draws checkpoints remaining heading and value</span>
<a name="l00048"></a>00048     al_draw_text(<a class="code" href="class_info_panel.html#a38d023a2b00eafa303de37550cb96817" title="The font being used to write the headings and number of checkpoints remaining.">_panelFont</a>, al_map_rgb(255,255,255), 1, <a class="code" href="class_info_panel.html#a7ec514286dbf2fb43f64acd620397e21" title="The y coordinate of the heading for the number of remaining checkpoints.">_checkpointHeadingY</a>, ALLEGRO_ALIGN_LEFT , <span class="stringliteral">&quot;Checkpoints&quot;</span>);
<a name="l00049"></a>00049     stringstream checkpointCountString;
<a name="l00050"></a>00050     checkpointCountString &lt;&lt; <a class="code" href="class_checkpoint.html#a872d8574b6f0a7960854fb1175e05f13" title="Function for accessing the number of checkpoints that currently exist.">Checkpoint::checkpointCount</a>();
<a name="l00051"></a>00051     al_draw_text(<a class="code" href="class_info_panel.html#a38d023a2b00eafa303de37550cb96817" title="The font being used to write the headings and number of checkpoints remaining.">_panelFont</a>, al_map_rgb(255,255,255), 1, <a class="code" href="class_info_panel.html#ad118b5f123e590a95b3f390fd9597f02" title="The y coordinate of the text stating the number of remaining checkpoints.">_checkpointValueY</a>, ALLEGRO_ALIGN_LEFT , checkpointCountString.str().c_str());
<a name="l00052"></a>00052 
<a name="l00053"></a>00053     <a class="code" href="class_info_panel.html#aa9628c14e08ac6573e0191d9d4afa227" title="Draws the InfoPanel using the given objects.">draw</a>(maze);
<a name="l00054"></a>00054     <span class="keywordflow">for</span> (list&lt;PlayerCar&gt;::const_iterator iter = players.begin(); iter != players.end(); ++iter)
<a name="l00055"></a>00055     {
<a name="l00056"></a>00056         <a class="code" href="class_info_panel.html#aa9628c14e08ac6573e0191d9d4afa227" title="Draws the InfoPanel using the given objects.">draw</a>(*iter);
<a name="l00057"></a>00057     }
<a name="l00058"></a>00058     <span class="keywordflow">for</span> (list&lt;EnemyCar&gt;::const_iterator iter = enemies.begin(); iter != enemies.end(); ++iter)
<a name="l00059"></a>00059     {
<a name="l00060"></a>00060         <a class="code" href="class_info_panel.html#aa9628c14e08ac6573e0191d9d4afa227" title="Draws the InfoPanel using the given objects.">draw</a>(*iter);
<a name="l00061"></a>00061     }
<a name="l00062"></a>00062     <span class="keywordflow">for</span> (list&lt;Checkpoint&gt;::const_iterator iter = checkpoints.begin(); iter != checkpoints.end(); ++iter)
<a name="l00063"></a>00063     {
<a name="l00064"></a>00064         <a class="code" href="class_info_panel.html#aa9628c14e08ac6573e0191d9d4afa227" title="Draws the InfoPanel using the given objects.">draw</a>(*iter);
<a name="l00065"></a>00065     }
<a name="l00066"></a>00066 
<a name="l00067"></a>00067     <span class="comment">//restore draw target</span>
<a name="l00068"></a>00068     al_set_target_bitmap(prev_draw);
<a name="l00069"></a>00069 }
<a name="l00070"></a>00070 
<a name="l00071"></a><a class="code" href="class_info_panel.html#a23a025859397c3e28bbe9dce26563d7c">00071</a> <span class="keywordtype">void</span> <a class="code" href="class_info_panel.html#aa9628c14e08ac6573e0191d9d4afa227" title="Draws the InfoPanel using the given objects.">InfoPanel::draw</a>(<span class="keyword">const</span> <a class="code" href="class_maze.html" title="A rectangular 2D boolean array, representing where cars can drive and where they cannot.">Maze</a>&amp; maze)
<a name="l00072"></a>00072 {
<a name="l00073"></a>00073     ALLEGRO_COLOR wallColour = <a class="code" href="class_info_panel.html#a27ac079ed1a39ae672b6ceb9e0974855" title="Caches colours for drawing.">_colourStore</a>.<a class="code" href="class_colour_store.html#ac8474c4e9b335215f03ec2c749847ad2" title="Returns the colour associated with a given image.">getColour</a>(<a class="code" href="class_bitmap_store.html#af3bc66181673def9d0a590cd13c7e386ae662e77b349a8e22c5826ef35b1b5d9a">BitmapStore::MAZE_WALL</a>);
<a name="l00074"></a>00074     ALLEGRO_COLOR floorColour = <a class="code" href="class_info_panel.html#a27ac079ed1a39ae672b6ceb9e0974855" title="Caches colours for drawing.">_colourStore</a>.<a class="code" href="class_colour_store.html#ac8474c4e9b335215f03ec2c749847ad2" title="Returns the colour associated with a given image.">getColour</a>(<a class="code" href="class_bitmap_store.html#af3bc66181673def9d0a590cd13c7e386a4e2a075dff2c02bf40b134c9090d1f02">BitmapStore::MAZE_FLOOR</a>);
<a name="l00075"></a>00075 
<a name="l00076"></a>00076     <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x=0; x&lt;maze.<a class="code" href="class_maze.html#a6963ffbb8e10f5ca72ddc749b3f29419" title="Provides access to the width of the Maze object.">width</a>(); ++x)
<a name="l00077"></a>00077     {
<a name="l00078"></a>00078         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y=0; y&lt;maze.<a class="code" href="class_maze.html#a53de30abea69713225ab77703e753d81" title="Provides access to the height of the Maze object.">height</a>(); ++y)
<a name="l00079"></a>00079         {
<a name="l00080"></a>00080             <span class="keywordtype">float</span> x1 = <a class="code" href="class_info_panel.html#a0accb88b099f412cc3baa7d2bf4690aa" title="Converts an x game coordinate value to its equivalent in pixels.">getPanelX</a>(x);
<a name="l00081"></a>00081             <span class="keywordtype">float</span> x2 = x1 + <a class="code" href="class_info_panel.html#abb211fac23293e41f23b86fd70df98f0" title="The width of each Maze block being drawn.">_miniMazeblockWidth</a>;
<a name="l00082"></a>00082             <span class="keywordtype">float</span> y1 = <a class="code" href="class_info_panel.html#ad962eab814441375a8634b67d743d7e6" title="Converts a y game coordinate value to its equivalent in pixels.">getPanelY</a>(y) + <a class="code" href="class_info_panel.html#a7b4bb6cca8549d6a1d1deccc99994b9b" title="The y coordinate of the top of the Maze.">_miniMazeY</a>;
<a name="l00083"></a>00083             <span class="keywordtype">float</span> y2 = y1 + <a class="code" href="class_info_panel.html#abb211fac23293e41f23b86fd70df98f0" title="The width of each Maze block being drawn.">_miniMazeblockWidth</a>;
<a name="l00084"></a>00084             <span class="keywordflow">if</span> (maze.<a class="code" href="class_maze.html#a1bbdfece82c4ba90ffcf2fea52e5fef1" title="Checks if a given position contains a wall or not.">getSolid</a>(x,y))
<a name="l00085"></a>00085             {
<a name="l00086"></a>00086                 al_draw_filled_rectangle(x1, y1, x2, y2, wallColour);
<a name="l00087"></a>00087             }
<a name="l00088"></a>00088             <span class="keywordflow">else</span>
<a name="l00089"></a>00089             {
<a name="l00090"></a>00090                 al_draw_filled_rectangle(x1, y1, x2, y2, floorColour);
<a name="l00091"></a>00091             }
<a name="l00092"></a>00092         }
<a name="l00093"></a>00093     }
<a name="l00094"></a>00094 }
<a name="l00095"></a>00095 
<a name="l00096"></a><a class="code" href="class_info_panel.html#abc82d5365a89b3e374dbbdda86b77703">00096</a> <span class="keywordtype">void</span> <a class="code" href="class_info_panel.html#aa9628c14e08ac6573e0191d9d4afa227" title="Draws the InfoPanel using the given objects.">InfoPanel::draw</a>(<span class="keyword">const</span> <a class="code" href="class_game_object.html" title="Parent class for objects that are placed in the maze.">GameObject</a>&amp; <span class="keywordtype">object</span>)
<a name="l00097"></a>00097 {
<a name="l00098"></a>00098     <span class="keywordtype">float</span> r = <a class="code" href="class_info_panel.html#abb211fac23293e41f23b86fd70df98f0" title="The width of each Maze block being drawn.">_miniMazeblockWidth</a>/2;
<a name="l00099"></a>00099     <span class="keywordtype">float</span> cx = <a class="code" href="class_info_panel.html#a0accb88b099f412cc3baa7d2bf4690aa" title="Converts an x game coordinate value to its equivalent in pixels.">getPanelX</a>(<span class="keywordtype">object</span>.x()) + r;
<a name="l00100"></a>00100     <span class="keywordtype">float</span> cy = <a class="code" href="class_info_panel.html#ad962eab814441375a8634b67d743d7e6" title="Converts a y game coordinate value to its equivalent in pixels.">getPanelY</a>(<span class="keywordtype">object</span>.y()) + <a class="code" href="class_info_panel.html#a7b4bb6cca8549d6a1d1deccc99994b9b" title="The y coordinate of the top of the Maze.">_miniMazeY</a> + r;
<a name="l00101"></a>00101     al_draw_filled_circle(cx, cy, r, <a class="code" href="class_info_panel.html#a27ac079ed1a39ae672b6ceb9e0974855" title="Caches colours for drawing.">_colourStore</a>.<a class="code" href="class_colour_store.html#ac8474c4e9b335215f03ec2c749847ad2" title="Returns the colour associated with a given image.">getColour</a>(<span class="keywordtype">object</span>.image()));
<a name="l00102"></a>00102 }
<a name="l00103"></a>00103 
<a name="l00104"></a><a class="code" href="class_info_panel.html#a0accb88b099f412cc3baa7d2bf4690aa">00104</a> <span class="keywordtype">float</span> <a class="code" href="class_info_panel.html#a0accb88b099f412cc3baa7d2bf4690aa" title="Converts an x game coordinate value to its equivalent in pixels.">InfoPanel::getPanelX</a>(<span class="keyword">const</span> <span class="keywordtype">double</span>&amp; x)<span class="keyword"> const</span>
<a name="l00105"></a>00105 <span class="keyword"></span>{
<a name="l00106"></a>00106     <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span>(x*<a class="code" href="class_info_panel.html#abb211fac23293e41f23b86fd70df98f0" title="The width of each Maze block being drawn.">_miniMazeblockWidth</a>);
<a name="l00107"></a>00107 }
<a name="l00108"></a><a class="code" href="class_info_panel.html#ad962eab814441375a8634b67d743d7e6">00108</a> <span class="keywordtype">float</span> <a class="code" href="class_info_panel.html#ad962eab814441375a8634b67d743d7e6" title="Converts a y game coordinate value to its equivalent in pixels.">InfoPanel::getPanelY</a>(<span class="keyword">const</span> <span class="keywordtype">double</span>&amp; y)<span class="keyword"> const</span>
<a name="l00109"></a>00109 <span class="keyword"></span>{
<a name="l00110"></a>00110     <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span>(y*<a class="code" href="class_info_panel.html#abb211fac23293e41f23b86fd70df98f0" title="The width of each Maze block being drawn.">_miniMazeblockWidth</a>);
<a name="l00111"></a>00111 }
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></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>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Oct 5 2011 20:08:31 for Rally X by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>