SuperSpaceInvaderTurboApoca.../doc/SAE102-SpaceInvaders/html/d3/d62/player_8h_source.html

137 lines
13 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SUPER Space invader : Turbo edition DX - VS GOD: headers/player.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="../../LOGO.png"/></td>
<td id="projectalign">
<div id="projectname">SUPER Space invader : Turbo edition DX - VS GOD<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">A simple space invader ripoff</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('d3/d62/player_8h_source.html','../../'); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</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>
<div class="header">
<div class="headertitle"><div class="title">player.h</div></div>
</div><!--header-->
<div class="contents">
<a href="../../d3/d62/player_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#ifndef GUARD_PLAYER_H</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#define GUARD_PLAYER_H</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="../../d3/db1/struct_player.html"> 19</a></span><span class="keyword">struct </span><a class="code hl_struct" href="../../d3/db1/struct_player.html">Player</a>{</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="../../d3/db1/struct_player.html#af21f9d3b115801ee284a9c5e81bd3db5"> 24</a></span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="../../d3/db1/struct_player.html#af21f9d3b115801ee284a9c5e81bd3db5">lives</a> = 3;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="../../d3/db1/struct_player.html#a9edbd6fa228cf532b7a74fb45721c2e0"> 29</a></span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="../../d3/db1/struct_player.html#a9edbd6fa228cf532b7a74fb45721c2e0">x</a>;</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="../../d3/db1/struct_player.html#a15bc878713e5b607357a0b6f3f56dff9"> 34</a></span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="../../d3/db1/struct_player.html#a15bc878713e5b607357a0b6f3f56dff9">id</a>;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="../../d3/db1/struct_player.html#a18afa2dfc1f6dfba7bbe08889f443da5"> 39</a></span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="../../d3/db1/struct_player.html#a18afa2dfc1f6dfba7bbe08889f443da5">score</a>=0;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="../../d3/db1/struct_player.html#a3f6353c84662c57d74aafa770773c409"> 45</a></span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="../../d3/db1/struct_player.html#a3f6353c84662c57d74aafa770773c409">deathAnimCounter</a>=0;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="../../d3/db1/struct_player.html#a68ea5bd892a77c115baff824c526b3d2"> 50</a></span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="../../d3/db1/struct_player.html#a68ea5bd892a77c115baff824c526b3d2">fireCooldown</a>=0;</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d3/db1/struct_player.html#a45bd873fbf46cb105cb038b51251a812">hasDeathAnimation</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d3/db1/struct_player.html#a7aacef142ba14d6af7a6dfcb8ef327cd">isEliminated</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d3/db1/struct_player.html#a06b5d53d568f357f77df80d0859fe8db">isPlaying</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d3/db1/struct_player.html#a2badc28b66b2380a978db9676fec644d">damage</a>();</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span>};</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="astruct_player_html"><div class="ttname"><a href="../../d3/db1/struct_player.html">Player</a></div><div class="ttdoc">player data structure</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d62/player_8h_source.html#l00019">player.h:19</a></div></div>
<div class="ttc" id="astruct_player_html_a06b5d53d568f357f77df80d0859fe8db"><div class="ttname"><a href="../../d3/db1/struct_player.html#a06b5d53d568f357f77df80d0859fe8db">Player::isPlaying</a></div><div class="ttdeci">bool isPlaying() const</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d80/player_8cpp_source.html#l00014">player.cpp:14</a></div></div>
<div class="ttc" id="astruct_player_html_a15bc878713e5b607357a0b6f3f56dff9"><div class="ttname"><a href="../../d3/db1/struct_player.html#a15bc878713e5b607357a0b6f3f56dff9">Player::id</a></div><div class="ttdeci">unsigned id</div><div class="ttdoc">player's unique identidier</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d62/player_8h_source.html#l00034">player.h:34</a></div></div>
<div class="ttc" id="astruct_player_html_a18afa2dfc1f6dfba7bbe08889f443da5"><div class="ttname"><a href="../../d3/db1/struct_player.html#a18afa2dfc1f6dfba7bbe08889f443da5">Player::score</a></div><div class="ttdeci">unsigned score</div><div class="ttdoc">player's personal score</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d62/player_8h_source.html#l00039">player.h:39</a></div></div>
<div class="ttc" id="astruct_player_html_a2badc28b66b2380a978db9676fec644d"><div class="ttname"><a href="../../d3/db1/struct_player.html#a2badc28b66b2380a978db9676fec644d">Player::damage</a></div><div class="ttdeci">void damage()</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d80/player_8cpp_source.html#l00026">player.cpp:26</a></div></div>
<div class="ttc" id="astruct_player_html_a3f6353c84662c57d74aafa770773c409"><div class="ttname"><a href="../../d3/db1/struct_player.html#a3f6353c84662c57d74aafa770773c409">Player::deathAnimCounter</a></div><div class="ttdeci">unsigned deathAnimCounter</div><div class="ttdoc">counter used for the death animation of players undefined once the player is eliminated</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d62/player_8h_source.html#l00045">player.h:45</a></div></div>
<div class="ttc" id="astruct_player_html_a45bd873fbf46cb105cb038b51251a812"><div class="ttname"><a href="../../d3/db1/struct_player.html#a45bd873fbf46cb105cb038b51251a812">Player::hasDeathAnimation</a></div><div class="ttdeci">bool hasDeathAnimation() const</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d80/player_8cpp_source.html#l00018">player.cpp:18</a></div></div>
<div class="ttc" id="astruct_player_html_a68ea5bd892a77c115baff824c526b3d2"><div class="ttname"><a href="../../d3/db1/struct_player.html#a68ea5bd892a77c115baff824c526b3d2">Player::fireCooldown</a></div><div class="ttdeci">unsigned fireCooldown</div><div class="ttdoc">player's shooting cooldown</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d62/player_8h_source.html#l00050">player.h:50</a></div></div>
<div class="ttc" id="astruct_player_html_a7aacef142ba14d6af7a6dfcb8ef327cd"><div class="ttname"><a href="../../d3/db1/struct_player.html#a7aacef142ba14d6af7a6dfcb8ef327cd">Player::isEliminated</a></div><div class="ttdeci">bool isEliminated() const</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d80/player_8cpp_source.html#l00022">player.cpp:22</a></div></div>
<div class="ttc" id="astruct_player_html_a9edbd6fa228cf532b7a74fb45721c2e0"><div class="ttname"><a href="../../d3/db1/struct_player.html#a9edbd6fa228cf532b7a74fb45721c2e0">Player::x</a></div><div class="ttdeci">unsigned x</div><div class="ttdoc">x coordinate of the player</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d62/player_8h_source.html#l00029">player.h:29</a></div></div>
<div class="ttc" id="astruct_player_html_af21f9d3b115801ee284a9c5e81bd3db5"><div class="ttname"><a href="../../d3/db1/struct_player.html#af21f9d3b115801ee284a9c5e81bd3db5">Player::lives</a></div><div class="ttdeci">unsigned lives</div><div class="ttdoc">player life points</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d62/player_8h_source.html#l00024">player.h:24</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../dir_7f57b1e41c5acd0e859ae5f3a2b075a9.html">headers</a></li><li class="navelem"><a class="el" href="../../d3/d62/player_8h.html">player.h</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
</ul>
</div>
</body>
</html>