aboutsummaryrefslogtreecommitdiffstats
path: root/doc/html/classMob.html
blob: 8ec896a4b4991da0d39d63377d825ff15f5021f9 (plain)
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!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.9.1"/>
<title>gamedev: Mob Class Reference</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>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</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">gamedev
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><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="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;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)">
</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><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classMob-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Mob Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for Mob:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classMob.png" usemap="#Mob_map" alt=""/>
  <map id="Mob_map" name="Mob_map">
<area href="classEntity.html" alt="Entity" shape="rect" coords="0,0,43,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad50eb95b46c938b241740a4d32722819"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad50eb95b46c938b241740a4d32722819"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Mob</b> (int)</td></tr>
<tr class="separator:ad50eb95b46c938b241740a4d32722819"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71d17d4e5ea4fe52e26d5915657c6a5a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a71d17d4e5ea4fe52e26d5915657c6a5a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Mob</b> (int, unsigned int)</td></tr>
<tr class="separator:a71d17d4e5ea4fe52e26d5915657c6a5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71c65ea9cab8e4c53c46ee37e24ea843"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a71c65ea9cab8e4c53c46ee37e24ea843"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>wander</b> (int)</td></tr>
<tr class="separator:a71c65ea9cab8e4c53c46ee37e24ea843"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classEntity"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classEntity')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classEntity.html">Entity</a></td></tr>
<tr class="memitem:a1ea7af40bd2d22c3ccffffb9d75449f1 inherit pub_methods_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1ea7af40bd2d22c3ccffffb9d75449f1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>draw</b> (void)</td></tr>
<tr class="separator:a1ea7af40bd2d22c3ccffffb9d75449f1 inherit pub_methods_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a395847a44327233974bdb6c546412f72 inherit pub_methods_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a395847a44327233974bdb6c546412f72"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>spawn</b> (float, float)</td></tr>
<tr class="separator:a395847a44327233974bdb6c546412f72 inherit pub_methods_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad35d2bfa6b5f2af9c433177b455f20b inherit pub_methods_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aad35d2bfa6b5f2af9c433177b455f20b"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>interact</b> ()</td></tr>
<tr class="separator:aad35d2bfa6b5f2af9c433177b455f20b inherit pub_methods_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:af70bc5294f024ff06e980452f1aea3f0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af70bc5294f024ff06e980452f1aea3f0"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>init_y</b></td></tr>
<tr class="separator:af70bc5294f024ff06e980452f1aea3f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0639f1baf866a935194372473734033"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae0639f1baf866a935194372473734033"></a>
void(*&#160;</td><td class="memItemRight" valign="bottom"><b>hey</b> )(<a class="el" href="classMob.html">Mob</a> *callee)</td></tr>
<tr class="separator:ae0639f1baf866a935194372473734033"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_classEntity"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classEntity')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="classEntity.html">Entity</a></td></tr>
<tr class="memitem:ac755b0547e12f4b00472fec833807069 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac755b0547e12f4b00472fec833807069"></a>
<a class="el" href="classInventory.html">Inventory</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>inv</b></td></tr>
<tr class="separator:ac755b0547e12f4b00472fec833807069 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb76fb5ae8ce6d4410feac55f082c139 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afb76fb5ae8ce6d4410feac55f082c139"></a>
<a class="el" href="structvec2.html">vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><b>loc</b></td></tr>
<tr class="separator:afb76fb5ae8ce6d4410feac55f082c139 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59d3befa027c6c003b80651d79efae32 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a59d3befa027c6c003b80651d79efae32"></a>
<a class="el" href="structvec2.html">vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><b>vel</b></td></tr>
<tr class="separator:a59d3befa027c6c003b80651d79efae32 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adadfcc784f30b51b8e49f8230a56b793 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adadfcc784f30b51b8e49f8230a56b793"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>width</b></td></tr>
<tr class="separator:adadfcc784f30b51b8e49f8230a56b793 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4550dc1011f47f6c4bb86e564e7d605b inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4550dc1011f47f6c4bb86e564e7d605b"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>height</b></td></tr>
<tr class="separator:a4550dc1011f47f6c4bb86e564e7d605b inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1de3d8d9ab8088f61e6726069b26fa60 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1de3d8d9ab8088f61e6726069b26fa60"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>speed</b></td></tr>
<tr class="separator:a1de3d8d9ab8088f61e6726069b26fa60 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad25b1a16a6b7b5affbf59b831b86ef69 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad25b1a16a6b7b5affbf59b831b86ef69"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>near</b></td></tr>
<tr class="separator:ad25b1a16a6b7b5affbf59b831b86ef69 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3592b1453f4fae35f012f1c3a41a0a0 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac3592b1453f4fae35f012f1c3a41a0a0"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>canMove</b></td></tr>
<tr class="separator:ac3592b1453f4fae35f012f1c3a41a0a0 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4089f437394654df9439248876b704d7 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4089f437394654df9439248876b704d7"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>right</b></td></tr>
<tr class="separator:a4089f437394654df9439248876b704d7 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae64dc68118771cee108ec9a69d0adcc3 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae64dc68118771cee108ec9a69d0adcc3"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>left</b></td></tr>
<tr class="separator:ae64dc68118771cee108ec9a69d0adcc3 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d09a7e175d9dcfbfb359e5f74f2e692 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0d09a7e175d9dcfbfb359e5f74f2e692"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>alive</b></td></tr>
<tr class="separator:a0d09a7e175d9dcfbfb359e5f74f2e692 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c8b0ce760cf77a2ba9b8d1c37209fd7 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2c8b0ce760cf77a2ba9b8d1c37209fd7"></a>
unsigned char&#160;</td><td class="memItemRight" valign="bottom"><b>ground</b></td></tr>
<tr class="separator:a2c8b0ce760cf77a2ba9b8d1c37209fd7 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a854c9b7a8ed49aae4538734df4915727 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a854c9b7a8ed49aae4538734df4915727"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>health</b></td></tr>
<tr class="separator:a854c9b7a8ed49aae4538734df4915727 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59499f3d9d7def4f5a5cab1c9c30f570 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a59499f3d9d7def4f5a5cab1c9c30f570"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>maxHealth</b></td></tr>
<tr class="separator:a59499f3d9d7def4f5a5cab1c9c30f570 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85be7fcdcdedefeccf05daf80d3bcc73 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a85be7fcdcdedefeccf05daf80d3bcc73"></a>
_TYPE&#160;</td><td class="memItemRight" valign="bottom"><b>type</b></td></tr>
<tr class="separator:a85be7fcdcdedefeccf05daf80d3bcc73 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80eea5b24c587dc4ae6beba6c8b3d5b5 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a80eea5b24c587dc4ae6beba6c8b3d5b5"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>subtype</b></td></tr>
<tr class="separator:a80eea5b24c587dc4ae6beba6c8b3d5b5 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a861f653e2ffbe97c0deed7ab85eb7ce6 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a861f653e2ffbe97c0deed7ab85eb7ce6"></a>
char *&#160;</td><td class="memItemRight" valign="bottom"><b>name</b></td></tr>
<tr class="separator:a861f653e2ffbe97c0deed7ab85eb7ce6 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89bc767973827fd8512643f8d2e05837 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a89bc767973827fd8512643f8d2e05837"></a>
GENDER&#160;</td><td class="memItemRight" valign="bottom"><b>gender</b></td></tr>
<tr class="separator:a89bc767973827fd8512643f8d2e05837 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af664044f029b81c097cb3e6e0d987fb3 inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af664044f029b81c097cb3e6e0d987fb3"></a>
<a class="el" href="classTexturec.html">Texturec</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>tex</b></td></tr>
<tr class="separator:af664044f029b81c097cb3e6e0d987fb3 inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9cb580e6e12bace5a86c955e25f8825c inherit pub_attribs_classEntity"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9cb580e6e12bace5a86c955e25f8825c"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>ticksToUse</b></td></tr>
<tr class="separator:a9cb580e6e12bace5a86c955e25f8825c inherit pub_attribs_classEntity"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/<a class="el" href="entities_8h_source.html">entities.h</a></li>
<li>src/entities.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>