summaryrefslogtreecommitdiff
path: root/docs/html/_bitmap_store_8cpp_source.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/html/_bitmap_store_8cpp_source.html')
-rw-r--r--docs/html/_bitmap_store_8cpp_source.html345
1 files changed, 345 insertions, 0 deletions
diff --git a/docs/html/_bitmap_store_8cpp_source.html b/docs/html/_bitmap_store_8cpp_source.html
new file mode 100644
index 0000000..0f739cf
--- /dev/null
+++ b/docs/html/_bitmap_store_8cpp_source.html
@@ -0,0 +1,345 @@
+<!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/BitmapStore.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/BitmapStore.cpp</div> </div>
+</div>
+<div class="contents">
+<a href="_bitmap_store_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="_bitmap_store_8h.html">BitmapStore.h</a>&quot;</span>
+<a name="l00002"></a>00002
+<a name="l00003"></a><a class="code" href="class_bitmap_store.html#abca96ce53be18eb07150745871a3165c">00003</a> <a class="code" href="class_bitmap_store.html#abca96ce53be18eb07150745871a3165c" title="Constructor for creating a BitmapStore with a set image size.">BitmapStore::BitmapStore</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> blockWidth)
+<a name="l00004"></a>00004 :_blockWidth(blockWidth)
+<a name="l00005"></a>00005 {
+<a name="l00006"></a>00006 <a class="code" href="class_bitmap_store.html#a0c73c3c20f8093c83707cde15c4fed5f" title="Font used for writing text on bitmaps.">_bitmapFont</a> = al_load_font(<span class="stringliteral">&quot;junction 02.ttf&quot;</span>, blockWidth/6, 0);
+<a name="l00007"></a>00007 <span class="keywordflow">if</span> (<a class="code" href="class_bitmap_store.html#a0c73c3c20f8093c83707cde15c4fed5f" title="Font used for writing text on bitmaps.">_bitmapFont</a> == NULL)
+<a name="l00008"></a>00008 {
+<a name="l00009"></a>00009 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="l00010"></a>00010 <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="l00011"></a>00011 }
+<a name="l00012"></a>00012 }
+<a name="l00013"></a>00013
+<a name="l00014"></a><a class="code" href="class_bitmap_store.html#a1e34f2fb55475f16ade380fa1e8829f7">00014</a> <a class="code" href="class_bitmap_store.html#a1e34f2fb55475f16ade380fa1e8829f7" title="Destructor for clearing cache.">BitmapStore::~BitmapStore</a>()
+<a name="l00015"></a>00015 {
+<a name="l00016"></a>00016 <span class="keywordflow">for</span> (map&lt;Image,ALLEGRO_BITMAP*&gt;::iterator iter = <a class="code" href="class_bitmap_store.html#ae3d18969f61f97fce6622cb6f7004711" title="map containing pairs of Images (the enumerated type) and the actual images.">_bitmaps</a>.begin();
+<a name="l00017"></a>00017 iter != <a class="code" href="class_bitmap_store.html#ae3d18969f61f97fce6622cb6f7004711" title="map containing pairs of Images (the enumerated type) and the actual images.">_bitmaps</a>.end(); ++iter)
+<a name="l00018"></a>00018 {
+<a name="l00019"></a>00019 al_destroy_bitmap(iter-&gt;second);
+<a name="l00020"></a>00020 }
+<a name="l00021"></a>00021 <a class="code" href="class_bitmap_store.html#ae3d18969f61f97fce6622cb6f7004711" title="map containing pairs of Images (the enumerated type) and the actual images.">_bitmaps</a>.clear();
+<a name="l00022"></a>00022 al_destroy_font(<a class="code" href="class_bitmap_store.html#a0c73c3c20f8093c83707cde15c4fed5f" title="Font used for writing text on bitmaps.">_bitmapFont</a>);
+<a name="l00023"></a>00023 }
+<a name="l00024"></a>00024
+<a name="l00025"></a><a class="code" href="class_bitmap_store.html#aadd437c869c5856c36d920dfafbc6ee4">00025</a> ALLEGRO_BITMAP* <a class="code" href="class_bitmap_store.html#aadd437c869c5856c36d920dfafbc6ee4" title="Function to get image for drawing to the screen.">BitmapStore::getBitmap</a>(<a class="code" href="class_bitmap_store.html#af3bc66181673def9d0a590cd13c7e386" title="Type used to define which image should be returned.">Image</a> image)
+<a name="l00026"></a>00026 {
+<a name="l00027"></a>00027 map&lt;Image,ALLEGRO_BITMAP*&gt;::const_iterator iter = <a class="code" href="class_bitmap_store.html#ae3d18969f61f97fce6622cb6f7004711" title="map containing pairs of Images (the enumerated type) and the actual images.">_bitmaps</a>.find(image);
+<a name="l00028"></a>00028 <span class="keywordflow">if</span> (iter != <a class="code" href="class_bitmap_store.html#ae3d18969f61f97fce6622cb6f7004711" title="map containing pairs of Images (the enumerated type) and the actual images.">_bitmaps</a>.end())
+<a name="l00029"></a>00029 {
+<a name="l00030"></a>00030 <span class="keywordflow">return</span> iter-&gt;second;
+<a name="l00031"></a>00031 }
+<a name="l00032"></a>00032 <span class="keywordflow">else</span>
+<a name="l00033"></a>00033 {
+<a name="l00034"></a>00034 ALLEGRO_BITMAP* newImage = al_create_bitmap(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>);
+<a name="l00035"></a>00035 <span class="keywordflow">switch</span> (image)
+<a name="l00036"></a>00036 {
+<a name="l00037"></a>00037 <span class="keywordflow">case</span> <a class="code" href="class_bitmap_store.html#af3bc66181673def9d0a590cd13c7e386acdaf29947fecd91b452e554a75fb9e92">PLAYER</a>:
+<a name="l00038"></a>00038 <a class="code" href="class_bitmap_store.html#af645b30d96761f401770336a555b6429" title="Draws the image representing the player.">drawPlayerCar</a>(newImage);
+<a name="l00039"></a>00039 <span class="keywordflow">break</span>;
+<a name="l00040"></a>00040 <span class="keywordflow">case</span> <a class="code" href="class_bitmap_store.html#af3bc66181673def9d0a590cd13c7e386a8a7d9a89e243914ca702660237d4f81d">ENEMY</a>:
+<a name="l00041"></a>00041 <a class="code" href="class_bitmap_store.html#aff7a6fc2b35ff6cd38ef74730523f5a9" title="Draws the image representing an enemy.">drawEnemyCar</a>(newImage);
+<a name="l00042"></a>00042 <span class="keywordflow">break</span>;
+<a name="l00043"></a>00043 <span class="keywordflow">case</span> <a class="code" href="class_bitmap_store.html#af3bc66181673def9d0a590cd13c7e386a780d6b9e20ec37fbaf5a40ca846795d9">CHECKPOINT</a>:
+<a name="l00044"></a>00044 <a class="code" href="class_bitmap_store.html#ae5d12fa60b03a7ea2119c67938650352" title="Draws the image representing a checkpoint.">drawCheckpoint</a>(newImage);
+<a name="l00045"></a>00045 <span class="keywordflow">break</span>;
+<a name="l00046"></a>00046 <span class="keywordflow">case</span> <a class="code" href="class_bitmap_store.html#af3bc66181673def9d0a590cd13c7e386abf3851dc0110fc83020981fcbb5773eb">ROCK</a>:
+<a name="l00047"></a>00047 <a class="code" href="class_bitmap_store.html#a2132a5ec8dfb43f06f75accf8bb9a50e" title="Draws the image representing a rock.">drawRock</a>(newImage);
+<a name="l00048"></a>00048 <span class="keywordflow">break</span>;
+<a name="l00049"></a>00049 <span class="keywordflow">case</span> <a class="code" href="class_bitmap_store.html#af3bc66181673def9d0a590cd13c7e386ae662e77b349a8e22c5826ef35b1b5d9a">MAZE_WALL</a>:
+<a name="l00050"></a>00050 <a class="code" href="class_bitmap_store.html#a90680d174c1d77e19ace8c2ba0eef6ac" title="Draws the image representing a solid part of the maze.">drawMazeWall</a>(newImage);
+<a name="l00051"></a>00051 <span class="keywordflow">break</span>;
+<a name="l00052"></a>00052 <span class="keywordflow">case</span> <a class="code" href="class_bitmap_store.html#af3bc66181673def9d0a590cd13c7e386a4e2a075dff2c02bf40b134c9090d1f02">MAZE_FLOOR</a>:
+<a name="l00053"></a>00053 <a class="code" href="class_bitmap_store.html#a8a7d5fe7cc38ddb3c651152654226201" title="Draws the image representing a non-solid part of the maze.">drawMazeFloor</a>(newImage);
+<a name="l00054"></a>00054 <span class="keywordflow">break</span>;
+<a name="l00055"></a>00055 <span class="keywordflow">case</span> <a class="code" href="class_bitmap_store.html#af3bc66181673def9d0a590cd13c7e386a91fec244d29999552e93ecb7578713fb">SMOKE</a>:
+<a name="l00056"></a>00056 <a class="code" href="class_bitmap_store.html#a1a346a06675a7257ca8a7879aeb27e48" title="Draws the image representing a smokescreen.">drawSmoke</a>(newImage);
+<a name="l00057"></a>00057 <span class="keywordflow">break</span>;
+<a name="l00058"></a>00058 <span class="keywordflow">case</span> <a class="code" href="class_bitmap_store.html#af3bc66181673def9d0a590cd13c7e386a8b9eb5b79abe467982784ea2227d67e0">CRASHED_CAR</a>:
+<a name="l00059"></a>00059 <a class="code" href="class_bitmap_store.html#abb0a062e5cb3170786a6c202a53c145b" title="Draws the popup that appears when a car crashes.">drawCrashedCar</a>(newImage);
+<a name="l00060"></a>00060 <span class="keywordflow">break</span>;
+<a name="l00061"></a>00061 <span class="keywordflow">case</span> <a class="code" href="class_bitmap_store.html#af3bc66181673def9d0a590cd13c7e386a824f0021358b88c7f1172d7dece95948">CLAIMED_CHECKPOINT</a>:
+<a name="l00062"></a>00062 <a class="code" href="class_bitmap_store.html#a07f505192ccf0717d6aed29761934a5c" title="Draws the popup that appears when a checkpoint is collected.">drawClaimedCheckpoint</a>(newImage);
+<a name="l00063"></a>00063 <span class="keywordflow">break</span>;
+<a name="l00064"></a>00064 }
+<a name="l00065"></a>00065
+<a name="l00066"></a>00066 <a class="code" href="class_bitmap_store.html#ae3d18969f61f97fce6622cb6f7004711" title="map containing pairs of Images (the enumerated type) and the actual images.">_bitmaps</a>.insert(make_pair(image, newImage));
+<a name="l00067"></a>00067 <span class="keywordflow">return</span> newImage;
+<a name="l00068"></a>00068 }
+<a name="l00069"></a>00069 }
+<a name="l00070"></a>00070
+<a name="l00071"></a><a class="code" href="class_bitmap_store.html#af645b30d96761f401770336a555b6429">00071</a> <span class="keywordtype">void</span> <a class="code" href="class_bitmap_store.html#af645b30d96761f401770336a555b6429" title="Draws the image representing the player.">BitmapStore::drawPlayerCar</a>(ALLEGRO_BITMAP* canvas)
+<a name="l00072"></a>00072 {
+<a name="l00073"></a>00073 ALLEGRO_BITMAP* prev_draw = al_get_target_bitmap();
+<a name="l00074"></a>00074 al_set_target_bitmap(canvas);
+<a name="l00075"></a>00075
+<a name="l00076"></a>00076 <span class="comment">//car body</span>
+<a name="l00077"></a>00077 al_draw_filled_rounded_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.2, 0, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.8, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.96, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.1, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.1, al_map_rgb(0,0,255));
+<a name="l00078"></a>00078
+<a name="l00079"></a>00079 <span class="comment">//racing stripes</span>
+<a name="l00080"></a>00080 al_draw_filled_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.35, 0, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.4, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.3, al_map_rgb(255,255,255));
+<a name="l00081"></a>00081 al_draw_filled_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.6, 0, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.65, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.3, al_map_rgb(255,255,255));
+<a name="l00082"></a>00082
+<a name="l00083"></a>00083 <span class="comment">//windscreen</span>
+<a name="l00084"></a>00084 al_draw_filled_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.3, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.3, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.7, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.5, al_map_rgb (0,0,0));
+<a name="l00085"></a>00085
+<a name="l00086"></a>00086 <span class="comment">//roof</span>
+<a name="l00087"></a>00087 al_draw_rounded_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.3, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.5, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.7, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.9, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.04, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.04, al_map_rgb (25,25, 112), <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.04);
+<a name="l00088"></a>00088
+<a name="l00089"></a>00089 <span class="comment">//spoiler</span>
+<a name="l00090"></a>00090 al_draw_filled_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.96, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.8, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>, al_map_rgb (0,0, 225));
+<a name="l00091"></a>00091 al_draw_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.96, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.8, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>, al_map_rgb(25,25, 112),<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.04);
+<a name="l00092"></a>00092
+<a name="l00093"></a>00093 <span class="comment">//headlights</span>
+<a name="l00094"></a>00094 al_draw_filled_rectangle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.3,0,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.35,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.06, al_map_rgb(255,225,0));
+<a name="l00095"></a>00095 al_draw_filled_rectangle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.65,0,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.7,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.06, al_map_rgb(255,225,0));
+<a name="l00096"></a>00096
+<a name="l00097"></a>00097 <span class="comment">//tyres</span>
+<a name="l00098"></a>00098 al_draw_filled_rounded_rectangle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.1,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.13,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.2,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.37,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.03,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.03, al_map_rgb(131,139,131));
+<a name="l00099"></a>00099 al_draw_filled_rounded_rectangle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.8,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.13,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.9,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.37,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.03,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.03, al_map_rgb(131,139,131));
+<a name="l00100"></a>00100 al_draw_filled_rounded_rectangle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.1,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.63,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.2,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.87,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.03,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.03, al_map_rgb(131,139,131));
+<a name="l00101"></a>00101 al_draw_filled_rounded_rectangle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.8,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.63,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.9,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.87,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.03,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.03, al_map_rgb(131,139,131));
+<a name="l00102"></a>00102
+<a name="l00103"></a>00103 al_set_target_bitmap(prev_draw);
+<a name="l00104"></a>00104 }
+<a name="l00105"></a><a class="code" href="class_bitmap_store.html#aff7a6fc2b35ff6cd38ef74730523f5a9">00105</a> <span class="keywordtype">void</span> <a class="code" href="class_bitmap_store.html#aff7a6fc2b35ff6cd38ef74730523f5a9" title="Draws the image representing an enemy.">BitmapStore::drawEnemyCar</a>(ALLEGRO_BITMAP* canvas)
+<a name="l00106"></a>00106 {
+<a name="l00107"></a>00107 ALLEGRO_BITMAP* prev_draw = al_get_target_bitmap();
+<a name="l00108"></a>00108 al_set_target_bitmap(canvas);
+<a name="l00109"></a>00109
+<a name="l00110"></a>00110 <span class="comment">//car body</span>
+<a name="l00111"></a>00111 al_draw_filled_rounded_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.2, 0, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.8, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.96, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.1, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.1, al_map_rgb(255,0,0));
+<a name="l00112"></a>00112
+<a name="l00113"></a>00113 <span class="comment">//racing stripes</span>
+<a name="l00114"></a>00114 al_draw_filled_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.35, 0, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.4, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.3, al_map_rgb(255,255,255));
+<a name="l00115"></a>00115 al_draw_filled_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.6, 0, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.65, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.3, al_map_rgb(255,255,255));
+<a name="l00116"></a>00116
+<a name="l00117"></a>00117 <span class="comment">//windscreen</span>
+<a name="l00118"></a>00118 al_draw_filled_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.3, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.3, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.7, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.5, al_map_rgb (0,0,0));
+<a name="l00119"></a>00119
+<a name="l00120"></a>00120 <span class="comment">//roof</span>
+<a name="l00121"></a>00121 al_draw_rounded_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.3, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.5, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.7, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.9, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.04, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.04, al_map_rgb (25,25, 112), <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.04);
+<a name="l00122"></a>00122
+<a name="l00123"></a>00123 <span class="comment">//spoiler</span>
+<a name="l00124"></a>00124 al_draw_filled_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.96, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.8, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>, al_map_rgb (0,0, 225));
+<a name="l00125"></a>00125 al_draw_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.96, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.8, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>, al_map_rgb(25,25, 112),<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.04);
+<a name="l00126"></a>00126
+<a name="l00127"></a>00127 <span class="comment">//headlights</span>
+<a name="l00128"></a>00128 al_draw_filled_rectangle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.3,0,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.35,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.06, al_map_rgb(255,225,0));
+<a name="l00129"></a>00129 al_draw_filled_rectangle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.65,0,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.7,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.06, al_map_rgb(255,225,0));
+<a name="l00130"></a>00130
+<a name="l00131"></a>00131 <span class="comment">//tyres</span>
+<a name="l00132"></a>00132 al_draw_filled_rounded_rectangle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.1,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.13,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.2,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.37,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.03,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.03, al_map_rgb(131,139,131));
+<a name="l00133"></a>00133 al_draw_filled_rounded_rectangle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.8,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.13,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.9,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.37,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.03,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.03, al_map_rgb(131,139,131));
+<a name="l00134"></a>00134 al_draw_filled_rounded_rectangle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.1,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.63,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.2,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.87,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.03,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.03, al_map_rgb(131,139,131));
+<a name="l00135"></a>00135 al_draw_filled_rounded_rectangle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.8,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.63,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.9,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.87,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.03,<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.03, al_map_rgb(131,139,131));
+<a name="l00136"></a>00136
+<a name="l00137"></a>00137 al_set_target_bitmap(prev_draw);
+<a name="l00138"></a>00138 }
+<a name="l00139"></a><a class="code" href="class_bitmap_store.html#a2132a5ec8dfb43f06f75accf8bb9a50e">00139</a> <span class="keywordtype">void</span> <a class="code" href="class_bitmap_store.html#a2132a5ec8dfb43f06f75accf8bb9a50e" title="Draws the image representing a rock.">BitmapStore::drawRock</a>(ALLEGRO_BITMAP* canvas)
+<a name="l00140"></a>00140 {
+<a name="l00141"></a>00141 ALLEGRO_BITMAP* prev_draw = al_get_target_bitmap();
+<a name="l00142"></a>00142 al_set_target_bitmap(canvas);
+<a name="l00143"></a>00143
+<a name="l00144"></a>00144 ALLEGRO_COLOR colour = al_map_rgb(131,139,131);
+<a name="l00145"></a>00145 al_draw_filled_circle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2-1, colour);
+<a name="l00146"></a>00146
+<a name="l00147"></a>00147 al_draw_filled_circle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2-6, colour);
+<a name="l00148"></a>00148 al_draw_filled_circle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/4, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/4, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/4-1, al_map_rgb(205,197,191));
+<a name="l00149"></a>00149 al_draw_filled_circle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/3.2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/4.2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/4-2, al_map_rgb(205,197,191));
+<a name="l00150"></a>00150 al_draw_filled_circle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2-15, al_map_rgb(205,197,191));
+<a name="l00151"></a>00151 al_draw_filled_circle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2-8, al_map_rgb(205,205,193));
+<a name="l00152"></a>00152
+<a name="l00153"></a>00153 al_set_target_bitmap(prev_draw);
+<a name="l00154"></a>00154 }
+<a name="l00155"></a><a class="code" href="class_bitmap_store.html#ae5d12fa60b03a7ea2119c67938650352">00155</a> <span class="keywordtype">void</span> <a class="code" href="class_bitmap_store.html#ae5d12fa60b03a7ea2119c67938650352" title="Draws the image representing a checkpoint.">BitmapStore::drawCheckpoint</a>(ALLEGRO_BITMAP* canvas)
+<a name="l00156"></a>00156 {
+<a name="l00157"></a>00157 ALLEGRO_BITMAP* prev_draw = al_get_target_bitmap();
+<a name="l00158"></a>00158 al_set_target_bitmap(canvas);
+<a name="l00159"></a>00159
+<a name="l00160"></a>00160 ALLEGRO_COLOR colour = al_map_rgb(255,255,0);
+<a name="l00161"></a>00161
+<a name="l00162"></a>00162 al_draw_filled_rectangle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.44, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.1, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.5, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.9, colour);
+<a name="l00163"></a>00163 al_draw_filled_rounded_rectangle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.34, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.9, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.6, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.98, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.01, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.01, colour);
+<a name="l00164"></a>00164 al_draw_filled_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.47, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.14, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.1, colour);
+<a name="l00165"></a>00165 al_draw_filled_triangle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.44, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.26, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.44, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.58, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.8, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>*0.42, colour);
+<a name="l00166"></a>00166
+<a name="l00167"></a>00167 al_set_target_bitmap(prev_draw);
+<a name="l00168"></a>00168 }
+<a name="l00169"></a><a class="code" href="class_bitmap_store.html#a90680d174c1d77e19ace8c2ba0eef6ac">00169</a> <span class="keywordtype">void</span> <a class="code" href="class_bitmap_store.html#a90680d174c1d77e19ace8c2ba0eef6ac" title="Draws the image representing a solid part of the maze.">BitmapStore::drawMazeWall</a>(ALLEGRO_BITMAP* canvas)
+<a name="l00170"></a>00170 {
+<a name="l00171"></a>00171 ALLEGRO_BITMAP* prev_draw = al_get_target_bitmap();
+<a name="l00172"></a>00172 al_set_target_bitmap(canvas);
+<a name="l00173"></a>00173
+<a name="l00174"></a>00174 ALLEGRO_COLOR colour = al_map_rgb(203,255,151);
+<a name="l00175"></a>00175 al_clear_to_color(colour);
+<a name="l00176"></a>00176
+<a name="l00177"></a>00177 al_set_target_bitmap(prev_draw);
+<a name="l00178"></a>00178 }
+<a name="l00179"></a><a class="code" href="class_bitmap_store.html#a8a7d5fe7cc38ddb3c651152654226201">00179</a> <span class="keywordtype">void</span> <a class="code" href="class_bitmap_store.html#a8a7d5fe7cc38ddb3c651152654226201" title="Draws the image representing a non-solid part of the maze.">BitmapStore::drawMazeFloor</a>(ALLEGRO_BITMAP* canvas)
+<a name="l00180"></a>00180 {
+<a name="l00181"></a>00181 ALLEGRO_BITMAP* prev_draw = al_get_target_bitmap();
+<a name="l00182"></a>00182 al_set_target_bitmap(canvas);
+<a name="l00183"></a>00183
+<a name="l00184"></a>00184 ALLEGRO_COLOR colour = al_map_rgb(0,0,0);
+<a name="l00185"></a>00185 al_clear_to_color(colour);
+<a name="l00186"></a>00186
+<a name="l00187"></a>00187 al_set_target_bitmap(prev_draw);
+<a name="l00188"></a>00188 }
+<a name="l00189"></a><a class="code" href="class_bitmap_store.html#a1a346a06675a7257ca8a7879aeb27e48">00189</a> <span class="keywordtype">void</span> <a class="code" href="class_bitmap_store.html#a1a346a06675a7257ca8a7879aeb27e48" title="Draws the image representing a smokescreen.">BitmapStore::drawSmoke</a>(ALLEGRO_BITMAP* canvas)
+<a name="l00190"></a>00190 {
+<a name="l00191"></a>00191 ALLEGRO_BITMAP* prev_draw = al_get_target_bitmap();
+<a name="l00192"></a>00192 al_set_target_bitmap(canvas);
+<a name="l00193"></a>00193
+<a name="l00194"></a>00194 ALLEGRO_COLOR colour = al_map_rgb(255,255,255);
+<a name="l00195"></a>00195 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2.3, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2.1, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2-1, colour,1);
+<a name="l00196"></a>00196 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/4, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/4, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/4, colour,2);
+<a name="l00197"></a>00197 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/5, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.5, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/4, colour,4);
+<a name="l00198"></a>00198 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2.5, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2.7, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/3, colour,3);
+<a name="l00199"></a>00199 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.8, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/3.7, colour,2);
+<a name="l00200"></a>00200 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2.8, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2.2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/6, colour,3);
+<a name="l00201"></a>00201 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.1, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/3, colour,2);
+<a name="l00202"></a>00202 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.7, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2, colour,3);
+<a name="l00203"></a>00203 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.3, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.3, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/5, colour,2);
+<a name="l00204"></a>00204
+<a name="l00205"></a>00205 al_set_target_bitmap(prev_draw);
+<a name="l00206"></a>00206 }
+<a name="l00207"></a>00207
+<a name="l00208"></a><a class="code" href="class_bitmap_store.html#abb0a062e5cb3170786a6c202a53c145b">00208</a> <span class="keywordtype">void</span> <a class="code" href="class_bitmap_store.html#abb0a062e5cb3170786a6c202a53c145b" title="Draws the popup that appears when a car crashes.">BitmapStore::drawCrashedCar</a>(ALLEGRO_BITMAP* canvas)
+<a name="l00209"></a>00209 {
+<a name="l00210"></a>00210 ALLEGRO_BITMAP* prev_draw = al_get_target_bitmap();
+<a name="l00211"></a>00211 al_set_target_bitmap(canvas);
+<a name="l00212"></a>00212
+<a name="l00213"></a>00213 al_draw_filled_rounded_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/3.33, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/5, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.25, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.04, 5, 5, al_map_rgb (200, 200, 200));
+<a name="l00214"></a>00214 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2.3, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2.1, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2-1, al_map_rgb (255, 0, 0),1);
+<a name="l00215"></a>00215 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/4, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/4, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/4, al_map_rgb (100, 100, 100),2);
+<a name="l00216"></a>00216 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/5, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.5, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/4, al_map_rgb (255, 0, 0),4);
+<a name="l00217"></a>00217 al_draw_filled_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2.5, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.43, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.7, al_map_rgb (0,0, 0));
+<a name="l00218"></a>00218 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2.5, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2.7, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/3, al_map_rgb (100, 100, 100),3);
+<a name="l00219"></a>00219 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.8, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/3.7, al_map_rgb (255, 0, 0),2);
+<a name="l00220"></a>00220 al_draw_rectangle(<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/3.13, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.04, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.25, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>, al_map_rgb (25,25, 112),1);
+<a name="l00221"></a>00221 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2.8, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2.2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/6, al_map_rgb (255, 0, 0),3);
+<a name="l00222"></a>00222 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.1, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/3, al_map_rgb (100, 100, 100),2);
+<a name="l00223"></a>00223 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.7, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2, al_map_rgb (100, 100, 100),3);
+<a name="l00224"></a>00224 al_draw_circle (<a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.3, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/1.3, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/5, al_map_rgb (255, 0, 0),2);
+<a name="l00225"></a>00225
+<a name="l00226"></a>00226 al_set_target_bitmap(prev_draw);
+<a name="l00227"></a>00227 }
+<a name="l00228"></a>00228
+<a name="l00229"></a><a class="code" href="class_bitmap_store.html#a07f505192ccf0717d6aed29761934a5c">00229</a> <span class="keywordtype">void</span> <a class="code" href="class_bitmap_store.html#a07f505192ccf0717d6aed29761934a5c" title="Draws the popup that appears when a checkpoint is collected.">BitmapStore::drawClaimedCheckpoint</a>(ALLEGRO_BITMAP* canvas)
+<a name="l00230"></a>00230 {
+<a name="l00231"></a>00231 ALLEGRO_BITMAP* prev_draw = al_get_target_bitmap();
+<a name="l00232"></a>00232 al_set_target_bitmap(canvas);
+<a name="l00233"></a>00233
+<a name="l00234"></a>00234 ALLEGRO_COLOR colour = al_map_rgb(255,255,255);
+<a name="l00235"></a>00235 al_draw_text(<a class="code" href="class_bitmap_store.html#a0c73c3c20f8093c83707cde15c4fed5f" title="Font used for writing text on bitmaps.">_bitmapFont</a>, colour, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2, <a class="code" href="class_bitmap_store.html#a157ce6e07689037e1081ccf87eaa2fff" title="The width of a square image in the store.">_blockWidth</a>/2, ALLEGRO_ALIGN_CENTRE , <span class="stringliteral">&quot;GOTCHA&quot;</span>);
+<a name="l00236"></a>00236
+<a name="l00237"></a>00237 al_set_target_bitmap(prev_draw);
+<a name="l00238"></a>00238 }
+</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:30 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>