ege/_environement_8hpp_source.html
2016-10-23 23:04:40 +02:00

200 lines
47 KiB
HTML

<!-- HTML header for doxygen 1.8.8-->
<!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="X-UA-Compatible" content="IE=edge">
<!-- For Mobile Devices -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<title>Ewol Game engine (based on bullet lib): framework/atria-soft/ege/ege/Environement.hpp Source File</title>
<!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
<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>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="doxy-boot.js"></script>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand">Ewol Game engine (based on bullet lib) 0.3.0</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Main&nbsp;Page</a></li>
<li><a href="pages.html">Related&nbsp;Pages</a></li>
<li><a href="namespaces.html">Namespaces</a></li>
<li><a href="annotated.html">Classes</a></li>
<li><a href="files.html">Files</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
Link-libs<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="http://HeeroYui.github.io/lutin">lutin</a></li>
<li><a href="http://atria-soft.github.io/ewol">ewol</a></li>
<li><a href="http://atria-soft.github.io/etk">etk</a></li>
<li><a href="http://atria-soft.github.io/ejson">ejson</a></li>
<li><a href="http://atria-soft.github.io/exml">exml</a></li>
<li><a href="http://atria-soft.github.io/esvg">esvg</a></li>
<li><a href="http://atria-soft.github.io/egami">egami</a></li>
<li><a href="http://atria-soft.github.io/gale">gale</a></li>
<li><a href="http://atria-soft.github.io/ege">ege</a></li>
<li><a href="http://atria-soft.github.io/elog">elog</a></li>
<li><a href="http://atria-soft.github.io/ememory">ememory</a></li>
<li><a href="http://atria-soft.github.io/enet">enet</a></li>
<li><a href="http://atria-soft.github.io/eproperty">eproperty</a></li>
<li><a href="http://atria-soft.github.io/esignal">esignal</a></li>
<li><a href="http://atria-soft.github.io/zeus">zeus</a></li>
<li><a href="http://atria-soft.github.io/audio-ess">audio-ess</a></li>
<li><a href="http://musicdsp.github.io/audio">audio</a></li>
<li><a href="http://musicdsp.github.io/audio-drain">audio-drain</a></li>
<li><a href="http://musicdsp.github.io/audio-orchestra">audio-orchestra</a></li>
<li><a href="http://musicdsp.github.io/audio-river">audio-river</a></li>
</ul>
</li>
</ul>
<div id="search-box" class="input-group">
<div class="input-group-btn">
<button aria-expanded="false" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-search"></span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">All</a></li>
<li><a href="#">Classes</a></li>
<li><a href="#">Namespaces</a></li>
<li><a href="#">Files</a></li>
<li><a href="#">Functions</a></li>
<li><a href="#">Variables</a></li>
<li><a href="#">Typedefs</a></li>
<li><a href="#">Enumerations</a></li>
<li><a href="#">Enumerator</a></li>
<li><a href="#">Friends</a></li>
<li><a href="#">Macros</a></li>
<li><a href="#">Pages</a></li>
</ul>
</div>
<button id="search-close" type="button" class="close" aria-label="Close">
<span aria-hidden="true"></span>
</button>
<input id="search-field" class="form-control" accesskey="S" onkeydown="searchBox.OnSearchFieldChange(event);" placeholder="Search ..." type="text">
</div>
</div><!--/.nav-collapse -->
</div>
</nav>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div class="content" id="content">
<div class="container">
<div class="row">
<div class="col-sm-12 panel panel-default" style="padding-bottom: 15px;">
<div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<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><a href="pages.html"><span>Related&#160;Pages</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&#160;List</span></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)">
</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_644e041c3a6521da7b27eba0e4eb2b95.html">framework</a></li><li class="navelem"><a class="el" href="dir_a094892b17be858f66bf3446bbb755c7.html">atria-soft</a></li><li class="navelem"><a class="el" href="dir_6aa09a6913ac62e7dd072c5c01fe4d4f.html">ege</a></li><li class="navelem"><a class="el" href="dir_c7b93e6f668982dd2d9141ef602a101b.html">ege</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Environement.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="_environement_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>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceege.html">ege</a> {</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160; <span class="keyword">class </span>Environement;</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160; <span class="keyword">class </span>ElementInteraction;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;};</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="_camera_8hpp.html">ege/camera/Camera.hpp</a>&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="_particule_engine_8hpp.html">ege/ParticuleEngine.hpp</a>&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/types_8hpp.html">etk/types.hpp</a>&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#include &lt;BulletDynamics/Dynamics/btActionInterface.h&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="keyword">class </span>btDynamicsWorld;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/_vector3_d_8hpp.html">etk/math/Vector3D.hpp</a>&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;ejson/ejson.hpp&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;exml/exml.hpp&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;ewol/object/Object.hpp&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;esignal/Signal.hpp&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;ewol/event/Time.hpp&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;eproperty/Value.hpp&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="resource_2_mesh_8hpp.html">ege/resource/Mesh.hpp</a>&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="_engine_8hpp.html">ege/physics/Engine.hpp</a>&gt;</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceege.html">ege</a> {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keyword">class </span>Element;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <span class="keyword">class </span>Environement;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; <span class="keyword">typedef</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ege::Element&gt;</a> (*createElement_tf)(<span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ege::Environement&gt;</a>&amp; _env);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="keyword">enum</span> gameStatus {</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; gameStart,</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; gamePause,</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; gameStop</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; };</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; </div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classege_1_1_element_interaction.html"> 41</a></span>&#160; <span class="keyword">class </span><a class="code" href="classege_1_1_element_interaction.html">ElementInteraction</a> {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; int32_t m_type;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; int32_t getType() {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keywordflow">return</span> m_type;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; };</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; int32_t m_groupSource;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; int32_t getSourceGroup() {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keywordflow">return</span> m_groupSource;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; };</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; std::vector&lt;int32_t&gt; m_groupDestination;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keyword">const</span> std::vector&lt;int32_t&gt;&amp; getDestinationGroup() {</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordflow">return</span> m_groupDestination;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; };</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordtype">void</span> addGroupDestination(int32_t _id) {</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; m_groupDestination.push_back(_id);</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; };</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector3_d.html">vec3</a> m_positionSource;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector3_d.html">vec3</a>&amp; getSourcePosition() {</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="keywordflow">return</span> m_positionSource;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; };</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <a class="code" href="classege_1_1_element_interaction.html">ElementInteraction</a>(int32_t _type, int32_t _groupSource, <span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector3_d.html">vec3</a>&amp; _pos) : </div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; m_type(_type),</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; m_groupSource(_groupSource),</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; m_positionSource(_pos)</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; { };</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> applyEvent(<a class="code" href="classege_1_1_element.html">ege::Element</a>&amp; _element) { };</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; };</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; </div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classege_1_1_environement.html"> 79</a></span>&#160; <span class="keyword">class </span><a class="code" href="classege_1_1_environement.html">Environement</a> : <span class="keyword">public</span> ewol::Object {</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="comment">// Signals</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; esignal::Signal&lt;float&gt; signalPlayTimeChange;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="comment">// properties:</span></div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classege_1_1_environement.html#adaf122667e0a9ee4f3c1959d6080e42b"> 84</a></span>&#160; eproperty::List&lt;enum gameStatus&gt; <a class="code" href="classege_1_1_environement.html#adaf122667e0a9ee4f3c1959d6080e42b">propertyStatus</a>; </div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classege_1_1_environement.html#a55982c1b8454426976d35a1ee017d910"> 85</a></span>&#160; eproperty::Value&lt;float&gt; <a class="code" href="classege_1_1_environement.html#a55982c1b8454426976d35a1ee017d910">propertyRatio</a>; </div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="comment">//ememory::SharedPtr&lt;btDynamicsWorld&gt; m_dynamicsWorld; //!&lt; curent system world description</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <a class="code" href="classege_1_1physics_1_1_engine.html">ege::physics::Engine</a> m_physicEngine; </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; std::vector&lt;ememory::SharedPtr&lt;ege::Element&gt;&gt; m_listElement; </div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <a class="code" href="classege_1_1_environement.html">Environement</a>();</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; DECLARE_FACTORY(<a class="code" href="classege_1_1_environement.html">Environement</a>);</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classege_1_1_environement.html#a018ec659aa1859825da4e6ea86ef63a3"> 94</a></span>&#160; <span class="keyword">virtual</span> ~<a class="code" href="classege_1_1_environement.html">Environement</a>() { };</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; std::map&lt;std::string, ememory::SharedPtr&lt;ege::Camera&gt;&gt; <a class="code" href="classege_1_1_environement.html#a018ec659aa1859825da4e6ea86ef63a3">m_listCamera</a>; </div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keywordtype">void</span> addCamera(<span class="keyword">const</span> std::string&amp; _name, <span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ege::Camera&gt;</a>&amp; _camera);</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ege::Camera&gt;</a> getCamera(<span class="keyword">const</span> std::string&amp; _name);</div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classege_1_1_environement.html#ae62e5d74775fb1ec283c912a58da9cc8"> 115</a></span>&#160; std::map&lt;std::string, ememory::SharedPtr&lt;ege::Camera&gt;&gt; <a class="code" href="classege_1_1_environement.html#ae62e5d74775fb1ec283c912a58da9cc8">getCameraList</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keywordflow">return</span> m_listCamera;</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; }</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keywordtype">void</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/_matrix_8hpp.html#ac8bb3912a3ce86b15842e79d0b421204">clear</a>();</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> addCreator(<span class="keyword">const</span> std::string&amp; _type, ege::createElement_tf _creator);</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ege::Element&gt;</a> createElement(<span class="keyword">const</span> std::string&amp; _type, <span class="keyword">const</span> std::string&amp; _description, <span class="keywordtype">bool</span> _autoAddElement=<span class="keyword">true</span>);</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ege::Element&gt;</a> createElement(<span class="keyword">const</span> std::string&amp; _type, <span class="keyword">const</span> ejson::Value&amp; _value, <span class="keywordtype">bool</span> _autoAddElement=<span class="keyword">true</span>);</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ege::Element&gt;</a> createElement(<span class="keyword">const</span> std::string&amp; _type, <span class="keyword">const</span> exml::Node&amp; _node, <span class="keywordtype">bool</span> _autoAddElement=<span class="keyword">true</span>);</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ege::Element&gt;</a> createElement(<span class="keyword">const</span> std::string&amp; _type, <span class="keywordtype">void</span>* _data, <span class="keywordtype">bool</span> _autoAddElement=<span class="keyword">true</span>);</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ege::Element&gt;</a> createElement(<span class="keyword">const</span> std::string&amp; _type, <span class="keywordtype">bool</span> _autoAddElement=<span class="keyword">true</span>);</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classege_1_1_environement_1_1_result_nearest_element.html"> 143</a></span>&#160; <span class="keyword">class </span><a class="code" href="classege_1_1_environement_1_1_result_nearest_element.html">ResultNearestElement</a> {</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ege::Element&gt;</a> element;</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="keywordtype">float</span> dist;</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; };</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;<span class="preprocessor"> #if 0</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="keywordtype">void</span> setDynamicWorld(<span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;btDynamicsWorld&gt;</a>&amp; _newWorld) {</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; m_dynamicsWorld=_newWorld;</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; };</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;btDynamicsWorld&gt;</a> getDynamicWorld() {</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keywordflow">return</span> m_dynamicsWorld;</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; };</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;<span class="preprocessor"> #endif</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <a class="code" href="classege_1_1physics_1_1_engine.html">ege::physics::Engine</a>&amp; getPhysicEngine() {</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="keywordflow">return</span> m_physicEngine;</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; }</div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="classege_1_1_environement.html#aff0d8ad5fe7643abb9c2e4ade355b663"> 171</a></span>&#160; std::vector&lt;ememory::SharedPtr&lt;ege::Element&gt;&gt;&amp; <a class="code" href="classege_1_1_environement.html#aff0d8ad5fe7643abb9c2e4ade355b663">getElement</a>() {</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="keywordflow">return</span> m_listElement;</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; };</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ege::Element&gt;</a> getElementNearest(<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ege::Element&gt;</a> _sourceRequest, <span class="keywordtype">float</span>&amp; _distance);</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; </div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keywordtype">void</span> getElementNearest(<span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector3_d.html">vec3</a>&amp; _sourcePosition,</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="keywordtype">float</span> _distanceMax,</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; std::vector&lt;ege::Environement::ResultNearestElement&gt;&amp; _resultList);</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <span class="keywordtype">void</span> getElementNearestFixed(<span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector3_d.html">vec3</a>&amp; _sourcePosition,</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keywordtype">float</span> _distanceMax,</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; std::vector&lt;ege::Environement::ResultNearestElement&gt;&amp; _resultList);</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <span class="keywordtype">void</span> addElement(<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ege::Element&gt;</a> _newElement);</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <span class="keywordtype">void</span> rmElement(<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ege::Element&gt;</a> _removeElement);</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; <span class="keywordtype">void</span> getOrderedElementForDisplay(std::vector&lt;ege::Environement::ResultNearestElement&gt;&amp; _resultList, <span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector3_d.html">vec3</a>&amp; _position, <span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector3_d.html">vec3</a>&amp; _direction);</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; <span class="keywordtype">void</span> generateInteraction(<a class="code" href="classege_1_1_element_interaction.html">ege::ElementInteraction</a>&amp; _event);</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; <a class="code" href="classege_1_1_particule_engine.html">ege::ParticuleEngine</a> m_particuleEngine; </div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="classege_1_1_environement.html#a7e7fa99137b2b14609eac6069169214b"> 217</a></span>&#160; <a class="code" href="classege_1_1_particule_engine.html">ege::ParticuleEngine</a>&amp; <a class="code" href="classege_1_1_environement.html#a7e7fa99137b2b14609eac6069169214b">getParticuleEngine</a>() {</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; <span class="keywordflow">return</span> m_particuleEngine;</div><div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="classege_1_1_environement.html#aa32f050b88d3c217c69a8a83e104dfd4"> 219</a></span>&#160; };</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; int64_t <a class="code" href="classege_1_1_environement.html#aa32f050b88d3c217c69a8a83e104dfd4">m_gameTime</a>; </div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; esignal::Connection m_periodicCallConnection;</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; <span class="keywordtype">void</span> onCallbackPeriodicCall(<span class="keyword">const</span> ewol::event::Time&amp; _event);</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; std::vector&lt;ememory::SharedPtr&lt;ege::resource::Mesh&gt;&gt; m_listMeshToDrawFirst;</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; <span class="keywordtype">void</span> addStaticMeshToDraw(<span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ege::resource::Mesh&gt;</a>&amp; _mesh) {</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; m_listMeshToDrawFirst.push_back(_mesh);</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; }</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; std::vector&lt;ememory::SharedPtr&lt;ege::resource::Mesh&gt;&gt;&amp; getStaticMeshToDraw() {</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; <span class="keywordflow">return</span> m_listMeshToDrawFirst;</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; }</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> onChangePropertyStatus();</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; };</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160;}</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160;</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160;</div><div class="ttc" id="resource_2_mesh_8hpp_html"><div class="ttname"><a href="resource_2_mesh_8hpp.html">Mesh.hpp</a></div></div>
<div class="ttc" id="classege_1_1_environement_html"><div class="ttname"><a href="classege_1_1_environement.html">ege::Environement</a></div><div class="ttdef"><b>Definition:</b> Environement.hpp:79</div></div>
<div class="ttc" id="classege_1_1_environement_html_ae62e5d74775fb1ec283c912a58da9cc8"><div class="ttname"><a href="classege_1_1_environement.html#ae62e5d74775fb1ec283c912a58da9cc8">ege::Environement::getCameraList</a></div><div class="ttdeci">std::map&lt; std::string, ememory::SharedPtr&lt; ege::Camera &gt; &gt; getCameraList() const </div><div class="ttdoc">Get List of all camera. </div><div class="ttdef"><b>Definition:</b> Environement.hpp:115</div></div>
<div class="ttc" id="classege_1_1_environement_1_1_result_nearest_element_html"><div class="ttname"><a href="classege_1_1_environement_1_1_result_nearest_element.html">ege::Environement::ResultNearestElement</a></div><div class="ttdef"><b>Definition:</b> Environement.hpp:143</div></div>
<div class="ttc" id="classege_1_1_environement_html_a7e7fa99137b2b14609eac6069169214b"><div class="ttname"><a href="classege_1_1_environement.html#a7e7fa99137b2b14609eac6069169214b">ege::Environement::getParticuleEngine</a></div><div class="ttdeci">ege::ParticuleEngine &amp; getParticuleEngine()</div><div class="ttdoc">get the particule engine reference. </div><div class="ttdef"><b>Definition:</b> Environement.hpp:217</div></div>
<div class="ttc" id="types_8hpp_html"><div class="ttname"><a href="http://atria-soft.github.io/etk/types_8hpp.html">types.hpp</a></div></div>
<div class="ttc" id="namespaceege_html"><div class="ttname"><a href="namespaceege.html">ege</a></div><div class="ttdef"><b>Definition:</b> AudioElement.hpp:8</div></div>
<div class="ttc" id="classege_1_1_particule_engine_html"><div class="ttname"><a href="classege_1_1_particule_engine.html">ege::ParticuleEngine</a></div><div class="ttdef"><b>Definition:</b> ParticuleEngine.hpp:16</div></div>
<div class="ttc" id="classege_1_1physics_1_1_engine_html"><div class="ttname"><a href="classege_1_1physics_1_1_engine.html">ege::physics::Engine</a></div><div class="ttdef"><b>Definition:</b> Engine.hpp:41</div></div>
<div class="ttc" id="_matrix_8hpp_html_ac8bb3912a3ce86b15842e79d0b421204"><div class="ttname"><a href="http://atria-soft.github.io/etk/_matrix_8hpp.html#ac8bb3912a3ce86b15842e79d0b421204">clear</a></div><div class="ttdeci">void clear()</div></div>
<div class="ttc" id="_engine_8hpp_html"><div class="ttname"><a href="_engine_8hpp.html">Engine.hpp</a></div></div>
<div class="ttc" id="classege_1_1_element_interaction_html"><div class="ttname"><a href="classege_1_1_element_interaction.html">ege::ElementInteraction</a></div><div class="ttdef"><b>Definition:</b> Environement.hpp:41</div></div>
<div class="ttc" id="_vector3_d_8hpp_html"><div class="ttname"><a href="http://atria-soft.github.io/etk/_vector3_d_8hpp.html">Vector3D.hpp</a></div></div>
<div class="ttc" id="classetk_1_1_vector3_d_html"><div class="ttname"><a href="http://atria-soft.github.io/etk/classetk_1_1_vector3_d.html">etk::Vector3D&lt; float &gt;</a></div></div>
<div class="ttc" id="classege_1_1_environement_html_aa32f050b88d3c217c69a8a83e104dfd4"><div class="ttname"><a href="classege_1_1_environement.html#aa32f050b88d3c217c69a8a83e104dfd4">ege::Environement::m_gameTime</a></div><div class="ttdeci">int64_t m_gameTime</div><div class="ttdoc">time of the game running </div><div class="ttdef"><b>Definition:</b> Environement.hpp:219</div></div>
<div class="ttc" id="classememory_1_1_shared_ptr_html"><div class="ttname"><a href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr</a></div></div>
<div class="ttc" id="classege_1_1_environement_html_a55982c1b8454426976d35a1ee017d910"><div class="ttname"><a href="classege_1_1_environement.html#a55982c1b8454426976d35a1ee017d910">ege::Environement::propertyRatio</a></div><div class="ttdeci">eproperty::Value&lt; float &gt; propertyRatio</div><div class="ttdoc">Speed ratio. </div><div class="ttdef"><b>Definition:</b> Environement.hpp:85</div></div>
<div class="ttc" id="classege_1_1_environement_html_a018ec659aa1859825da4e6ea86ef63a3"><div class="ttname"><a href="classege_1_1_environement.html#a018ec659aa1859825da4e6ea86ef63a3">ege::Environement::m_listCamera</a></div><div class="ttdeci">std::map&lt; std::string, ememory::SharedPtr&lt; ege::Camera &gt; &gt; m_listCamera</div><div class="ttdoc">list of all camera in the world </div><div class="ttdef"><b>Definition:</b> Environement.hpp:94</div></div>
<div class="ttc" id="classege_1_1_environement_html_adaf122667e0a9ee4f3c1959d6080e42b"><div class="ttname"><a href="classege_1_1_environement.html#adaf122667e0a9ee4f3c1959d6080e42b">ege::Environement::propertyStatus</a></div><div class="ttdeci">eproperty::List&lt; enum gameStatus &gt; propertyStatus</div><div class="ttdoc">the display is running (not in pause) </div><div class="ttdef"><b>Definition:</b> Environement.hpp:84</div></div>
<div class="ttc" id="classege_1_1_environement_html_aff0d8ad5fe7643abb9c2e4ade355b663"><div class="ttname"><a href="classege_1_1_environement.html#aff0d8ad5fe7643abb9c2e4ade355b663">ege::Environement::getElement</a></div><div class="ttdeci">std::vector&lt; ememory::SharedPtr&lt; ege::Element &gt; &gt; &amp; getElement()</div><div class="ttdef"><b>Definition:</b> Environement.hpp:171</div></div>
<div class="ttc" id="classege_1_1_element_html"><div class="ttname"><a href="classege_1_1_element.html">ege::Element</a></div><div class="ttdef"><b>Definition:</b> Element.hpp:28</div></div>
<div class="ttc" id="_camera_8hpp_html"><div class="ttname"><a href="_camera_8hpp.html">Camera.hpp</a></div></div>
<div class="ttc" id="_particule_engine_8hpp_html"><div class="ttname"><a href="_particule_engine_8hpp.html">ParticuleEngine.hpp</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated on Sun Oct 23 2016 22:01:41 for Ewol Game engine (based on bullet lib) by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>