This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAbilityBehaviour_8hpp_source.html
125 lines (123 loc) · 14.4 KB
/
AbilityBehaviour_8hpp_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!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=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPICPRJ Game: src/Scripts/Heroes/AbilityBehaviour.hpp 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="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 style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SPICPRJ Game
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- 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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_3ac9928fc2e7e2cbc53db7c1a11acda2.html">Scripts</a></li><li class="navelem"><a class="el" href="dir_10e2eaefdd9a1ab5422661947953ea82.html">Heroes</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">AbilityBehaviour.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="AbilityBehaviour_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef SPIC_GAME_ABILITYBEHAVIOUR_HPP</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define SPIC_GAME_ABILITYBEHAVIOUR_HPP</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>  </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "<a class="code" href="BehaviourScript_8hpp.html">BehaviourScript.hpp</a>"</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include "../Common/CoolDownBehaviour.hpp"</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include "../Common/HealthBehaviour.hpp"</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  </div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="keyword">namespace </span><a class="code" href="namespacegame.html">game</a> {</div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="classgame_1_1AbilityBehaviour.html"> 12</a></span>  <span class="keyword">class </span><a class="code" href="classgame_1_1AbilityBehaviour.html">AbilityBehaviour</a> : <span class="keyword">public</span> <a class="code" href="classspic_1_1BehaviourScript.html">spic::BehaviourScript</a></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  {</div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="classgame_1_1AbilityBehaviour.html#a8a23841c415319298fdfbefc956913c7"> 15</a></span>  std::shared_ptr<game::CoolDownBehaviour> <a class="code" href="classgame_1_1AbilityBehaviour.html#a8a23841c415319298fdfbefc956913c7">_coolDownBehaviour</a>;</div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classgame_1_1AbilityBehaviour.html#a7f6ad954d3b9b36c018a32c5955167b6"> 16</a></span>  std::shared_ptr<game::HealthBehaviour> <a class="code" href="classgame_1_1AbilityBehaviour.html#a7f6ad954d3b9b36c018a32c5955167b6">_healthBehaviour</a>;</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  </div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="keyword">explicit</span> <a class="code" href="classgame_1_1AbilityBehaviour.html#ac0776ef6c8282d9f90cd67488633c51c">AbilityBehaviour</a>(<span class="keywordtype">double</span> coolDown);</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classgame_1_1AbilityBehaviour.html#a24d1ca437c857e03e74052885b0d4df2">OnStart</a>() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classgame_1_1AbilityBehaviour.html#a45caf9685c5a8d0cd57af7ed977dab75">OnUpdate</a>() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordtype">void</span> <a class="code" href="classgame_1_1AbilityBehaviour.html#a8a6bb8d982f5ab4ce5be53114739a23a">OnTriggerEnter2D</a>(<span class="keyword">const</span> <a class="code" href="classspic_1_1Collider.html">spic::Collider</a>& collider) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordtype">void</span> <a class="code" href="classgame_1_1AbilityBehaviour.html#afd12e75bd89ca1b94cbe7f156b0a40b6">OnTriggerExit2D</a>(<span class="keyword">const</span> <a class="code" href="classspic_1_1Collider.html">spic::Collider</a>& collider) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordtype">void</span> <a class="code" href="classgame_1_1AbilityBehaviour.html#abf87dc40d98e0181c4fd5f671daec7f6">OnTriggerStay2D</a>(<span class="keyword">const</span> <a class="code" href="classspic_1_1Collider.html">spic::Collider</a>& collider) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  std::shared_ptr<game::CoolDownBehaviour>& <a class="code" href="classgame_1_1AbilityBehaviour.html#a8ea25f35f0914372750a0b4e547daab5">GetCoolDownBehaviour</a>();</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  };</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> }</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  </div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  </div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="preprocessor">#endif </span><span class="comment">//SPIC_GAME_ABILITYBEHAVIOUR_HPP</span></div>
<div class="ttc" id="aBehaviourScript_8hpp_html"><div class="ttname"><a href="BehaviourScript_8hpp.html">BehaviourScript.hpp</a></div></div>
<div class="ttc" id="aclassgame_1_1AbilityBehaviour_html"><div class="ttname"><a href="classgame_1_1AbilityBehaviour.html">game::AbilityBehaviour</a></div><div class="ttdoc">An abstract class for hero abilities.</div><div class="ttdef"><b>Definition:</b> AbilityBehaviour.hpp:13</div></div>
<div class="ttc" id="aclassgame_1_1AbilityBehaviour_html_a24d1ca437c857e03e74052885b0d4df2"><div class="ttname"><a href="classgame_1_1AbilityBehaviour.html#a24d1ca437c857e03e74052885b0d4df2">game::AbilityBehaviour::OnStart</a></div><div class="ttdeci">virtual void OnStart() override</div><div class="ttdoc">Triggers when the scripts starts for the first time.</div><div class="ttdef"><b>Definition:</b> AbilityBehaviour.cpp:9</div></div>
<div class="ttc" id="aclassgame_1_1AbilityBehaviour_html_a45caf9685c5a8d0cd57af7ed977dab75"><div class="ttname"><a href="classgame_1_1AbilityBehaviour.html#a45caf9685c5a8d0cd57af7ed977dab75">game::AbilityBehaviour::OnUpdate</a></div><div class="ttdeci">virtual void OnUpdate() override</div><div class="ttdoc">Triggers every frame when the script is active.</div><div class="ttdef"><b>Definition:</b> AbilityBehaviour.cpp:21</div></div>
<div class="ttc" id="aclassgame_1_1AbilityBehaviour_html_a7f6ad954d3b9b36c018a32c5955167b6"><div class="ttname"><a href="classgame_1_1AbilityBehaviour.html#a7f6ad954d3b9b36c018a32c5955167b6">game::AbilityBehaviour::_healthBehaviour</a></div><div class="ttdeci">std::shared_ptr< game::HealthBehaviour > _healthBehaviour</div><div class="ttdef"><b>Definition:</b> AbilityBehaviour.hpp:16</div></div>
<div class="ttc" id="aclassgame_1_1AbilityBehaviour_html_a8a23841c415319298fdfbefc956913c7"><div class="ttname"><a href="classgame_1_1AbilityBehaviour.html#a8a23841c415319298fdfbefc956913c7">game::AbilityBehaviour::_coolDownBehaviour</a></div><div class="ttdeci">std::shared_ptr< game::CoolDownBehaviour > _coolDownBehaviour</div><div class="ttdef"><b>Definition:</b> AbilityBehaviour.hpp:15</div></div>
<div class="ttc" id="aclassgame_1_1AbilityBehaviour_html_a8a6bb8d982f5ab4ce5be53114739a23a"><div class="ttname"><a href="classgame_1_1AbilityBehaviour.html#a8a6bb8d982f5ab4ce5be53114739a23a">game::AbilityBehaviour::OnTriggerEnter2D</a></div><div class="ttdeci">void OnTriggerEnter2D(const spic::Collider &collider) override</div><div class="ttdoc">Triggers when the script collides with a collider.</div><div class="ttdef"><b>Definition:</b> AbilityBehaviour.cpp:26</div></div>
<div class="ttc" id="aclassgame_1_1AbilityBehaviour_html_a8ea25f35f0914372750a0b4e547daab5"><div class="ttname"><a href="classgame_1_1AbilityBehaviour.html#a8ea25f35f0914372750a0b4e547daab5">game::AbilityBehaviour::GetCoolDownBehaviour</a></div><div class="ttdeci">std::shared_ptr< game::CoolDownBehaviour > & GetCoolDownBehaviour()</div><div class="ttdef"><b>Definition:</b> AbilityBehaviour.cpp:16</div></div>
<div class="ttc" id="aclassgame_1_1AbilityBehaviour_html_abf87dc40d98e0181c4fd5f671daec7f6"><div class="ttname"><a href="classgame_1_1AbilityBehaviour.html#abf87dc40d98e0181c4fd5f671daec7f6">game::AbilityBehaviour::OnTriggerStay2D</a></div><div class="ttdeci">void OnTriggerStay2D(const spic::Collider &collider) override</div><div class="ttdoc">Triggers while an collider is colliding with a collider.</div><div class="ttdef"><b>Definition:</b> AbilityBehaviour.cpp:36</div></div>
<div class="ttc" id="aclassgame_1_1AbilityBehaviour_html_ac0776ef6c8282d9f90cd67488633c51c"><div class="ttname"><a href="classgame_1_1AbilityBehaviour.html#ac0776ef6c8282d9f90cd67488633c51c">game::AbilityBehaviour::AbilityBehaviour</a></div><div class="ttdeci">AbilityBehaviour(double coolDown)</div><div class="ttdoc">Constructor for a empty ability behaviour.</div><div class="ttdef"><b>Definition:</b> AbilityBehaviour.cpp:4</div></div>
<div class="ttc" id="aclassgame_1_1AbilityBehaviour_html_afd12e75bd89ca1b94cbe7f156b0a40b6"><div class="ttname"><a href="classgame_1_1AbilityBehaviour.html#afd12e75bd89ca1b94cbe7f156b0a40b6">game::AbilityBehaviour::OnTriggerExit2D</a></div><div class="ttdeci">void OnTriggerExit2D(const spic::Collider &collider) override</div><div class="ttdoc">Triggers when the script stopped colliding with a collider.</div><div class="ttdef"><b>Definition:</b> AbilityBehaviour.cpp:31</div></div>
<div class="ttc" id="aclassspic_1_1BehaviourScript_html"><div class="ttname"><a href="classspic_1_1BehaviourScript.html">spic::BehaviourScript</a></div><div class="ttdoc">Base class for script running in the game.</div><div class="ttdef"><b>Definition:</b> BehaviourScript.hpp:15</div></div>
<div class="ttc" id="aclassspic_1_1Collider_html"><div class="ttname"><a href="classspic_1_1Collider.html">spic::Collider</a></div><div class="ttdoc">The base class for all colliders. @spicapi.</div><div class="ttdef"><b>Definition:</b> Collider.hpp:16</div></div>
<div class="ttc" id="anamespacegame_html"><div class="ttname"><a href="namespacegame.html">game</a></div><div class="ttdef"><b>Definition:</b> HUDController.hpp:15</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
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.1
</small></address>
</body>
</html>