-
Notifications
You must be signed in to change notification settings - Fork 2
/
action_8hpp_source.html
169 lines (167 loc) · 19.5 KB
/
action_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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>OpenMW: /home/travis/build/OpenMW/openmw/apps/openmw/mwworld/action.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/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script src="http://cdn.mathjax.org/mathjax/latest/MathJax.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 style="padding-left: 0.5em;">
<div id="projectname">OpenMW
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<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="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</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><a href="examples.html"><span>Examples</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>
<!-- 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>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(12)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(13)"><span class="SelectionMark"> </span>Pages</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>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_9654b8d08f4bba4e84b362c5fd320bee.html">apps</a></li><li class="navelem"><a class="el" href="dir_9edfe748cccf561d6c3b74e2990846ba.html">openmw</a></li><li class="navelem"><a class="el" href="dir_0a13f02c7c3acddfdddc52c8129ecf59.html">mwworld</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">action.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="action_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 GAME_MWWORLD_ACTION_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor"></span><span class="preprocessor">#define GAME_MWWORLD_ACTION_H</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <string></span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include "<a class="code" href="ptr_8hpp.html">ptr.hpp</a>"</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>MWWorld</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> {</div>
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="classMWWorld_1_1Action.html"> 11</a></span>  <span class="keyword">class </span><a class="code" href="classMWWorld_1_1Action.html">Action</a></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  {</div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classMWWorld_1_1Action.html#a7f2cb218d27d413b9db214c469402914"> 13</a></span>  std::string <a class="code" href="classMWWorld_1_1Action.html#a7f2cb218d27d413b9db214c469402914">mSoundId</a>;</div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="classMWWorld_1_1Action.html#a6f875c9cff8a9b43b74fa869dca4c9c2"> 14</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classMWWorld_1_1Action.html#a6f875c9cff8a9b43b74fa869dca4c9c2">mKeepSound</a>;</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="classMWWorld_1_1Action.html#a2d7c2be08e723ecf45bcdc922b010407"> 15</a></span>  <span class="keywordtype">float</span> <a class="code" href="classMWWorld_1_1Action.html#a2d7c2be08e723ecf45bcdc922b010407">mSoundOffset</a>;</div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classMWWorld_1_1Action.html#acf9ca088d9c86db719320f4edf4d8166"> 16</a></span>  <a class="code" href="classMWWorld_1_1Ptr.html">Ptr</a> <a class="code" href="classMWWorld_1_1Action.html#acf9ca088d9c86db719320f4edf4d8166">mTarget</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="comment">// not implemented</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <a class="code" href="classMWWorld_1_1Action.html#a1063327216e4c73589d05d5cbdde1c6b">Action</a> (<span class="keyword">const</span> <a class="code" href="classMWWorld_1_1Action.html">Action</a>& action);</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <a class="code" href="classMWWorld_1_1Action.html">Action</a>& <a class="code" href="classMWWorld_1_1Action.html#ac68df534589edb6ffac38225c0b9d852">operator= </a>(<span class="keyword">const</span> <a class="code" href="classMWWorld_1_1Action.html">Action</a>& action);</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classMWWorld_1_1Action.html#a48e5b6d605726f89dc550288cc50a3c2">executeImp</a> (<span class="keyword">const</span> <a class="code" href="classMWWorld_1_1Ptr.html">Ptr</a>& actor) = 0;</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keywordtype">void</span> <a class="code" href="classMWWorld_1_1Action.html#a0350d058e707a3345492f276294f1487">setTarget</a>(<span class="keyword">const</span> <a class="code" href="classMWWorld_1_1Ptr.html">Ptr</a>&);</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keyword">const</span> <a class="code" href="classMWWorld_1_1Ptr.html">Ptr</a>& <a class="code" href="classMWWorld_1_1Action.html#a6f251a38ff6fdedac4169c8c4f327088">getTarget</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="code" href="classMWWorld_1_1Action.html#a1063327216e4c73589d05d5cbdde1c6b">Action</a> (<span class="keywordtype">bool</span> keepSound = <span class="keyword">false</span>, <span class="keyword">const</span> <a class="code" href="classMWWorld_1_1Ptr.html">Ptr</a>& target = <a class="code" href="classMWWorld_1_1Ptr.html">Ptr</a>());</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keyword">virtual</span> <a class="code" href="classMWWorld_1_1Action.html#a3ce6247bd49896daaa15f40479c4efea">~Action</a>();</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classMWWorld_1_1Action.html#aa50da4c525b43175ccd7071737a5b443"> 37</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classMWWorld_1_1Action.html#aa50da4c525b43175ccd7071737a5b443">isNullAction</a>() { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordtype">void</span> <a class="code" href="classMWWorld_1_1Action.html#aff8076501d1af8d06047220802293b5c">execute</a> (<span class="keyword">const</span> <a class="code" href="classMWWorld_1_1Ptr.html">Ptr</a>& actor);</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordtype">void</span> <a class="code" href="classMWWorld_1_1Action.html#af710c7b43d6ee6f72c4a8e75f6c9e42b">setSound</a> (<span class="keyword">const</span> std::string& <span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">void</span> <a class="code" href="classMWWorld_1_1Action.html#a221a63f80f3909f754076f09caa00e0d">setSoundOffset</a>(<span class="keywordtype">float</span> offset);</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  };</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> }</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor">#endif</span></div>
<div class="ttc" id="classMWWorld_1_1Action_html_af710c7b43d6ee6f72c4a8e75f6c9e42b"><div class="ttname"><a href="classMWWorld_1_1Action.html#af710c7b43d6ee6f72c4a8e75f6c9e42b">MWWorld::Action::setSound</a></div><div class="ttdeci">void setSound(const std::string &id)</div><div class="ttdef"><b>Definition:</b> action.cpp:53</div></div>
<div class="ttc" id="classMWWorld_1_1Action_html_acf9ca088d9c86db719320f4edf4d8166"><div class="ttname"><a href="classMWWorld_1_1Action.html#acf9ca088d9c86db719320f4edf4d8166">MWWorld::Action::mTarget</a></div><div class="ttdeci">Ptr mTarget</div><div class="ttdef"><b>Definition:</b> action.hpp:16</div></div>
<div class="ttc" id="classMWWorld_1_1Action_html_a1063327216e4c73589d05d5cbdde1c6b"><div class="ttname"><a href="classMWWorld_1_1Action.html#a1063327216e4c73589d05d5cbdde1c6b">MWWorld::Action::Action</a></div><div class="ttdeci">Action(const Action &action)</div></div>
<div class="ttc" id="classMWWorld_1_1Action_html"><div class="ttname"><a href="classMWWorld_1_1Action.html">MWWorld::Action</a></div><div class="ttdoc">Abstract base for actions. </div><div class="ttdef"><b>Definition:</b> action.hpp:11</div></div>
<div class="ttc" id="classMWWorld_1_1Action_html_a0350d058e707a3345492f276294f1487"><div class="ttname"><a href="classMWWorld_1_1Action.html#a0350d058e707a3345492f276294f1487">MWWorld::Action::setTarget</a></div><div class="ttdeci">void setTarget(const Ptr &)</div><div class="ttdef"><b>Definition:</b> action.cpp:15</div></div>
<div class="ttc" id="classMWWorld_1_1Action_html_a221a63f80f3909f754076f09caa00e0d"><div class="ttname"><a href="classMWWorld_1_1Action.html#a221a63f80f3909f754076f09caa00e0d">MWWorld::Action::setSoundOffset</a></div><div class="ttdeci">void setSoundOffset(float offset)</div><div class="ttdef"><b>Definition:</b> action.cpp:58</div></div>
<div class="ttc" id="ptr_8hpp_html"><div class="ttname"><a href="ptr_8hpp.html">ptr.hpp</a></div></div>
<div class="ttc" id="classMWWorld_1_1Action_html_a7f2cb218d27d413b9db214c469402914"><div class="ttname"><a href="classMWWorld_1_1Action.html#a7f2cb218d27d413b9db214c469402914">MWWorld::Action::mSoundId</a></div><div class="ttdeci">std::string mSoundId</div><div class="ttdef"><b>Definition:</b> action.hpp:13</div></div>
<div class="ttc" id="classMWWorld_1_1Action_html_a6f251a38ff6fdedac4169c8c4f327088"><div class="ttname"><a href="classMWWorld_1_1Action.html#a6f251a38ff6fdedac4169c8c4f327088">MWWorld::Action::getTarget</a></div><div class="ttdeci">const Ptr & getTarget() const </div><div class="ttdef"><b>Definition:</b> action.cpp:10</div></div>
<div class="ttc" id="classMWWorld_1_1Action_html_a48e5b6d605726f89dc550288cc50a3c2"><div class="ttname"><a href="classMWWorld_1_1Action.html#a48e5b6d605726f89dc550288cc50a3c2">MWWorld::Action::executeImp</a></div><div class="ttdeci">virtual void executeImp(const Ptr &actor)=0</div></div>
<div class="ttc" id="classMWWorld_1_1Action_html_ac68df534589edb6ffac38225c0b9d852"><div class="ttname"><a href="classMWWorld_1_1Action.html#ac68df534589edb6ffac38225c0b9d852">MWWorld::Action::operator=</a></div><div class="ttdeci">Action & operator=(const Action &action)</div></div>
<div class="ttc" id="classMWWorld_1_1Action_html_aa50da4c525b43175ccd7071737a5b443"><div class="ttname"><a href="classMWWorld_1_1Action.html#aa50da4c525b43175ccd7071737a5b443">MWWorld::Action::isNullAction</a></div><div class="ttdeci">virtual bool isNullAction()</div><div class="ttdoc">Is running this action a no-op? (default false) </div><div class="ttdef"><b>Definition:</b> action.hpp:37</div></div>
<div class="ttc" id="classMWWorld_1_1Action_html_a6f875c9cff8a9b43b74fa869dca4c9c2"><div class="ttname"><a href="classMWWorld_1_1Action.html#a6f875c9cff8a9b43b74fa869dca4c9c2">MWWorld::Action::mKeepSound</a></div><div class="ttdeci">bool mKeepSound</div><div class="ttdef"><b>Definition:</b> action.hpp:14</div></div>
<div class="ttc" id="classMWWorld_1_1Action_html_a3ce6247bd49896daaa15f40479c4efea"><div class="ttname"><a href="classMWWorld_1_1Action.html#a3ce6247bd49896daaa15f40479c4efea">MWWorld::Action::~Action</a></div><div class="ttdeci">virtual ~Action()</div><div class="ttdef"><b>Definition:</b> action.cpp:23</div></div>
<div class="ttc" id="classMWWorld_1_1Action_html_a2d7c2be08e723ecf45bcdc922b010407"><div class="ttname"><a href="classMWWorld_1_1Action.html#a2d7c2be08e723ecf45bcdc922b010407">MWWorld::Action::mSoundOffset</a></div><div class="ttdeci">float mSoundOffset</div><div class="ttdef"><b>Definition:</b> action.hpp:15</div></div>
<div class="ttc" id="classMWWorld_1_1Ptr_html"><div class="ttname"><a href="classMWWorld_1_1Ptr.html">MWWorld::Ptr</a></div><div class="ttdoc">Pointer to a LiveCellRef. </div><div class="ttdef"><b>Definition:</b> ptr.hpp:19</div></div>
<div class="ttc" id="classMWWorld_1_1Action_html_aff8076501d1af8d06047220802293b5c"><div class="ttname"><a href="classMWWorld_1_1Action.html#aff8076501d1af8d06047220802293b5c">MWWorld::Action::execute</a></div><div class="ttdeci">void execute(const Ptr &actor)</div><div class="ttdef"><b>Definition:</b> action.cpp:25</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jan 24 2017 02:05:51 for OpenMW by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>