-
Notifications
You must be signed in to change notification settings - Fork 0
/
AbstractLevelParser_8hpp_source.html
124 lines (122 loc) · 15 KB
/
AbstractLevelParser_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
<!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>SPC-H Platformer Engine: includes/platformer-engine/LevelParser/AbstractLevelParser.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">SPC-H Platformer Engine
</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_09e761304027c904456130627fd4dcf5.html">includes</a></li><li class="navelem"><a class="el" href="dir_1587a151464512ea3626aba36cd93a86.html">platformer-engine</a></li><li class="navelem"><a class="el" href="dir_28e29a0aa9a4f72dd894b881b26f9dfb.html">LevelParser</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">AbstractLevelParser.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="AbstractLevelParser_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 PLATFORMER_ENGINE_ABSTRACTLEVELPARSER_HPP</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define PLATFORMER_ENGINE_ABSTRACTLEVELPARSER_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 <memory></span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <string></span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <map></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="preprocessor">#include "<a class="code" href="GameObject_8hpp.html">GameObject.hpp</a>"</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="Scene_8hpp.html">Scene.hpp</a>"</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="keyword">namespace </span><a class="code" href="namespaceplatformer__engine.html">platformer_engine</a> {</div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="classplatformer__engine_1_1AbstractLevelParser.html"> 12</a></span>  <span class="keyword">class </span><a class="code" href="classplatformer__engine_1_1AbstractLevelParser.html">AbstractLevelParser</a> {</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keyword">virtual</span> <span class="keyword">auto</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classplatformer__engine_1_1AbstractLevelParser.html#a94a0305d4e0833a7589eb6e8ba983f41"> 22</a></span>  <a class="code" href="classplatformer__engine_1_1AbstractLevelParser.html#a94a0305d4e0833a7589eb6e8ba983f41">LoadOnScene</a>(<a class="code" href="classspic_1_1Scene.html">spic::Scene</a> &scene, <span class="keyword">const</span> std::string &<span class="keywordtype">id</span>, <span class="keyword">const</span> std::string &filePath, <span class="keyword">const</span> std::string &fileName,</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="keyword">const</span> std::map<<span class="keywordtype">int</span>, std::function<<a class="code" href="classspic_1_1GameObject.html">spic::GameObject</a>(<a class="code" href="structspic_1_1Transform.html">spic::Transform</a>)>> &config) -> <span class="keywordtype">bool</span> = 0;</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classplatformer__engine_1_1AbstractLevelParser.html#a4e2ffd8e7006ab0f088c4c7429fe16a9"> 25</a></span>  <a class="code" href="classplatformer__engine_1_1AbstractLevelParser.html#a4e2ffd8e7006ab0f088c4c7429fe16a9">AbstractLevelParser</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classplatformer__engine_1_1AbstractLevelParser.html#a06f523ef62d1d2eb0c9f7feadab04486"> 27</a></span>  <a class="code" href="classplatformer__engine_1_1AbstractLevelParser.html#a06f523ef62d1d2eb0c9f7feadab04486">AbstractLevelParser</a>(<span class="keyword">const</span> <a class="code" href="classplatformer__engine_1_1AbstractLevelParser.html">AbstractLevelParser</a> &other) = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classplatformer__engine_1_1AbstractLevelParser.html#a759e4e26593420bcf6c9a078193f4b66"> 29</a></span>  <a class="code" href="classplatformer__engine_1_1AbstractLevelParser.html#a759e4e26593420bcf6c9a078193f4b66">AbstractLevelParser</a>(<a class="code" href="classplatformer__engine_1_1AbstractLevelParser.html">AbstractLevelParser</a> &&other) = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classplatformer__engine_1_1AbstractLevelParser.html#a325ea64ee76bf35ccfdcfc904189c76a"> 31</a></span>  <a class="code" href="classplatformer__engine_1_1AbstractLevelParser.html">AbstractLevelParser</a> &<a class="code" href="classplatformer__engine_1_1AbstractLevelParser.html#a325ea64ee76bf35ccfdcfc904189c76a">operator=</a>(<a class="code" href="classplatformer__engine_1_1AbstractLevelParser.html">AbstractLevelParser</a> &&other) = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classplatformer__engine_1_1AbstractLevelParser.html#a45989dc36b6d63be754e5422746232e3"> 33</a></span>  <span class="keyword">auto</span> <a class="code" href="classplatformer__engine_1_1AbstractLevelParser.html#a45989dc36b6d63be754e5422746232e3">operator=</a>(<span class="keyword">const</span> <a class="code" href="classplatformer__engine_1_1AbstractLevelParser.html">AbstractLevelParser</a> &other) -> <a class="code" href="classplatformer__engine_1_1AbstractLevelParser.html">AbstractLevelParser</a> & = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classplatformer__engine_1_1AbstractLevelParser.html#aacc250ef60e68abece0ea9eed76a8bea"> 35</a></span>  <span class="keyword">virtual</span> <a class="code" href="classplatformer__engine_1_1AbstractLevelParser.html#aacc250ef60e68abece0ea9eed76a8bea">~AbstractLevelParser</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  };</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> } <span class="comment">// namespace platformer_engine</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#endif </span><span class="comment">//PLATFORMER_ENGINE_ABSTRACTLEVELPARSER_HPP</span></div>
<div class="ttc" id="aGameObject_8hpp_html"><div class="ttname"><a href="GameObject_8hpp.html">GameObject.hpp</a></div></div>
<div class="ttc" id="aScene_8hpp_html"><div class="ttname"><a href="Scene_8hpp.html">Scene.hpp</a></div></div>
<div class="ttc" id="aclassplatformer__engine_1_1AbstractLevelParser_html"><div class="ttname"><a href="classplatformer__engine_1_1AbstractLevelParser.html">platformer_engine::AbstractLevelParser</a></div><div class="ttdef"><b>Definition:</b> AbstractLevelParser.hpp:12</div></div>
<div class="ttc" id="aclassplatformer__engine_1_1AbstractLevelParser_html_a06f523ef62d1d2eb0c9f7feadab04486"><div class="ttname"><a href="classplatformer__engine_1_1AbstractLevelParser.html#a06f523ef62d1d2eb0c9f7feadab04486">platformer_engine::AbstractLevelParser::AbstractLevelParser</a></div><div class="ttdeci">AbstractLevelParser(const AbstractLevelParser &other)=default</div></div>
<div class="ttc" id="aclassplatformer__engine_1_1AbstractLevelParser_html_a325ea64ee76bf35ccfdcfc904189c76a"><div class="ttname"><a href="classplatformer__engine_1_1AbstractLevelParser.html#a325ea64ee76bf35ccfdcfc904189c76a">platformer_engine::AbstractLevelParser::operator=</a></div><div class="ttdeci">AbstractLevelParser & operator=(AbstractLevelParser &&other)=default</div></div>
<div class="ttc" id="aclassplatformer__engine_1_1AbstractLevelParser_html_a45989dc36b6d63be754e5422746232e3"><div class="ttname"><a href="classplatformer__engine_1_1AbstractLevelParser.html#a45989dc36b6d63be754e5422746232e3">platformer_engine::AbstractLevelParser::operator=</a></div><div class="ttdeci">auto operator=(const AbstractLevelParser &other) -> AbstractLevelParser &=default</div></div>
<div class="ttc" id="aclassplatformer__engine_1_1AbstractLevelParser_html_a4e2ffd8e7006ab0f088c4c7429fe16a9"><div class="ttname"><a href="classplatformer__engine_1_1AbstractLevelParser.html#a4e2ffd8e7006ab0f088c4c7429fe16a9">platformer_engine::AbstractLevelParser::AbstractLevelParser</a></div><div class="ttdeci">AbstractLevelParser()=default</div></div>
<div class="ttc" id="aclassplatformer__engine_1_1AbstractLevelParser_html_a759e4e26593420bcf6c9a078193f4b66"><div class="ttname"><a href="classplatformer__engine_1_1AbstractLevelParser.html#a759e4e26593420bcf6c9a078193f4b66">platformer_engine::AbstractLevelParser::AbstractLevelParser</a></div><div class="ttdeci">AbstractLevelParser(AbstractLevelParser &&other)=default</div></div>
<div class="ttc" id="aclassplatformer__engine_1_1AbstractLevelParser_html_a94a0305d4e0833a7589eb6e8ba983f41"><div class="ttname"><a href="classplatformer__engine_1_1AbstractLevelParser.html#a94a0305d4e0833a7589eb6e8ba983f41">platformer_engine::AbstractLevelParser::LoadOnScene</a></div><div class="ttdeci">virtual auto LoadOnScene(spic::Scene &scene, const std::string &id, const std::string &filePath, const std::string &fileName, const std::map< int, std::function< spic::GameObject(spic::Transform)>> &config) -> bool=0</div><div class="ttdoc">Load a level from a file.</div></div>
<div class="ttc" id="aclassplatformer__engine_1_1AbstractLevelParser_html_aacc250ef60e68abece0ea9eed76a8bea"><div class="ttname"><a href="classplatformer__engine_1_1AbstractLevelParser.html#aacc250ef60e68abece0ea9eed76a8bea">platformer_engine::AbstractLevelParser::~AbstractLevelParser</a></div><div class="ttdeci">virtual ~AbstractLevelParser()=default</div></div>
<div class="ttc" id="aclassspic_1_1GameObject_html"><div class="ttname"><a href="classspic_1_1GameObject.html">spic::GameObject</a></div><div class="ttdoc">Any object which should be represented on screen.</div><div class="ttdef"><b>Definition:</b> GameObject.hpp:27</div></div>
<div class="ttc" id="aclassspic_1_1Scene_html"><div class="ttname"><a href="classspic_1_1Scene.html">spic::Scene</a></div><div class="ttdoc">Class representing a scene which can be rendered by the Camera.</div><div class="ttdef"><b>Definition:</b> Scene.hpp:19</div></div>
<div class="ttc" id="anamespaceplatformer__engine_html"><div class="ttname"><a href="namespaceplatformer__engine.html">platformer_engine</a></div><div class="ttdef"><b>Definition:</b> CollisionBehaviour.cpp:7</div></div>
<div class="ttc" id="astructspic_1_1Transform_html"><div class="ttname"><a href="structspic_1_1Transform.html">spic::Transform</a></div><div class="ttdoc">Instances of this class represent specific 2D transformations. @spicapi.</div><div class="ttdef"><b>Definition:</b> Transform.hpp:11</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>