diff options
Diffstat (limited to 'docs/html/_game_8h_source.html')
-rw-r--r-- | docs/html/_game_8h_source.html | 177 |
1 files changed, 177 insertions, 0 deletions
diff --git a/docs/html/_game_8h_source.html b/docs/html/_game_8h_source.html new file mode 100644 index 0000000..e487b02 --- /dev/null +++ b/docs/html/_game_8h_source.html @@ -0,0 +1,177 @@ +<!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/Game.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 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 List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +<div class="header"> + <div class="headertitle"> +<div class="title">source/logic/Game.h</div> </div> +</div> +<div class="contents"> +<a href="_game_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 GAME_H</span> +<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define GAME_H</span> +<a name="l00003"></a>00003 <span class="preprocessor"></span> +<a name="l00004"></a>00004 <span class="preprocessor">#include <list></span> +<a name="l00005"></a>00005 <span class="preprocessor">#include <algorithm></span> +<a name="l00006"></a>00006 <span class="keyword">using namespace </span>std; +<a name="l00007"></a>00007 +<a name="l00008"></a>00008 <span class="preprocessor">#include <allegro5/allegro.h></span> +<a name="l00009"></a>00009 +<a name="l00010"></a>00010 <span class="preprocessor">#include "../presentation/Screen.h"</span> +<a name="l00011"></a>00011 <span class="preprocessor">#include "../presentation/BitmapStore.h"</span> +<a name="l00012"></a>00012 +<a name="l00013"></a>00013 <span class="preprocessor">#include "../logic/Maze.h"</span> +<a name="l00014"></a>00014 <span class="preprocessor">#include "../logic/PlayerCar.h"</span> +<a name="l00015"></a>00015 <span class="preprocessor">#include "../logic/EnemyCar.h"</span> +<a name="l00016"></a>00016 <span class="preprocessor">#include "../logic/Checkpoint.h"</span> +<a name="l00017"></a>00017 <span class="preprocessor">#include "../logic/Rock.h"</span> +<a name="l00018"></a>00018 <span class="preprocessor">#include "../logic/Smokescreen.h"</span> +<a name="l00019"></a>00019 <span class="preprocessor">#include "../logic/DestroyedObjectPopup.h"</span> +<a name="l00020"></a>00020 <span class="preprocessor">#include "../logic/AllegroWrappers.h"</span> +<a name="l00021"></a>00021 <span class="preprocessor">#include "../logic/CollisionDetector.h"</span> +<a name="l00022"></a>00022 +<a name="l00023"></a>00023 <span class="preprocessor">#include "../data/LevelReader.h"</span> +<a name="l00024"></a>00024 <span class="preprocessor">#include "../data/Config.h"</span> +<a name="l00025"></a>00025 +<a name="l00036"></a><a class="code" href="class_game.html">00036</a> <span class="keyword">class </span><a class="code" href="class_game.html" title="The object that controls the flow of the game, and the launch point of the game.">Game</a> +<a name="l00037"></a>00037 { +<a name="l00038"></a>00038 <span class="keyword">public</span>: +<a name="l00039"></a><a class="code" href="class_game.html#a636d6897103fd12d230489d512bf2be1">00039</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> FPS = 30; +<a name="l00040"></a>00040 +<a name="l00044"></a>00044 <a class="code" href="class_game.html" title="The object that controls the flow of the game, and the launch point of the game.">Game</a>(); +<a name="l00045"></a>00045 +<a name="l00049"></a>00049 ~<a class="code" href="class_game.html" title="The object that controls the flow of the game, and the launch point of the game.">Game</a>(); +<a name="l00050"></a>00050 +<a name="l00054"></a>00054 <span class="keywordtype">void</span> start(); +<a name="l00055"></a>00055 +<a name="l00056"></a>00056 <span class="keyword">private</span>: +<a name="l00062"></a>00062 <a class="code" href="class_game.html" title="The object that controls the flow of the game, and the launch point of the game.">Game</a>(<span class="keyword">const</span> <a class="code" href="class_game.html" title="The object that controls the flow of the game, and the launch point of the game.">Game</a>& ref); +<a name="l00068"></a>00068 <a class="code" href="class_game.html" title="The object that controls the flow of the game, and the launch point of the game.">Game</a>& operator=(<span class="keyword">const</span> <a class="code" href="class_game.html" title="The object that controls the flow of the game, and the launch point of the game.">Game</a>& rhs); +<a name="l00069"></a>00069 +<a name="l00075"></a>00075 <span class="keywordtype">void</span> initLevel(<span class="keyword">const</span> <span class="keywordtype">string</span>& levelFile); +<a name="l00076"></a>00076 +<a name="l00088"></a>00088 <span class="keywordtype">void</span> runloop(); +<a name="l00089"></a>00089 +<a name="l00093"></a>00093 <span class="keywordtype">void</span> update(); +<a name="l00097"></a>00097 <span class="keywordtype">void</span> cleanup(); +<a name="l00098"></a>00098 +<a name="l00104"></a>00104 <span class="keywordtype">void</span> clearLists(); +<a name="l00105"></a>00105 +<a name="l00106"></a><a class="code" href="class_game.html#a3bbe8c0dadbdf9e9e1d499f10509ef4e">00106</a> <a class="code" href="class_allegro_init.html" title="Class ensures that Allegro is initialized and uninstalled when appropriate.">AllegroInit</a> <a class="code" href="class_game.html#a3bbe8c0dadbdf9e9e1d499f10509ef4e" title="Handles dependencies on Allegro being installed.">_allegro</a>; +<a name="l00107"></a>00107 +<a name="l00108"></a><a class="code" href="class_game.html#aa60fe2dc0d1d53ebf49c2d87af6ee2d5">00108</a> <a class="code" href="class_config.html" title="Object for handling user settings loaded from a file.">Config</a> <a class="code" href="class_game.html#aa60fe2dc0d1d53ebf49c2d87af6ee2d5" title="Loads configuration from file on construction, used to set resolution of screen.">_config</a>; +<a name="l00109"></a><a class="code" href="class_game.html#a9bc904a37fe9b3e85a597b6b5c6a66d5">00109</a> <a class="code" href="class_screen.html" title="Class for creating a window on the screen.">Screen</a> <a class="code" href="class_game.html#a9bc904a37fe9b3e85a597b6b5c6a66d5" title="Handles all drawing operations.">_screen</a>; +<a name="l00110"></a><a class="code" href="class_game.html#af153fc1d94c473114cfbd63728d21f91">00110</a> ALLEGRO_TIMER* <a class="code" href="class_game.html#af153fc1d94c473114cfbd63728d21f91" title="Creates FPS events per second, that are put into _timerEvents.">_timer</a>; +<a name="l00111"></a><a class="code" href="class_game.html#a2b7303df1b6d0163b78c2c306164859f">00111</a> ALLEGRO_EVENT_QUEUE* <a class="code" href="class_game.html#a2b7303df1b6d0163b78c2c306164859f" title="Catches events from _timer, used to regulate speed of runloop.">_timerEvents</a>; +<a name="l00112"></a>00112 +<a name="l00113"></a><a class="code" href="class_game.html#a33457b2c7fa4f43b89e54ce9c5ac6f83">00113</a> <a class="code" href="class_maze.html" title="A rectangular 2D boolean array, representing where cars can drive and where they cannot.">Maze</a> <a class="code" href="class_game.html#a33457b2c7fa4f43b89e54ce9c5ac6f83" title="The environment that confines the movements of GameObjects, specifically Cars.">_maze</a>; +<a name="l00114"></a>00114 +<a name="l00124"></a><a class="code" href="class_game.html#a75bf3282da1519766a6b75e2d83293ac">00124</a> list<PlayerCar> <a class="code" href="class_game.html#a75bf3282da1519766a6b75e2d83293ac" title="Typically a single PlayerCar, controlled by the person playing the game.">_players</a>; +<a name="l00125"></a>00125 +<a name="l00126"></a><a class="code" href="class_game.html#afbd3e358076a6cf2e72faefe1c202df9">00126</a> list<EnemyCar> <a class="code" href="class_game.html#afbd3e358076a6cf2e72faefe1c202df9" title="List of all EnemyCars chasing the player.">_enemies</a>; +<a name="l00127"></a><a class="code" href="class_game.html#a856252e94c580f59b926affc7d45b4bf">00127</a> list<Checkpoint> <a class="code" href="class_game.html#a856252e94c580f59b926affc7d45b4bf" title="List of checkpoints that the player needs to collect.">_checkpoints</a>; +<a name="l00128"></a><a class="code" href="class_game.html#a9f14643bfc4d595dc7dfa3160a59d71b">00128</a> list<Rock> <a class="code" href="class_game.html#a9f14643bfc4d595dc7dfa3160a59d71b" title="List of rocks that the player and EnemyCars need to avoid.">_rocks</a>; +<a name="l00129"></a><a class="code" href="class_game.html#a88916ad9e8095b99a9c870a053180c1c">00129</a> list<Smokescreen> <a class="code" href="class_game.html#a88916ad9e8095b99a9c870a053180c1c" title="List of Smokescreen objects that are currently able to delay EnemyCars.">_smokescreens</a>; +<a name="l00130"></a><a class="code" href="class_game.html#a9bea5a0ee430443effa418d42a903f83">00130</a> list<DestroyedObjectPopup> <a class="code" href="class_game.html#a9bea5a0ee430443effa418d42a903f83" title="List of purely visual DestroyedObjectPopups that need to be drawn.">_popups</a>; +<a name="l00131"></a>00131 +<a name="l00132"></a><a class="code" href="class_game.html#ab88620fda0d1fa729dcab6013e8f1efc">00132</a> <a class="code" href="class_collision_detector.html" title="Object for handling collisions between GameObjects.">CollisionDetector</a> <a class="code" href="class_game.html#ab88620fda0d1fa729dcab6013e8f1efc" title="Object that checks for collisions each frame.">_collisionDetector</a>; +<a name="l00133"></a>00133 }; +<a name="l00134"></a>00134 +<a name="l00135"></a>00135 <span class="preprocessor">#endif // GAME_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"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </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  <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> |