summaryrefslogtreecommitdiff
path: root/docs/html/_enemy_car_8h_source.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/html/_enemy_car_8h_source.html')
-rw-r--r--docs/html/_enemy_car_8h_source.html148
1 files changed, 148 insertions, 0 deletions
diff --git a/docs/html/_enemy_car_8h_source.html b/docs/html/_enemy_car_8h_source.html
new file mode 100644
index 0000000..a436efe
--- /dev/null
+++ b/docs/html/_enemy_car_8h_source.html
@@ -0,0 +1,148 @@
+<!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/logic/EnemyCar.h 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/logic/EnemyCar.h</div> </div>
+</div>
+<div class="contents">
+<a href="_enemy_car_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef ENEMYCAR_H</span>
+<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define ENEMYCAR_H</span>
+<a name="l00003"></a>00003 <span class="preprocessor"></span>
+<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;cmath&gt;</span>
+<a name="l00005"></a>00005
+<a name="l00006"></a>00006 <span class="preprocessor">#include &quot;../presentation/BitmapStore.h&quot;</span>
+<a name="l00007"></a>00007
+<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;../logic/Car.h&quot;</span>
+<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;../logic/PlayerCar.h&quot;</span>
+<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;../logic/Rock.h&quot;</span>
+<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;../logic/MazeMath.h&quot;</span>
+<a name="l00012"></a>00012
+<a name="l00021"></a><a class="code" href="class_enemy_car.html">00021</a> <span class="keyword">class </span><a class="code" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a>: <span class="keyword">public</span> <a class="code" href="class_car.html" title="GameObject that moves through the maze and changes direction.">Car</a>
+<a name="l00022"></a>00022 {
+<a name="l00023"></a>00023 <span class="keyword">public</span>:
+<a name="l00030"></a>00030 <a class="code" href="class_enemy_car.html#a8af7d3c56fa9dad09992ce6fbd7389d2" title="Creates an EnemyCar at the given coordinates.">EnemyCar</a>(<span class="keywordtype">double</span> <a class="code" href="class_game_object.html#a676dd981c2891493782de36fb4618cd8" title="Provides access to the x coordinate of the object.">x</a>, <span class="keywordtype">double</span> <a class="code" href="class_game_object.html#a293548656551d6aed5f714f8c4a3235b" title="Provides access to the y coordinate of the object.">y</a>);
+<a name="l00031"></a>00031
+<a name="l00032"></a>00032 <span class="comment">//assignment and copy constructors have been left with the compiler generated versions</span>
+<a name="l00033"></a>00033
+<a name="l00043"></a>00043 <span class="keywordtype">void</span> <a class="code" href="class_enemy_car.html#a9f08f73a076e48a0bc0092e72e15e7e4" title="Processes one frame&#39;s worth of activity for the object, called every frame.">update</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;Rock&gt;&amp; rocks);
+<a name="l00044"></a>00044
+<a name="l00048"></a>00048 <span class="keywordtype">void</span> <a class="code" href="class_enemy_car.html#ac5836046e802a749abb2308886b34060" title="Function that is called when an EnemyCar crashes into a PlayerCar.">crash</a>();
+<a name="l00049"></a>00049
+<a name="l00053"></a>00053 <span class="keywordtype">void</span> <a class="code" href="class_enemy_car.html#aeb8bf92c965ab33f793b0274a02f142c" title="Function that is called when an EnemyCar drives into a Smokescreen.">blind</a>();
+<a name="l00054"></a>00054
+<a name="l00055"></a>00055 <span class="keyword">private</span>:
+<a name="l00061"></a><a class="code" href="class_enemy_car.html#afdd204c097eda1ff9232743bf216ce87">00061</a> <span class="keyword">enum</span> <a class="code" href="class_enemy_car.html#afdd204c097eda1ff9232743bf216ce87" title="States that define how the EnemyCar&#39;s AI should behave.">States</a> {
+<a name="l00062"></a><a class="code" href="class_enemy_car.html#afdd204c097eda1ff9232743bf216ce87af45d8b201d7334e42651b262a03d631c">00062</a> <a class="code" href="class_enemy_car.html#afdd204c097eda1ff9232743bf216ce87af45d8b201d7334e42651b262a03d631c" title="The EnemyCar can not see, and so does not move.">BLINDED</a>,
+<a name="l00063"></a><a class="code" href="class_enemy_car.html#afdd204c097eda1ff9232743bf216ce87a28df0785e03156c97ddeb81da5e0770c">00063</a> <a class="code" href="class_enemy_car.html#afdd204c097eda1ff9232743bf216ce87a28df0785e03156c97ddeb81da5e0770c" title="The EnemyCar tries to drive to the block that the player is currently on.">CHASING</a>
+<a name="l00064"></a>00064 };
+<a name="l00065"></a>00065
+<a name="l00066"></a><a class="code" href="class_enemy_car.html#a65a1c7b520f043aae27800ced9e8d543">00066</a> <a class="code" href="class_enemy_car.html#afdd204c097eda1ff9232743bf216ce87" title="States that define how the EnemyCar&#39;s AI should behave.">States</a> <a class="code" href="class_enemy_car.html#a65a1c7b520f043aae27800ced9e8d543" title="The state that the object is currently in.">_state</a>;
+<a name="l00067"></a><a class="code" href="class_enemy_car.html#aa84ac6485311c535526ea14d02d98cc9">00067</a> <span class="keywordtype">double</span> <a class="code" href="class_enemy_car.html#aa84ac6485311c535526ea14d02d98cc9" title="The x coordinate that the EnemyCar is driving towards.">_targetX</a>;
+<a name="l00068"></a><a class="code" href="class_enemy_car.html#a61ff3751123febe8bc9ab24d0763245c">00068</a> <span class="keywordtype">double</span> <a class="code" href="class_enemy_car.html#a61ff3751123febe8bc9ab24d0763245c" title="The y coordinate that the EnemyCar is driving towards.">_targetY</a>;
+<a name="l00069"></a>00069
+<a name="l00085"></a>00085 <span class="keywordtype">void</span> <a class="code" href="class_enemy_car.html#afa61cecf7df51e26edd632303c18945c" title="Updates the direction that the EnemyCar is facing, if neccesary.">checkFacing</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="keywordtype">double</span> chasingX, <span class="keywordtype">double</span> chasingY, <span class="keyword">const</span> list&lt;Rock&gt;&amp; rocks);
+<a name="l00086"></a>00086
+<a name="l00094"></a>00094 <span class="keywordtype">bool</span> <a class="code" href="class_enemy_car.html#af0dca9b89448557020ef02a18cffb682" title="Iterates through a list of Rocks and determines if moving to a given position would result in a colli...">rockAtLocation</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keyword">const</span> list&lt;Rock&gt;&amp; rocks);
+<a name="l00095"></a>00095 };
+<a name="l00096"></a>00096
+<a name="l00097"></a>00097 <span class="preprocessor">#endif // ENEMYCAR_H</span>
+</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>