summaryrefslogtreecommitdiff
path: root/docs/html/class_enemy_car.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/html/class_enemy_car.html')
-rw-r--r--docs/html/class_enemy_car.html480
1 files changed, 480 insertions, 0 deletions
diff --git a/docs/html/class_enemy_car.html b/docs/html/class_enemy_car.html
new file mode 100644
index 0000000..b6720d9
--- /dev/null
+++ b/docs/html/class_enemy_car.html
@@ -0,0 +1,480 @@
+<!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: EnemyCar Class Reference</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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
+ <li><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="annotated.html"><span>Class&#160;List</span></a></li>
+ <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
+ <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
+ <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
+ </ul>
+ </div>
+</div>
+<div class="header">
+ <div class="summary">
+<a href="#pub-methods">Public Member Functions</a> &#124;
+<a href="#pri-types">Private Types</a> &#124;
+<a href="#pri-methods">Private Member Functions</a> &#124;
+<a href="#pri-attribs">Private Attributes</a> </div>
+ <div class="headertitle">
+<div class="title">EnemyCar Class Reference</div> </div>
+</div>
+<div class="contents">
+<!-- doxytag: class="EnemyCar" --><!-- doxytag: inherits="Car" -->
+<p><a class="el" href="class_game_object.html" title="Parent class for objects that are placed in the maze.">GameObject</a> that chases the player around the maze.
+ <a href="class_enemy_car.html#details">More...</a></p>
+
+<p><code>#include &lt;<a class="el" href="_enemy_car_8h_source.html">EnemyCar.h</a>&gt;</code></p>
+<div class="dynheader">
+Inheritance diagram for EnemyCar:</div>
+<div class="dyncontent">
+ <div class="center">
+ <img src="class_enemy_car.png" usemap="#EnemyCar_map" alt=""/>
+ <map id="EnemyCar_map" name="EnemyCar_map">
+<area href="class_car.html" title="GameObject that moves through the maze and changes direction." alt="Car" shape="rect" coords="0,56,81,80"/>
+<area href="class_game_object.html" title="Parent class for objects that are placed in the maze." alt="GameObject" shape="rect" coords="0,0,81,24"/>
+</map>
+ </div></div>
+
+<p><a href="class_enemy_car-members.html">List of all members.</a></p>
+<table class="memberdecls">
+<tr><td colspan="2"><h2><a name="pub-methods"></a>
+Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_enemy_car.html#a8af7d3c56fa9dad09992ce6fbd7389d2">EnemyCar</a> (double x, double y)</td></tr>
+<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> at the given coordinates. <a href="#a8af7d3c56fa9dad09992ce6fbd7389d2"></a><br/></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_enemy_car.html#a9f08f73a076e48a0bc0092e72e15e7e4">update</a> (const <a class="el" href="class_maze.html">Maze</a> &amp;maze, const list&lt; <a class="el" href="class_player_car.html">PlayerCar</a> &gt; &amp;players, const list&lt; <a class="el" href="class_rock.html">Rock</a> &gt; &amp;rocks)</td></tr>
+<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Processes one frame's worth of activity for the object, called every frame. <a href="#a9f08f73a076e48a0bc0092e72e15e7e4"></a><br/></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_enemy_car.html#ac5836046e802a749abb2308886b34060">crash</a> ()</td></tr>
+<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Function that is called when an <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> crashes into a <a class="el" href="class_player_car.html" title="A GameObject that is controlled by the player.">PlayerCar</a>. <a href="#ac5836046e802a749abb2308886b34060"></a><br/></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_enemy_car.html#aeb8bf92c965ab33f793b0274a02f142c">blind</a> ()</td></tr>
+<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Function that is called when an <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> drives into a <a class="el" href="class_smokescreen.html" title="GameObject that causes the EnemyCar to be delayed if they crash into it.">Smokescreen</a>. <a href="#aeb8bf92c965ab33f793b0274a02f142c"></a><br/></td></tr>
+<tr><td colspan="2"><h2><a name="pri-types"></a>
+Private Types</h2></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_enemy_car.html#afdd204c097eda1ff9232743bf216ce87">States</a> { <a class="el" href="class_enemy_car.html#afdd204c097eda1ff9232743bf216ce87af45d8b201d7334e42651b262a03d631c">BLINDED</a>,
+<a class="el" href="class_enemy_car.html#afdd204c097eda1ff9232743bf216ce87a28df0785e03156c97ddeb81da5e0770c">CHASING</a>
+ }</td></tr>
+<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">States that define how the EnemyCar's AI should behave. <a href="class_enemy_car.html#afdd204c097eda1ff9232743bf216ce87">More...</a><br/></td></tr>
+<tr><td colspan="2"><h2><a name="pri-methods"></a>
+Private Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_enemy_car.html#afa61cecf7df51e26edd632303c18945c">checkFacing</a> (const <a class="el" href="class_maze.html">Maze</a> &amp;maze, double chasingX, double chasingY, const list&lt; <a class="el" href="class_rock.html">Rock</a> &gt; &amp;rocks)</td></tr>
+<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates the direction that the <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> is facing, if neccesary. <a href="#afa61cecf7df51e26edd632303c18945c"></a><br/></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_enemy_car.html#af0dca9b89448557020ef02a18cffb682">rockAtLocation</a> (double x, double y, const list&lt; <a class="el" href="class_rock.html">Rock</a> &gt; &amp;rocks)</td></tr>
+<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Iterates through a list of Rocks and determines if moving to a given position would result in a collision. <a href="#af0dca9b89448557020ef02a18cffb682"></a><br/></td></tr>
+<tr><td colspan="2"><h2><a name="pri-attribs"></a>
+Private Attributes</h2></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_enemy_car.html#afdd204c097eda1ff9232743bf216ce87">States</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_enemy_car.html#a65a1c7b520f043aae27800ced9e8d543">_state</a></td></tr>
+<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The state that the object is currently in. <a href="#a65a1c7b520f043aae27800ced9e8d543"></a><br/></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_enemy_car.html#aa84ac6485311c535526ea14d02d98cc9">_targetX</a></td></tr>
+<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The x coordinate that the <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> is driving towards. <a href="#aa84ac6485311c535526ea14d02d98cc9"></a><br/></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_enemy_car.html#a61ff3751123febe8bc9ab24d0763245c">_targetY</a></td></tr>
+<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The y coordinate that the <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> is driving towards. <a href="#a61ff3751123febe8bc9ab24d0763245c"></a><br/></td></tr>
+</table>
+<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
+<div class="textblock"><p><a class="el" href="class_game_object.html" title="Parent class for objects that are placed in the maze.">GameObject</a> that chases the player around the maze. </p>
+<p>Attempts to collide with the player, causing the player to lose.</p>
+<dl class="author"><dt><b>Author:</b></dt><dd>Justin Wernick </dd>
+<dd>
+David Schneider </dd></dl>
+
+<p>Definition at line <a class="el" href="_enemy_car_8h_source.html#l00021">21</a> of file <a class="el" href="_enemy_car_8h_source.html">EnemyCar.h</a>.</p>
+</div><hr/><h2>Member Enumeration Documentation</h2>
+<a class="anchor" id="afdd204c097eda1ff9232743bf216ce87"></a><!-- doxytag: member="EnemyCar::States" ref="afdd204c097eda1ff9232743bf216ce87" args="" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">enum <a class="el" href="class_enemy_car.html#afdd204c097eda1ff9232743bf216ce87">EnemyCar::States</a><code> [private]</code></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>States that define how the EnemyCar's AI should behave. </p>
+<p>This would need to be expanded to include more states in order to make the enemies appear smarter. </p>
+<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
+<tr><td valign="top"><em><a class="anchor" id="afdd204c097eda1ff9232743bf216ce87af45d8b201d7334e42651b262a03d631c"></a><!-- doxytag: member="BLINDED" ref="afdd204c097eda1ff9232743bf216ce87af45d8b201d7334e42651b262a03d631c" args="" -->BLINDED</em>&nbsp;</td><td>
+<p>The <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> can not see, and so does not move. </p>
+</td></tr>
+<tr><td valign="top"><em><a class="anchor" id="afdd204c097eda1ff9232743bf216ce87a28df0785e03156c97ddeb81da5e0770c"></a><!-- doxytag: member="CHASING" ref="afdd204c097eda1ff9232743bf216ce87a28df0785e03156c97ddeb81da5e0770c" args="" -->CHASING</em>&nbsp;</td><td>
+<p>The <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> tries to drive to the block that the player is currently on. </p>
+</td></tr>
+</table>
+</dd>
+</dl>
+
+<p>Definition at line <a class="el" href="_enemy_car_8h_source.html#l00061">61</a> of file <a class="el" href="_enemy_car_8h_source.html">EnemyCar.h</a>.</p>
+
+</div>
+</div>
+<hr/><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" id="a8af7d3c56fa9dad09992ce6fbd7389d2"></a><!-- doxytag: member="EnemyCar::EnemyCar" ref="a8af7d3c56fa9dad09992ce6fbd7389d2" args="(double x, double y)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">EnemyCar::EnemyCar </td>
+ <td>(</td>
+ <td class="paramtype">double&#160;</td>
+ <td class="paramname"><em>x</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">double&#160;</td>
+ <td class="paramname"><em>y</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Creates an <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> at the given coordinates. </p>
+<dl><dt><b>Parameters:</b></dt><dd>
+ <table class="params">
+ <tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>The x coordinate of the EnemyCar's initial position. </td></tr>
+ <tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>The y coordinate of the EnemyCar's initial position. </td></tr>
+ </table>
+ </dd>
+</dl>
+
+<p>Definition at line <a class="el" href="_enemy_car_8cpp_source.html#l00003">3</a> of file <a class="el" href="_enemy_car_8cpp_source.html">EnemyCar.cpp</a>.</p>
+
+</div>
+</div>
+<hr/><h2>Member Function Documentation</h2>
+<a class="anchor" id="aeb8bf92c965ab33f793b0274a02f142c"></a><!-- doxytag: member="EnemyCar::blind" ref="aeb8bf92c965ab33f793b0274a02f142c" args="()" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">void EnemyCar::blind </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Function that is called when an <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> drives into a <a class="el" href="class_smokescreen.html" title="GameObject that causes the EnemyCar to be delayed if they crash into it.">Smokescreen</a>. </p>
+
+<p>Definition at line <a class="el" href="_enemy_car_8cpp_source.html#l00100">100</a> of file <a class="el" href="_enemy_car_8cpp_source.html">EnemyCar.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="afa61cecf7df51e26edd632303c18945c"></a><!-- doxytag: member="EnemyCar::checkFacing" ref="afa61cecf7df51e26edd632303c18945c" args="(const Maze &amp;maze, double chasingX, double chasingY, const list&lt; Rock &gt; &amp;rocks)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">void EnemyCar::checkFacing </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="class_maze.html">Maze</a> &amp;&#160;</td>
+ <td class="paramname"><em>maze</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">double&#160;</td>
+ <td class="paramname"><em>chasingX</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">double&#160;</td>
+ <td class="paramname"><em>chasingY</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">const list&lt; <a class="el" href="class_rock.html">Rock</a> &gt; &amp;&#160;</td>
+ <td class="paramname"><em>rocks</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td><code> [private]</code></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Updates the direction that the <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> is facing, if neccesary. </p>
+<p>The facing is only changed once the current _targetX and _targetY are reached. After that, a facing is chosen that points into an empty block (no maze walls or rocks) that is closest to the chasing x and y using a straight line. This results in the enemy not always taking the shortest route, but it makes it possible to escape enemies. _targetX and _targetY are updated to one block in the new facing direction. The enemy may only turn around and head backwards if there is no other options, so once the enemy starts driving down narrow a path it will continue to the end of the path.</p>
+<dl><dt><b>Parameters:</b></dt><dd>
+ <table class="params">
+ <tr><td class="paramdir">[in]</td><td class="paramname">maze</td><td>The maze that confines the EnemyCar's movements. </td></tr>
+ <tr><td class="paramdir">[in]</td><td class="paramname">chasingX</td><td>The x coordinate that the <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> is ultimately trying to reach. </td></tr>
+ <tr><td class="paramdir">[in]</td><td class="paramname">chasingY</td><td>The y coordinate that the <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> is ultimately trying to reach. </td></tr>
+ <tr><td class="paramdir">[in]</td><td class="paramname">rocks</td><td>The Rocks that the <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> needs to avoid. </td></tr>
+ </table>
+ </dd>
+</dl>
+
+<p>Definition at line <a class="el" href="_enemy_car_8cpp_source.html#l00026">26</a> of file <a class="el" href="_enemy_car_8cpp_source.html">EnemyCar.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="ac5836046e802a749abb2308886b34060"></a><!-- doxytag: member="EnemyCar::crash" ref="ac5836046e802a749abb2308886b34060" args="()" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">void EnemyCar::crash </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Function that is called when an <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> crashes into a <a class="el" href="class_player_car.html" title="A GameObject that is controlled by the player.">PlayerCar</a>. </p>
+
+<p>Definition at line <a class="el" href="_enemy_car_8cpp_source.html#l00095">95</a> of file <a class="el" href="_enemy_car_8cpp_source.html">EnemyCar.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="af0dca9b89448557020ef02a18cffb682"></a><!-- doxytag: member="EnemyCar::rockAtLocation" ref="af0dca9b89448557020ef02a18cffb682" args="(double x, double y, const list&lt; Rock &gt; &amp;rocks)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool EnemyCar::rockAtLocation </td>
+ <td>(</td>
+ <td class="paramtype">double&#160;</td>
+ <td class="paramname"><em>x</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">double&#160;</td>
+ <td class="paramname"><em>y</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">const list&lt; <a class="el" href="class_rock.html">Rock</a> &gt; &amp;&#160;</td>
+ <td class="paramname"><em>rocks</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td><code> [private]</code></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Iterates through a list of Rocks and determines if moving to a given position would result in a collision. </p>
+<dl><dt><b>Parameters:</b></dt><dd>
+ <table class="params">
+ <tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>The potential new x coordinate. </td></tr>
+ <tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>The potential new y coordinate. </td></tr>
+ <tr><td class="paramdir">[in]</td><td class="paramname">rocks</td><td>The Rocks that are checked for a collision at x and y. </td></tr>
+ </table>
+ </dd>
+</dl>
+
+<p>Definition at line <a class="el" href="_enemy_car_8cpp_source.html#l00086">86</a> of file <a class="el" href="_enemy_car_8cpp_source.html">EnemyCar.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a9f08f73a076e48a0bc0092e72e15e7e4"></a><!-- doxytag: member="EnemyCar::update" ref="a9f08f73a076e48a0bc0092e72e15e7e4" args="(const Maze &amp;maze, const list&lt; PlayerCar &gt; &amp;players, const list&lt; Rock &gt; &amp;rocks)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">void EnemyCar::update </td>
+ <td>(</td>
+ <td class="paramtype">const <a class="el" href="class_maze.html">Maze</a> &amp;&#160;</td>
+ <td class="paramname"><em>maze</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">const list&lt; <a class="el" href="class_player_car.html">PlayerCar</a> &gt; &amp;&#160;</td>
+ <td class="paramname"><em>players</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">const list&lt; <a class="el" href="class_rock.html">Rock</a> &gt; &amp;&#160;</td>
+ <td class="paramname"><em>rocks</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Processes one frame's worth of activity for the object, called every frame. </p>
+<p>Primarily adjusts the facing if neccesary and then moves using the inhereted move function.</p>
+<dl><dt><b>Parameters:</b></dt><dd>
+ <table class="params">
+ <tr><td class="paramname">maze</td><td>The maze that confines the EnemyCar's movements. </td></tr>
+ <tr><td class="paramname">players</td><td>The list of PlayerCars that the <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> can chase. </td></tr>
+ <tr><td class="paramname">rocks</td><td>The list of Rocks that need to be avoided. </td></tr>
+ </table>
+ </dd>
+</dl>
+
+<p>Definition at line <a class="el" href="_enemy_car_8cpp_source.html#l00011">11</a> of file <a class="el" href="_enemy_car_8cpp_source.html">EnemyCar.cpp</a>.</p>
+
+</div>
+</div>
+<hr/><h2>Member Data Documentation</h2>
+<a class="anchor" id="a65a1c7b520f043aae27800ced9e8d543"></a><!-- doxytag: member="EnemyCar::_state" ref="a65a1c7b520f043aae27800ced9e8d543" args="" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname"><a class="el" href="class_enemy_car.html#afdd204c097eda1ff9232743bf216ce87">States</a> <a class="el" href="class_enemy_car.html#a65a1c7b520f043aae27800ced9e8d543">EnemyCar::_state</a><code> [private]</code></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>The state that the object is currently in. </p>
+
+<p>Definition at line <a class="el" href="_enemy_car_8h_source.html#l00066">66</a> of file <a class="el" href="_enemy_car_8h_source.html">EnemyCar.h</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="aa84ac6485311c535526ea14d02d98cc9"></a><!-- doxytag: member="EnemyCar::_targetX" ref="aa84ac6485311c535526ea14d02d98cc9" args="" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">double <a class="el" href="class_enemy_car.html#aa84ac6485311c535526ea14d02d98cc9">EnemyCar::_targetX</a><code> [private]</code></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>The x coordinate that the <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> is driving towards. </p>
+
+<p>Definition at line <a class="el" href="_enemy_car_8h_source.html#l00067">67</a> of file <a class="el" href="_enemy_car_8h_source.html">EnemyCar.h</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a61ff3751123febe8bc9ab24d0763245c"></a><!-- doxytag: member="EnemyCar::_targetY" ref="a61ff3751123febe8bc9ab24d0763245c" args="" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">double <a class="el" href="class_enemy_car.html#a61ff3751123febe8bc9ab24d0763245c">EnemyCar::_targetY</a><code> [private]</code></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>The y coordinate that the <a class="el" href="class_enemy_car.html" title="GameObject that chases the player around the maze.">EnemyCar</a> is driving towards. </p>
+
+<p>Definition at line <a class="el" href="_enemy_car_8h_source.html#l00068">68</a> of file <a class="el" href="_enemy_car_8h_source.html">EnemyCar.h</a>.</p>
+
+</div>
+</div>
+<hr/>The documentation for this class was generated from the following files:<ul>
+<li>source/logic/<a class="el" href="_enemy_car_8h_source.html">EnemyCar.h</a></li>
+<li>source/logic/<a class="el" href="_enemy_car_8cpp_source.html">EnemyCar.cpp</a></li>
+</ul>
+</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>