aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/actor_cpp-source.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/doxygen/nel/actor_cpp-source.html336
1 files changed, 336 insertions, 0 deletions
diff --git a/docs/doxygen/nel/actor_cpp-source.html b/docs/doxygen/nel/actor_cpp-source.html
new file mode 100644
index 00000000..dc6c8f1a
--- /dev/null
+++ b/docs/doxygen/nel/actor_cpp-source.html
@@ -0,0 +1,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="http://www.nevrax.org/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="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
+ <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.com><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="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/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="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD>
+ <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/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="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr>
+ </TABLE>
+ </TD></TR></TABLE></TD></TR></TABLE>
+ <!------ End Box ------>
+
+ </TD>
+ <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">
+
+<!-- title -->
+<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td>
+<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A>
+</td><td><IMG SRC="http://www.nevrax.org/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="http://www.nevrax.org/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:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/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=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
+</TR>
+</TABLE>
+</BODY>
+</HTML>