aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/actor_cpp-source.html
blob: 5410a5eaa93af47353f2b839d505eb700fb51b86 (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
<!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.2 on Thu Feb 15 22:00:31 2001 -->
<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>actor.cpp</h1><a href="actor_cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="preprocessor">#include "<a class="code" href="actor_h.html">nel/ai/agent/actor.h</a>"</font>
00002 <font class="preprocessor">#include "<a class="code" href="agent_script_h.html">nel/ai/agent/agent_script.h</a>"</font>
00003 <font class="preprocessor">#include "<a class="code" href="object_type_h.html">nel/ai/agent/object_type.h</a>"</font>
00004 
00005 <font class="keyword">namespace</font> NLAIAGENT
00006 {
00007 
00008 
<a name="l00010"></a><a class="code" href="class_NLAIAGENT__CActor.html#a0">00010</a>         CActor::CActor() : IAgent(NULL)
00011         {
00012         }
00013 
<a name="l00015"></a><a class="code" href="class_NLAIAGENT__CActor.html#a1">00015</a>         CActor::CActor(IAgent *father, <font class="keywordtype">bool</font> activated) : IAgent( father )
00016         {
00017                 _IsActivated = activated;
00018         }
00019 
<a name="l00021"></a><a class="code" href="class_NLAIAGENT__CActor.html#a2">00021</a>         CActor::CActor(<font class="keyword">const</font> CActor &amp;c) : IAgent( c )
00022         {
00023                 _IsActivated = c._IsActivated;
00024         }
00025 
<a name="l00026"></a><a class="code" href="class_NLAIAGENT__CActor.html#a3">00026</a>         CActor::~CActor()<font class="keyword">
</font>00027 <font class="keyword">        </font>{
00028 <font class="comment">//              for (int i = 0; i &lt; c._Transitions.size(); i++ )</font>
00029                 <font class="comment">//      _Transitions[i]-&gt;release();</font>
00030         }
00031 
<a name="l00033"></a><a class="code" href="class_NLAIAGENT__CActor.html#a4">00033</a>         <font class="keywordtype">bool</font> CActor::isActivated()<font class="keyword">
</font>00034 <font class="keyword">        </font>{
00035                 <font class="keywordflow">return</font> _IsActivated;
00036         }
00037 
<a name="l00039"></a><a class="code" href="class_NLAIAGENT__CActor.html#a6">00039</a>         <font class="keywordtype">void</font> CActor::activate()<font class="keyword">
</font>00040 <font class="keyword">        </font>{
00041                 <font class="keywordflow">if</font> ( !_IsActivated )
00042                 {
00043                         onActivate();
00044                         _IsActivated = <font class="keyword">true</font>;
00045                 }
00046         }
00047 
<a name="l00049"></a><a class="code" href="class_NLAIAGENT__CActor.html#a8">00049</a>         <font class="keywordtype">void</font> CActor::unActivate()<font class="keyword">
</font>00050 <font class="keyword">        </font>{
00051                 <font class="keywordflow">if</font> ( _IsActivated )
00052                 {
00053                         onUnActivate();
00054                         _IsActivated = <font class="keyword">false</font>;
00055                 }
00056         }
00057 
<a name="l00061"></a><a class="code" href="class_NLAIAGENT__CActor.html#b0">00061</a>         <font class="keywordtype">void</font> CActor::forwardActivity(CActor *receiver, <font class="keywordtype">bool</font> stay_active)<font class="keyword">
</font>00062 <font class="keyword">        </font>{
00063                 receiver-&gt;activate();
00064 
00065                 <font class="keywordflow">if</font> ( !stay_active )
00066                         unActivate();
00067         }
00068                 
<a name="l00072"></a><a class="code" href="class_NLAIAGENT__CActor.html#b1">00072</a>         <font class="keywordtype">void</font> CActor::forwardActivity(std::vector&lt;CActor *&gt; &amp;actors, <font class="keywordtype">bool</font> stay_active)<font class="keyword">
</font>00073 <font class="keyword">        </font>{
00074                 std::vector&lt;CActor *&gt;::iterator it_act = actors.begin();
00075                 <font class="keywordflow">while</font> ( it_act != actors.end() )
00076                 {
00077                         ( *it_act )-&gt;activate();
00078                         it_act++;
00079                 }
00080                 <font class="comment">// TODO: Envoi de message "activate" </font>
00081                 <font class="keywordflow">if</font> ( !stay_active )
00082                         unActivate();
00083         }
00084 
<a name="l00086"></a><a class="code" href="class_NLAIAGENT__CActor.html#a5">00086</a>         <font class="keywordtype">void</font> CActor::addTransition(<a class="code" href="class_NLAILOGIC__IBaseCond.html">NLAILOGIC::IBaseCond</a> *cond, std::vector&lt;CActor *&gt; &amp;outputs, <font class="keywordtype">bool</font> stay_alive)<font class="keyword">
</font>00087 <font class="keyword">        </font>{
00088 
00089         }
00090 
00091 <font class="comment">//      void CActor::addTransition(CTransition *trans)</font>
00092 <font class="comment">//      {</font>
00093 <font class="comment">//              _Transitions.push_back( trans );</font>
00094 <font class="comment">//      }</font>
00095 
<a name="l00097"></a><a class="code" href="class_NLAIAGENT__CActor.html#a7">00097</a>         <font class="keywordtype">void</font> CActor::onActivate()<font class="keyword">
</font>00098 <font class="keyword">        </font>{
00099                 <font class="comment">// Default behaviour: do nothing</font>
00100         }
<a name="l00102"></a><a class="code" href="class_NLAIAGENT__CActor.html#a9">00102</a>         <font class="keywordtype">void</font> CActor::onUnActivate()<font class="keyword">
</font>00103 <font class="keyword">        </font>{
00104                 <font class="comment">// default behaviour: do nothing</font>
00105         }
00106 
<a name="l00107"></a><a class="code" href="class_NLAIAGENT__CActor.html#a10">00107</a>         <font class="keyword">const</font> <a class="code" href="class_NLAIC__IBasicType.html">NLAIC::IBasicType</a> *CActor::clone()<font class="keyword"> const
</font>00108 <font class="keyword">        </font>{               
00109                 CActor *m = <font class="keyword">new</font> CActor(*<font class="keyword">this</font>);
00110                 <font class="keywordflow">return</font> m;
00111         }               
00112 
<a name="l00113"></a><a class="code" href="class_NLAIAGENT__CActor.html#a11">00113</a>         <font class="keyword">const</font> <a class="code" href="class_NLAIC__IBasicType.html">NLAIC::IBasicType</a> *CActor::newInstance()<font class="keyword"> const
</font>00114 <font class="keyword">        </font>{       
00115                 <a class="code" href="class_NLAIC__IBasicInterface.html">NLAIC::IBasicInterface</a> *m;
00116                 <font class="keywordflow">if</font> ( getParent() != NULL ) 
00117                         m = <font class="keyword">new</font> CActor((IAgent *)getParent());
00118                 <font class="keywordflow">else</font> 
00119                         m = <font class="keyword">new</font> CActor(NULL);
00120                 <font class="keywordflow">return</font> m;
00121         }
00122         
<a name="l00123"></a><a class="code" href="class_NLAIAGENT__CActor.html#a12">00123</a>         <font class="keywordtype">void</font> CActor::getDebugString(<font class="keywordtype">char</font> *t)<font class="keyword"> const
</font>00124 <font class="keyword">        </font>{
00125                 strcpy(t,<font class="stringliteral">"CActor "</font>);
00126                 <font class="keywordflow">if</font> ( _IsActivated )
00127                         strcat(t, <font class="stringliteral">"&lt;active&gt;"</font>);
00128                 <font class="keywordflow">else</font>
00129                         strcat(t, <font class="stringliteral">"&lt;idle&gt;"</font>);
00130         }
00131 
<a name="l00132"></a><a class="code" href="class_NLAIAGENT__CActor.html#a13">00132</a>         <font class="keywordtype">bool</font> CActor::isEqual(<font class="keyword">const</font> IBasicObjectIA &amp;a)<font class="keyword"> const
</font>00133 <font class="keyword">        </font>{
00134                 <font class="keywordflow">return</font> <font class="keyword">true</font>;
00135         }
00136 
<a name="l00137"></a><a class="code" href="class_NLAIAGENT__CActor.html#a14">00137</a>         <font class="keywordtype">void</font> CActor::processMessages()<font class="keyword">
</font>00138 <font class="keyword">        </font>{
00139                 IAgent::processMessages();
00140 <font class="comment">/*              while(getMail()-&gt;getMessageCount())
</font>00141 <font class="comment">                {
</font>00142 <font class="comment">                        const IMessageBase &amp;msg = getMail()-&gt;getMessage();                              
</font>00143 <font class="comment">                        run( msg );
</font>00144 <font class="comment">                        getMail()-&gt;popMessage();
</font>00145 <font class="comment">                }*/</font>
00146         }
00147 
<a name="l00148"></a><a class="code" href="class_NLAIAGENT__CActor.html#a15">00148</a>         <font class="keyword">const</font> IObjectIA::CProcessResult &amp;CActor::run()<font class="keyword">
</font>00149 <font class="keyword">        </font>{
00150                 <font class="keywordflow">if</font> ( _IsActivated )
00151                 {
00152                         <font class="keywordflow">return</font> IAgent::run();
00153                 }
00154                 <font class="keywordflow">else</font>
00155                         <font class="keywordflow">return</font> IObjectIA::ProcessRun;
00156                 <font class="comment">/*
</font>00157 <font class="comment">                setState(processBuzzy,NULL); 
</font>00158 <font class="comment">
</font>00159 <font class="comment">                runChildren();          // Gestion des fils
</font>00160 <font class="comment">                getMail()-&gt;run();       // Execution de la boite aux lettres
</font>00161 <font class="comment">
</font>00162 <font class="comment">                processMessages();      // Traitement de ses propres messages
</font>00163 <font class="comment">
</font>00164 <font class="comment">                setState(processIdle,NULL);
</font>00165 <font class="comment">                return getState();  
</font>00166 <font class="comment">                */</font>
00167         }
00168 
00169         <font class="comment">/*IObjectIA *CActor::run(const IMessageBase &amp;msg)
</font>00170 <font class="comment">        {
</font>00171 <font class="comment">                return IAgent::run( msg );
</font>00172 <font class="comment">        }*/</font>
00173 
<a name="l00174"></a><a class="code" href="class_NLAIAGENT__CActor.html#a16">00174</a>         <font class="keyword">const</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a> &amp;CActor::getType()<font class="keyword"> const
</font>00175 <font class="keyword">        </font>{               
00176                 <font class="keywordflow">return</font> IdActor;
00177         }
00178 
<a name="l00179"></a><a class="code" href="class_NLAIAGENT__CActor.html#a17">00179</a>         <font class="keywordtype">void</font> CActor::save(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;os)<font class="keyword">
</font>00180 <font class="keyword">        </font>{
00181                 IAgent::save(os);
00182                 os.<a class="code" href="class_NLMISC__IStream.html#a3">serial</a>( (<font class="keywordtype">bool</font> &amp;) _IsActivated );
00183                 
00184         }
00185 
<a name="l00186"></a><a class="code" href="class_NLAIAGENT__CActor.html#a18">00186</a>         <font class="keywordtype">void</font> CActor::load(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;is)<font class="keyword">
</font>00187 <font class="keyword">        </font>{
00188                 IAgent::load(is);
00189         }
00190 
<a name="l00191"></a><a class="code" href="class_NLAIAGENT__CActor.html#a19">00191</a>         tQueue CActor::isMember(<font class="keyword">const</font> IVarName *className,<font class="keyword">const</font> <a class="code" href="class_NLAIAGENT__IVarName.html">NLAIAGENT::IVarName</a> *name,<font class="keyword">const</font> IObjectIA &amp;param)<font class="keyword"> const
</font>00192 <font class="keyword">        </font>{
00193                 tQueue result;
00194 
00195                 result = IAgent::isMember( className, name, param );
00196 
00197                 <font class="keywordflow">if</font> ( result.size() )
00198                         <font class="keywordflow">return</font> result;
00199 
00200 <font class="comment">//              if(className != NULL) </font>
00201 <font class="comment">//              {</font>
00202                         <font class="keywordflow">if</font> ( *name == CStringVarName(<font class="stringliteral">"activate"</font>) )
00203                         {
00204                                 CObjectType *r_type = <font class="keyword">new</font> CObjectType( <font class="keyword">new</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a>( NLAIC::CIdentType::VoidType ) );
00205                                 result.push( <a class="code" href="class_NLAIAGENT__CIdMethod.html">NLAIAGENT::CIdMethod</a>( fid_activate + IAgent::getMethodIndexSize(), 0.0,NULL, r_type ) );
00206                         }
00207 
00208                         <font class="keywordflow">if</font> ( *name == CStringVarName(<font class="stringliteral">"unActivate"</font>) )
00209                         {
00210                                 CObjectType *r_type = <font class="keyword">new</font> CObjectType( <font class="keyword">new</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a>( NLAIC::CIdentType::VoidType ) );
00211                                 result.push( <a class="code" href="class_NLAIAGENT__CIdMethod.html">NLAIAGENT::CIdMethod</a>( fid_unActivate + IAgent::getMethodIndexSize(), 0.0,NULL, r_type ) );
00212                         }
00213 
00214                         <font class="keywordflow">if</font> ( *name == CStringVarName(<font class="stringliteral">"forwardActivity"</font>) )
00215                         {
00216                                 CObjectType *r_type = <font class="keyword">new</font> CObjectType( <font class="keyword">new</font> <a class="code" href="class_NLAIC__CIdentType.html">NLAIC::CIdentType</a>( NLAIC::CIdentType::VoidType ) );
00217                                 result.push( <a class="code" href="class_NLAIAGENT__CIdMethod.html">NLAIAGENT::CIdMethod</a>( fid_forwardActivity + IAgent::getMethodIndexSize(), 0.0,NULL, r_type ) );
00218                         }
00219 <font class="comment">//              }</font>
00220                 <font class="keywordflow">return</font> result;
00221         }
00222 
00223         <font class="comment">// Executes a method from its index id and with its parameters</font>
<a name="l00224"></a><a class="code" href="class_NLAIAGENT__CActor.html#a20">00224</a>         IObjectIA::CProcessResult CActor::runMethodeMember(sint32 id, IObjectIA *params)<font class="keyword">
</font>00225 <font class="keyword">        </font>{
00226                 <font class="keywordflow">if</font> ( id &lt; IAgent::getMethodIndexSize() )
00227                         <font class="keywordflow">return</font> IAgent::runMethodeMember(id, params);
00228 
00229                 IObjectIA::CProcessResult r;
00230 
00231                 <font class="keywordtype">char</font> buf[1024];
00232                 getDebugString(buf);
00233 
00234                 id = id - IAgent::getMethodIndexSize();
00235                 
00236                 <font class="keywordflow">if</font> ( id == fid_activate )
00237                 {
00238                         activate();
00239                         IObjectIA::CProcessResult r;
00240                         r.ResultState =  NLAIAGENT::processIdle;
00241                         r.Result = NULL;
00242                 }
00243 
00244                 <font class="keywordflow">if</font> ( id == fid_unActivate )
00245                 {
00246                         unActivate();
00247                         IObjectIA::CProcessResult r;
00248                         r.ResultState =  NLAIAGENT::processIdle;
00249                         r.Result = NULL;
00250                 }
00251 
00252                 <font class="keywordflow">if</font> ( id == fid_forwardActivity )
00253                 {
00254                         std::vector&lt;CActor *&gt; forwarded;
00255                         <font class="keywordflow">if</font> ( ( (<a class="code" href="class_NLAIAGENT__IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *) params)-&gt;size() )
00256                         {
00257                                 IBaseGroupType *fw = (IBaseGroupType *) ( ((<a class="code" href="class_NLAIAGENT__IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *)params) )-&gt;getFront();
00258                                 ( ((<a class="code" href="class_NLAIAGENT__IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *)params))-&gt;popFront();
00259                                 <font class="keywordflow">while</font> ( fw-&gt;size() )
00260                                 {
00261                                         forwarded.push_back( (CActor *) fw-&gt;getFront() );
00262                                         fw-&gt;popFront();
00263                                 }
00264                                 forwardActivity( forwarded, <font class="keyword">false</font> );
00265                         }
00266                         IObjectIA::CProcessResult r;
00267                         r.ResultState =  NLAIAGENT::processIdle;
00268                         r.Result = NULL;
00269                 }
00270                 <font class="keywordflow">return</font> r;
00271         }
00272 
<a name="l00273"></a><a class="code" href="class_NLAIAGENT__CActor.html#a21">00273</a>         sint32 CActor::getMethodIndexSize()<font class="keyword"> const
</font>00274 <font class="keyword">        </font>{
00275                 <font class="keywordflow">return</font> IAgent::getMethodIndexSize() + 2;
00276         }
00277 }
</div></pre>

<!-- 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>