aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/move__primitive_8h-source.html
blob: 51f64245ecfcad504369c359865ea90d8c077c80 (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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
	<TITLE>nevrax.org : docs</TITLE>
	<LINK REL=stylesheet TYPE="text/css" HREF="/inc/css/nevrax.css">
	<link href="doxygen.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY MARGINHEIGHT="0" MARGINWIDTH="0">

<!-- uplinks -->
<TABLE CELLSPACING=0 CELLPADDING=0  BORDER=0>
 <TR>
        <TD WIDTH=16><IMG  SRC="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
        <TD WIDTH=140 BGCOLOR=#dddddd><IMG  SRC="/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD>
        <TD WIDTH=16><IMG  SRC="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
        <TD><IMG width=6 height=14 SRC="/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF='/'><b>Home</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
        <TD><IMG  width=6 height=14  SRC="/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF='/'><b>nevrax.com</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
 </TR>
</TABLE> 

<!-- banner Nevrax -->
<TABLE CELLSPACING=0 CELLPADDING=0  BORDER=0 WIDTH=100%>
 <TR><TD  BGCOLOR="#000000" BACKGROUND="/inc/img/black_banner.jpg"><A HREF=""><IMG  SRC="/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR>
</TABLE>

<!-- main table -->
<TABLE CELLSPACING=0 CELLPADDING=0  BORDER=0 height=100%>
 <TR>
	<TD WIDTH=16><IMG  SRC="/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD>
	<TD WIDTH=140   BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG  SRC="/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">

		<!------ Begin Box ------>
		<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0  cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black>
		<FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td  colspan=2 bgcolor=#FFFFFF>
		<TABLE cellspacing=0 cellpadding=1 border=0>
			<tr><td ALIGN=middle><a  class='linkbox' href="/news/" TITLE="Rubrique news"><img width=13 height=15  hspace=5 border=0 src=/inc/img/picto-news.gif ALT=#></A></td><td><a  class='linkbox' href="/news/" TITLE="News">News</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/mail/" TITLE="Rubrique mail"><img width=15 height=11  hspace=5 border=0 src=/inc/img/picto-mail.gif ALT=#></A></td><td><a  class='linkbox' href="/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/docs/" TITLE="Rubrique docs"><img width=14 height=16  hspace=5 border=0 src=/inc/img/picto-docs.gif ALT=#></A></td><td><a  class='linkbox' href="/docs/" TITLE="Documentation">Documentation</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/cvs/" TITLE="Rubrique cvs"><img width=13 height=17  hspace=5 border=0 src=/inc/img/picto-cvs.gif ALT=#></A></td><td><a  class='linkbox' href="/cvs/" TITLE="CVS Web">CVS</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/bugs/" TITLE="Rubrique bugs"><img width=20 height=16  hspace=5 border=0 src=/inc/img/picto-bugs.gif ALT=#></A></td><td><a  class='linkbox' href="/bugs/" TITLE="Bugtracking">Bugs</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/GPL.php3" TITLE="Rubrique license"><img  width=18 height=12   hspace=5 border=0 src=/inc/img/picto-gpl.gif ALT=#></A></td><td><a  class='linkbox' href="/GPL.php3" TITLE="License">License</a></td></tr>
		</TABLE>
		</TD></TR></TABLE></TD></TR></TABLE>
		<!------ End Box  ------>

	</TD>
	<TD WIDTH=15><IMG  SRC="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
	<TD ALIGN=left valign=top><IMG  SRC="/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">

<!-- title -->
<TABLE  background="/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0  BORDER=0 width=100%><tr><td>
<A HREF="/docs/"><img src="/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A>
</td><td><IMG  SRC="/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT="">
</td></tr></table>
&nbsp;

<!-- block -->
<TABLE  bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0  BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="/inc/img/reddots.gif"></TD>
	<TD><B>Documentation</B></TD>
	<TD ALIGN=RIGHT>&nbsp;</td>
</tr></table>
<!-- Generated by Doxygen 1.2.14 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <a class="qindexRef" doxygen="_cgi:/cgi-bin/nel-search.cgi" href="/cgi-bin/nel-search.cgi">Search</a> &nbsp; </center>
<hr><h1>move_primitive.h</h1><a href="move__primitive_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 
00007 <font class="comment">/* Copyright, 2001 Nevrax Ltd.</font>
00008 <font class="comment"> *</font>
00009 <font class="comment"> * This file is part of NEVRAX NEL.</font>
00010 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</font>
00011 <font class="comment"> * it under the terms of the GNU General Public License as published by</font>
00012 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)</font>
00013 <font class="comment"> * any later version.</font>
00014 <font class="comment"></font>
00015 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</font>
00016 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font>
00017 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font>
00018 <font class="comment"> * General Public License for more details.</font>
00019 <font class="comment"></font>
00020 <font class="comment"> * You should have received a copy of the GNU General Public License</font>
00021 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</font>
00022 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</font>
00023 <font class="comment"> * MA 02111-1307, USA.</font>
00024 <font class="comment"> */</font>
00025 
00026 <font class="preprocessor">#ifndef NL_MOVE_PRIMITIVE_H</font>
00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_MOVE_PRIMITIVE_H</font>
00028 <font class="preprocessor"></font>
00029 <font class="preprocessor">#include "<a class="code" href="types__nl_8h.html">nel/misc/types_nl.h</a>"</font>
00030 <font class="preprocessor">#include "<a class="code" href="vector_8h.html">nel/misc/vector.h</a>"</font>
00031 
00032 <font class="preprocessor">#include "<a class="code" href="u__move__primitive_8h.html">nel/pacs/u_move_primitive.h</a>"</font>
00033 
00034 <font class="preprocessor">#include "<a class="code" href="move__container_8h.html">pacs/move_container.h</a>"</font>
00035 <font class="preprocessor">#include "<a class="code" href="primitive__world__image_8h.html">pacs/primitive_world_image.h</a>"</font>
00036 <font class="preprocessor">#include "<a class="code" href="global__retriever_8h.html">pacs/global_retriever.h</a>"</font>
00037 
<a name="l00038"></a><a class="code" href="move__primitive_8h.html#a0">00038</a> <font class="preprocessor">#define NELPACS_DIST_BACK 0.01</font>
00039 <font class="preprocessor"></font>
00040 <font class="keyword">namespace </font>NLPACS 
00041 {
00042 
<a name="l00052"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html">00052</a> <font class="keyword">class </font>CMovePrimitive: <font class="keyword">public</font> UMovePrimitive
00053 {
00054 <font class="keyword">private</font>:
<a name="l00055"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#l0">00055</a>         <font class="keyword">friend</font> <font class="keyword">class </font><a class="code" href="classNLPACS_1_1CMovePrimitive.html#l0">CMoveContainer</a>;
00056 
00057         <font class="comment">// Some flags</font>
<a name="l00058"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7">00058</a>         <font class="keyword">enum</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7">TStaticFlags</a>
00059         {
00060                 <font class="comment">// Mask for the primitive type</font>
00061                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u0">PrimitiveMask</a>   =0x000f,
00062 
00063                 <font class="comment">// Mask for the primitive type</font>
00064                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u1">ReactionMask</a>    =0x00f0,
00065 
00066                 <font class="comment">// Mask for the trigger type</font>
00067                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u2">TriggerMask</a>             =0x0f00,
00068 
00069                 <font class="comment">// Obstacle flag. This flag tells that this object is an obstacle for others objects.</font>
00070                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u3">ObstacleFlag</a>    =0x1000,
00071 
00072                 <font class="comment">// Ghost flag. This flag tells that this object is a ghost object or not.</font>
00073                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u4">NonCollisionableFlag</a>    =0x2000,
00074                 
00076                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u5">DontSnapToGroundFlag</a> = 0x4000,
00077 
00078                 <font class="comment">// Force the size to uint16.</font>
00079                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u6">ForceSize</a>               =0xffff
00080         };
00081 
00082 <font class="keyword">public</font>:
00083 
00085         <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a0">CMovePrimitive</a> (<a class="code" href="classNLPACS_1_1CMovePrimitive.html#l0">CMoveContainer</a>* container, <a class="code" href="types__nl_8h.html#a6">uint8</a> firstWorldImage, <a class="code" href="types__nl_8h.html#a6">uint8</a> numWorldImage);
00086 
00088         <font class="keyword">virtual</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a1">~CMovePrimitive</a> ();
00089         <font class="comment">//</font>
<a name="l00090"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a2">00090</a>         <font class="keyword">virtual</font> <font class="keywordtype">void</font>    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a2">setDontSnapToGround</a>(<font class="keywordtype">bool</font> dont)
00091         {
00092                 <font class="keywordflow">if</font> (dont) <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a> |= <a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u5">DontSnapToGroundFlag</a>;
00093                 <font class="keywordflow">else</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a> &amp;= ~<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u5">DontSnapToGroundFlag</a>;
00094         }
00095         <font class="comment">//</font>
<a name="l00096"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a3">00096</a>         <font class="keywordtype">bool</font>    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a3">getDontSnapToGround</a>()<font class="keyword"> const </font>
00097 <font class="keyword">        </font>{
00098                 <font class="keywordflow">return</font> (<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a> &amp; <a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u5">DontSnapToGroundFlag</a>) != 0;
00099         }
00100         <font class="comment">// Return true if this primitive is noncollisionable</font>
<a name="l00101"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a4">00101</a>         <font class="keywordtype">bool</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a4">isNonCollisionable</a> ()<font class="keyword"> const</font>
00102 <font class="keyword">        </font>{
00103                 <font class="keywordflow">return</font> (<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>&amp;<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u4">NonCollisionableFlag</a>)!=0;
00104         }
00105 
00106         <font class="comment">// Set noncollisionable</font>
<a name="l00107"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a5">00107</a>         <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a5">setNonCollisionable</a> (<font class="keywordtype">bool</font> nonCollisionable)
00108         {
00109                 <font class="keywordflow">if</font> (nonCollisionable)
00110                         <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>|=<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u4">NonCollisionableFlag</a>;
00111                 <font class="keywordflow">else</font>
00112                         <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>&amp;=~<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u4">NonCollisionableFlag</a>;
00113         }
00114 
00115         <font class="comment">// Get the nieme world image</font>
<a name="l00116"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a6">00116</a>         CPrimitiveWorldImage            *<a class="code" href="classNLPACS_1_1CMovePrimitive.html#a6">getWorldImage</a> (<a class="code" href="types__nl_8h.html#a14">uint</a> i)<font class="keyword"> const</font>
00117 <font class="keyword">        </font>{
00118                 <font class="comment">// Checks this primitive belong of the requested world image.</font>
00119                 <a class="code" href="debug_8h.html#a6">nlassert</a> ((i&gt;=(<a class="code" href="types__nl_8h.html#a14">uint</a>)<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o5">_FirstWorldImage</a>)&amp;&amp;(i&lt;(<a class="code" href="types__nl_8h.html#a14">uint</a>)<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o5">_FirstWorldImage</a>+(<a class="code" href="types__nl_8h.html#a14">uint</a>)<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o4">_NumWorldImage</a>));
00120 
00121                 <font class="comment">// Return the good one</font>
00122                 <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o10">_WorldImages</a>[i-<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o5">_FirstWorldImage</a>];
00123         }
00124 
00125         <font class="comment">// is the primitive inserted in the world image</font>
<a name="l00126"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a7">00126</a>         <font class="keywordtype">bool</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a7">isInserted</a> (<a class="code" href="types__nl_8h.html#a14">uint</a> i)<font class="keyword"> const</font>
00127 <font class="keyword">        </font>{
00128                 <font class="comment">// Checks</font>
00129                 <font class="keywordflow">if</font> ((i&gt;=(uint)<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o5">_FirstWorldImage</a>)&amp;&amp;(i&lt;(uint)<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o5">_FirstWorldImage</a>+(uint)<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o4">_NumWorldImage</a>))
00130                 {
00131                         <font class="comment">// Get world image</font>
00132                         <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a6">getWorldImage</a> (i)-&gt;isInWorldImageFlag ();
00133                 }
00134                 <font class="keywordflow">else</font>
00135                         <font class="keywordflow">return</font> <font class="keyword">false</font>;
00136         }
00137 
00138         <font class="keyword">virtual</font> <a class="code" href="types__nl_8h.html#a6">uint8</a>                           <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a8">getFirstWorldImageV</a> () <font class="keyword">const</font>;
00139         <font class="keyword">virtual</font> <a class="code" href="types__nl_8h.html#a6">uint8</a>                           <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a9">getNumWorldImageV</a> () <font class="keyword">const</font>;
00140 
00141         <font class="comment">// Get first world image used</font>
<a name="l00142"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a10">00142</a>         <a class="code" href="types__nl_8h.html#a6">uint8</a>   <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a10">getFirstWorldImage</a> ()<font class="keyword"> const</font>
00143 <font class="keyword">        </font>{
00144                 <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o5">_FirstWorldImage</a>;
00145         }
00146 
00147         <font class="comment">// Get count of world image used</font>
<a name="l00148"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a11">00148</a>         <a class="code" href="types__nl_8h.html#a6">uint8</a>   <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a11">getNumWorldImage</a> ()<font class="keyword"> const</font>
00149 <font class="keyword">        </font>{
00150                 <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o4">_NumWorldImage</a>;
00151         }
00152 
00153         <font class="comment">// Dirt positions of the primitive in all the world images</font>
<a name="l00154"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a12">00154</a>         <font class="keywordtype">void</font>    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a12">dirtAllPos</a> ()
00155         {
00156                 <font class="keywordflow">for</font> (<a class="code" href="types__nl_8h.html#a14">uint</a> i=0; i&lt;<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o4">_NumWorldImage</a>; i++)
00157                 {
00158                         <font class="comment">// Get world image and check if it exist</font>
00159                         CPrimitiveWorldImage    *worldImage=<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o10">_WorldImages</a>[i];
00160 
00161                         <font class="comment">// Dirt its pos</font>
00162                         worldImage-&gt;dirtPos (<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o8">_Container</a>, <font class="keyword">this</font>, i+<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o5">_FirstWorldImage</a>);
00163                 }
00164         }
00165 
<a name="l00171"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a13">00171</a>         <font class="keywordtype">void</font>    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a13">setPrimitiveType</a> (<a class="code" href="classNLPACS_1_1UMovePrimitive.html#s12">TType</a> <a class="code" href="driver__opengl__extension__def_8h.html#a251">type</a>)
00172         {
00173                 <font class="comment">// New position</font>
00174                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>&amp;=~(uint32)<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u0">PrimitiveMask</a>;
00175                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>|=<a class="code" href="driver__opengl__extension__def_8h.html#a251">type</a>;
00176         }
00177 
<a name="l00183"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a14">00183</a>         <font class="keywordtype">void</font>    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a14">setReactionType</a> (<a class="code" href="classNLPACS_1_1UMovePrimitive.html#s13">TReaction</a> <a class="code" href="driver__opengl__extension__def_8h.html#a251">type</a>)
00184         {
00185                 <font class="comment">// New position</font>
00186                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>&amp;=~(uint32)<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u1">ReactionMask</a>;
00187                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>|=<a class="code" href="driver__opengl__extension__def_8h.html#a251">type</a>;
00188         }
00189 
<a name="l00195"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a15">00195</a>         <font class="keywordtype">void</font>    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a15">setTriggerType</a> (<a class="code" href="classNLPACS_1_1UMovePrimitive.html#s14">TTrigger</a> <a class="code" href="driver__opengl__extension__def_8h.html#a251">type</a>)
00196         {
00197                 <font class="comment">// New position</font>
00198                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>&amp;=~(uint32)<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u2">TriggerMask</a>;
00199                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>|=<a class="code" href="driver__opengl__extension__def_8h.html#a251">type</a>;
00200         }
00201 
<a name="l00207"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a16">00207</a>         <font class="keywordtype">void</font>    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a16">setCollisionMask</a> (<a class="code" href="classNLPACS_1_1UMovePrimitive.html#s0">TCollisionMask</a> mask)
00208         {
00209                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o7">_CollisionMask</a>=mask;
00210         }
00211 
<a name="l00217"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a17">00217</a>         <font class="keywordtype">void</font>    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a17">setOcclusionMask</a> (<a class="code" href="classNLPACS_1_1UMovePrimitive.html#s0">TCollisionMask</a> mask)
00218         {
00219                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o6">_OcclusionMask</a>=mask;
00220         }
00221 
<a name="l00227"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a18">00227</a>         <font class="keywordtype">void</font>    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a18">setObstacle</a> (<font class="keywordtype">bool</font> obstacle)
00228         {
00229                 <font class="comment">// New flag</font>
00230                 <font class="keywordflow">if</font> (obstacle)
00231                         <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>|=<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u3">ObstacleFlag</a>;
00232                 <font class="keywordflow">else</font>
00233                         <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>&amp;=~(uint32)<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u3">ObstacleFlag</a>;
00234         }
00235 
<a name="l00242"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a19">00242</a>         <font class="keywordtype">void</font>    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a19">setSize</a> (<font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a266">width</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a268">depth</a>)
00243         {
00244                 <font class="comment">// Checks</font>
00245                 <a class="code" href="debug_8h.html#a6">nlassert</a> ((((<a class="code" href="types__nl_8h.html#a10">uint32</a>)<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>)&amp;<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u0">PrimitiveMask</a>)==<a class="code" href="classNLPACS_1_1UMovePrimitive.html#s12s2">_2DOrientedBox</a>);
00246 
00247                 <font class="comment">// New position</font>
00248                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o0">_Length</a>[0]=<a class="code" href="driver__opengl__extension__def_8h.html#a266">width</a>;
00249                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o0">_Length</a>[1]=<a class="code" href="driver__opengl__extension__def_8h.html#a268">depth</a>;
00250         }
00251 
<a name="l00257"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a20">00257</a>         <font class="keywordtype">void</font>    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a20">setHeight</a> (<font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a267">height</a>)
00258         {
00259                 <font class="comment">// New size</font>
00260                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o1">_Height</a>=<a class="code" href="driver__opengl__extension__def_8h.html#a267">height</a>;
00261         }
00262 
<a name="l00268"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a21">00268</a>         <font class="keywordtype">void</font>    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a21">setRadius</a> (<font class="keywordtype">float</font> radius)
00269         {
00270                 <font class="comment">// Checks</font>
00271                 <a class="code" href="debug_8h.html#a6">nlassert</a> ((((<a class="code" href="types__nl_8h.html#a10">uint32</a>)<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>)&amp;<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u0">PrimitiveMask</a>)==<a class="code" href="classNLPACS_1_1UMovePrimitive.html#s12s3">_2DOrientedCylinder</a>);
00272 
00273                 <font class="comment">// New position</font>
00274                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o0">_Length</a>[0]=radius;
00275         }
00276 
<a name="l00278"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a22">00278</a>         <a class="code" href="classNLPACS_1_1UMovePrimitive.html#s12">TType</a>   <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a22">getPrimitiveTypeInternal</a> ()<font class="keyword"> const</font>
00279 <font class="keyword">        </font>{
00280                 <font class="comment">// New position</font>
00281                 <font class="keywordflow">return</font> (TType)(<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>&amp;(uint32)<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u0">PrimitiveMask</a>);
00282         }
00283 
<a name="l00285"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a23">00285</a>         <a class="code" href="classNLPACS_1_1UMovePrimitive.html#s13">TReaction</a>       <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a23">getReactionTypeInternal</a> ()<font class="keyword"> const</font>
00286 <font class="keyword">        </font>{
00287                 <font class="comment">// New position</font>
00288                 <font class="keywordflow">return</font> (TReaction)(<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>&amp;(uint32)<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u1">ReactionMask</a>);
00289         }
00290 
<a name="l00292"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a24">00292</a>         <a class="code" href="classNLPACS_1_1UMovePrimitive.html#s14">TTrigger</a>        <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a24">getTriggerTypeInternal</a> ()<font class="keyword"> const</font>
00293 <font class="keyword">        </font>{
00294                 <font class="comment">// New position</font>
00295                 <font class="keywordflow">return</font> (TTrigger)(<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>&amp;(uint32)<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u2">TriggerMask</a>);
00296         }
00297 
<a name="l00299"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a25">00299</a>         <a class="code" href="classNLPACS_1_1UMovePrimitive.html#s0">TCollisionMask</a>  <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a25">getCollisionMaskInternal</a> ()<font class="keyword"> const</font>
00300 <font class="keyword">        </font>{
00301                 <font class="comment">// New position</font>
00302                 <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o7">_CollisionMask</a>;
00303         }
00304 
<a name="l00306"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a26">00306</a>         <a class="code" href="classNLPACS_1_1UMovePrimitive.html#s0">TCollisionMask</a>  <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a26">getOcclusionMaskInternal</a> ()<font class="keyword"> const</font>
00307 <font class="keyword">        </font>{
00308                 <font class="comment">// New position</font>
00309                 <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o6">_OcclusionMask</a>;
00310         }
00311 
<a name="l00313"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a27">00313</a>         <font class="keywordtype">float</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a27">getAttenuation</a>()<font class="keyword"> const</font>
00314 <font class="keyword">        </font>{
00315                 <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o2">_Attenuation</a>;
00316         }
00317 
<a name="l00319"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a28">00319</a>         <font class="keywordtype">float</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a28">getLength</a> (<a class="code" href="types__nl_8h.html#a14">uint</a> where)<font class="keyword"> const</font>
00320 <font class="keyword">        </font>{
00321                 <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o0">_Length</a>[where];
00322         }
00323 
<a name="l00325"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a29">00325</a>         <font class="keywordtype">float</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a29">getHeightInternal</a> ()<font class="keyword"> const</font>
00326 <font class="keyword">        </font>{
00327                 <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o1">_Height</a>;
00328         }
00329 
<a name="l00331"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a30">00331</a>         <font class="keywordtype">float</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a30">getRadiusInternal</a> ()<font class="keyword"> const</font>
00332 <font class="keyword">        </font>{
00333                 <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o0">_Length</a>[0];
00334         }
00335 
<a name="l00337"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a31">00337</a>         <font class="keywordtype">bool</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a31">isObstacle</a> ()<font class="keyword"> const</font>
00338 <font class="keyword">        </font>{
00339                 <font class="keywordflow">return</font> (<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>&amp;<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u3">ObstacleFlag</a>)!=0;
00340         }
00341 
<a name="l00343"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a32">00343</a>         <font class="keywordtype">bool</font>    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a32">isCollisionable</a>()<font class="keyword"> const</font>
00344 <font class="keyword">        </font>{
00345                 <font class="keywordflow">return</font> !<a class="code" href="classNLPACS_1_1CMovePrimitive.html#a4">isNonCollisionable</a>();
00346         }
00347 
<a name="l00349"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a33">00349</a>         <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a33">addCollisionOTInfo</a> (CCollisionOTInfo *info)
00350         {
00351                 <font class="comment">// Link to the list</font>
00352                 info-&gt;primitiveLink (<font class="keyword">this</font>, <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o9">_RootOTInfo</a>);
00353                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o9">_RootOTInfo</a>=info;
00354         }
00355 
00357         <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a35">removeCollisionOTInfo</a> (CCollisionOTInfo *toRemove);
00358 
00360         <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a35">removeCollisionOTInfo</a> ();
00361 
00363         <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a36">checkSortedList</a> ();
00364 
00366         <font class="keywordtype">bool</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a37">isTriggered</a> (<a class="code" href="classNLPACS_1_1CMovePrimitive.html#a0">CMovePrimitive</a>&amp; second, <font class="keywordtype">bool</font> enter, <font class="keywordtype">bool</font> exit);
00367 
00369 
00370         <font class="keywordtype">void</font>                                    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a38">setAbsorbtion</a> (<font class="keywordtype">float</font> attenuation);
00371         <font class="keywordtype">void</font>                                    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a39">setOrientation</a> (<font class="keywordtype">double</font> rot, <a class="code" href="types__nl_8h.html#a6">uint8</a> worldImage);
00372         <font class="keywordtype">void</font>                                    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a40">setGlobalPosition</a> (<font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CVectorD.html">NLMISC::CVectorD</a>&amp; pos, <a class="code" href="types__nl_8h.html#a6">uint8</a> worldImage);
00373         <font class="keywordtype">void</font>                                    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a40">setGlobalPosition</a> (<font class="keyword">const</font> UGlobalPosition&amp; pos, <a class="code" href="types__nl_8h.html#a6">uint8</a> worldImage);
00374         <font class="keywordtype">void</font>                                    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a42">move</a> (<font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CVectorD.html">NLMISC::CVectorD</a>&amp; speed, <a class="code" href="types__nl_8h.html#a6">uint8</a> worldImage);
00375         <a class="code" href="classNLMISC_1_1CVectorD.html">NLMISC::CVectorD</a>                <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a43">getFinalPosition</a> (<a class="code" href="types__nl_8h.html#a6">uint8</a> worldImage)  <font class="keyword">const</font>;
00376         <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CVectorD.html">NLMISC::CVectorD</a>&amp; <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a44">getSpeed</a> (<a class="code" href="types__nl_8h.html#a6">uint8</a> worldImage) <font class="keyword">const</font>;
00377         <font class="keywordtype">void</font>                                    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a45">insertInWorldImage</a> (<a class="code" href="types__nl_8h.html#a6">uint8</a> worldImage);
00378         <font class="keywordtype">void</font>                                    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a46">removeFromWorldImage</a> (<a class="code" href="types__nl_8h.html#a6">uint8</a> worldImage);
00379         <a class="code" href="classNLPACS_1_1UMovePrimitive.html#s12">TType</a>                                   <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a47">getPrimitiveType</a> () <font class="keyword">const</font>;
00380         <a class="code" href="classNLPACS_1_1UMovePrimitive.html#s13">TReaction</a>                               <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a48">getReactionType</a> () <font class="keyword">const</font>;
00381         <a class="code" href="classNLPACS_1_1UMovePrimitive.html#s14">TTrigger</a>                                <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a49">getTriggerType</a> () <font class="keyword">const</font>;
00382         <a class="code" href="classNLPACS_1_1UMovePrimitive.html#s0">TCollisionMask</a>                  <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a50">getCollisionMask</a> () <font class="keyword">const</font>;
00383         <a class="code" href="classNLPACS_1_1UMovePrimitive.html#s0">TCollisionMask</a>                  <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a51">getOcclusionMask</a> () <font class="keyword">const</font>;
00384         <font class="keywordtype">bool</font>                                    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a52">getObstacle</a> () <font class="keyword">const</font>;
00385         <font class="keywordtype">float</font>                                   <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a53">getAbsorbtion</a> () <font class="keyword">const</font>;
00386         <font class="keywordtype">void</font>                                    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a54">getSize</a> (<font class="keywordtype">float</font>&amp; <a class="code" href="driver__opengl__extension__def_8h.html#a266">width</a>, <font class="keywordtype">float</font>&amp; <a class="code" href="driver__opengl__extension__def_8h.html#a268">depth</a>) <font class="keyword">const</font>;
00387         <font class="keywordtype">float</font>                                   <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a55">getHeight</a> () <font class="keyword">const</font>;
00388         <font class="keywordtype">float</font>                                   <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a56">getRadius</a> () <font class="keyword">const</font>;
00389         <font class="keywordtype">double</font>                                  <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a57">getOrientation</a> (<a class="code" href="types__nl_8h.html#a6">uint8</a> worldImage) <font class="keyword">const</font>;
00390         <font class="keywordtype">void</font>                                    <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a58">getGlobalPosition</a> (UGlobalPosition&amp; pos, <a class="code" href="types__nl_8h.html#a6">uint8</a> worldImage) <font class="keyword">const</font>;
00391 
00392         <font class="comment">// Test time. Return true if tetst can be perform, false if too many test have been computed for this primitive</font>
<a name="l00393"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a59">00393</a>         <font class="keywordtype">bool</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a59">checkTestTime</a> (<a class="code" href="types__nl_8h.html#a10">uint32</a> testTime, <a class="code" href="types__nl_8h.html#a10">uint32</a> maxTestIteration)
00394         {
00395                 <font class="comment">// Already checked for this test time ?</font>
00396                 <font class="keywordflow">if</font> (testTime!=<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o11">_LastTestTime</a>)
00397                 {
00398                         <font class="comment">// First time this primitive is visited at this test</font>
00399                         <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o11">_LastTestTime</a>=testTime;
00400 
00401                         <font class="comment">// Test counter</font>
00402                         <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o12">_IterationCount</a>=maxTestIteration;
00403                 }
00404                 <font class="keywordflow">else</font>
00405                 {
00406                         <font class="comment">// Too many test this primitive ?</font>
00407                         <font class="keywordflow">if</font> (<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o12">_IterationCount</a>&lt;=0)
00408                         {
00409 <font class="comment">//                              nlwarning("in checkTestTime(): Get to the max iteration count");</font>
00410                                 <font class="keywordflow">return</font> <font class="keyword">false</font>;
00411                         }
00412                         <font class="keywordflow">else</font>
00413                                 <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o12">_IterationCount</a>--;
00414                 }
00415                 <font class="comment">// Ok, test can be performed</font>
00416                 <font class="keywordflow">return</font> <font class="keyword">true</font>;
00417         }
00418 
00419         <font class="comment">// *** Get mass</font>
00420         
<a name="l00421"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#a60">00421</a>         <font class="keywordtype">float</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#a60">getMass</a> ()<font class="keyword"> const</font>
00422 <font class="keyword">        </font>{
00423                 <font class="comment">// Box ?</font>
00424                 <font class="keywordflow">if</font> ( (<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>&amp;<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u0">PrimitiveMask</a>) == <a class="code" href="classNLPACS_1_1UMovePrimitive.html#s12s2">_2DOrientedBox</a> )
00425                         <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o0">_Length</a>[0]*<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o0">_Length</a>[1]*<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o1">_Height</a>;
00426                 <font class="comment">// Cylinder ?</font>
00427                 <font class="keywordflow">else</font>
00428                 {
00429                         <a class="code" href="debug_8h.html#a6">nlassert</a> ( (<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>&amp;<a class="code" href="classNLPACS_1_1CMovePrimitive.html#u7u0">PrimitiveMask</a>) == <a class="code" href="classNLPACS_1_1UMovePrimitive.html#s12s3">_2DOrientedCylinder</a> );
00430                         <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o0">_Length</a>[0]*(float)NLMISC::Pi*<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o1">_Height</a>;
00431                 }
00432         }
00433 
00434         <font class="comment">// *** Primitive over primitive</font>
00435 
00436 <font class="keyword">private</font>:
00437         <font class="comment">// The length of the 4 edges. The first is the width, the second is the depth</font>
00438         <font class="comment">// For cylinder, the first is the radius</font>
<a name="l00439"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#o0">00439</a>         <font class="keywordtype">float</font>                           <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o0">_Length</a>[2];
00440 
00441         <font class="comment">// This is the height of the box or of the cylinder.</font>
<a name="l00442"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#o1">00442</a>         <font class="keywordtype">float</font>                           <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o1">_Height</a>;
00443 
00444         <font class="comment">// Attenuation </font>
<a name="l00445"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#o2">00445</a>         <font class="keywordtype">float</font>                           <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o2">_Attenuation</a>;
00446 
00447         <font class="comment">// Flags</font>
<a name="l00448"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">00448</a>         <a class="code" href="types__nl_8h.html#a8">uint16</a>                          <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o3">_StaticFlags</a>;
00449 
00450         <font class="comment">// Num world images</font>
<a name="l00451"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#o4">00451</a>         <a class="code" href="types__nl_8h.html#a6">uint8</a>                           <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o4">_NumWorldImage</a>;
00452 
00453         <font class="comment">// First world images</font>
<a name="l00454"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#o5">00454</a>         <a class="code" href="types__nl_8h.html#a6">uint8</a>                           <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o5">_FirstWorldImage</a>;
00455 
00456         <font class="comment">// Occlusion mask</font>
<a name="l00457"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#o6">00457</a>         <a class="code" href="classNLPACS_1_1UMovePrimitive.html#s0">TCollisionMask</a>          <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o6">_OcclusionMask</a>;
00458 
00459         <font class="comment">// Collision mask</font>
<a name="l00460"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#o7">00460</a>         <a class="code" href="classNLPACS_1_1UMovePrimitive.html#s0">TCollisionMask</a>          <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o7">_CollisionMask</a>;
00461 
00462         <font class="comment">// Container of this primitive</font>
<a name="l00463"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#o8">00463</a>         <a class="code" href="classNLPACS_1_1CMovePrimitive.html#l0">CMoveContainer</a>          *<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o8">_Container</a>;
00464 
00465         <font class="comment">// List of time ordered table element using this primitive</font>
<a name="l00466"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#o9">00466</a>         CCollisionOTInfo        *<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o9">_RootOTInfo</a>;
00467 
00468         <font class="comment">// Pointer table of world images for this primitive</font>
<a name="l00469"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#o10">00469</a>         CPrimitiveWorldImage    **<a class="code" href="classNLPACS_1_1CMovePrimitive.html#o10">_WorldImages</a>;
00470 
00471         <font class="comment">// Last primitive test time</font>
<a name="l00472"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#o11">00472</a>         <a class="code" href="types__nl_8h.html#a10">uint32</a>                          <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o11">_LastTestTime</a>;
00473 
00474         <font class="comment">// Iteration count</font>
<a name="l00475"></a><a class="code" href="classNLPACS_1_1CMovePrimitive.html#o12">00475</a>         <a class="code" href="types__nl_8h.html#a9">sint32</a>                          <a class="code" href="classNLPACS_1_1CMovePrimitive.html#o12">_IterationCount</a>;
00476 };
00477 
00478 } <font class="comment">// NLPACS</font>
00479 
00480 <font class="preprocessor">#include "<a class="code" href="move__container__inline_8h.html">pacs/move_container_inline.h</a>"</font>
00481 
00482 <font class="preprocessor">#endif // NL_MOVE_PRIMITIVE_H</font>
00483 <font class="preprocessor"></font>
00484 <font class="comment">/* End of move_primitive.h */</font>
</pre></div>

<!-- footer -->
<BR><FONT Size=+5>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </FONT>
</TD>
<TD WIDTH=15><IMG  SRC=/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
</TR>
</TABLE>
</BODY>
</HTML>