diff options
Diffstat (limited to 'docs/doxygen/nel/actor_8cpp-source.html')
-rw-r--r-- | docs/doxygen/nel/actor_8cpp-source.html | 326 |
1 files changed, 326 insertions, 0 deletions
diff --git a/docs/doxygen/nel/actor_8cpp-source.html b/docs/doxygen/nel/actor_8cpp-source.html new file mode 100644 index 00000000..d5db8fa6 --- /dev/null +++ b/docs/doxygen/nel/actor_8cpp-source.html @@ -0,0 +1,326 @@ +<!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> <A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A> </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> <A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A> </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> + + +<!-- 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> </td> +</tr></table> +<!-- Generated by Doxygen 1.2.14 --> +<center> +<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <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> </center> +<hr><h1>actor.cpp</h1><a href="actor_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="preprocessor">#include "<a class="code" href="actor_8h.html">nel/ai/agent/actor.h</a>"</font> +00002 <font class="preprocessor">#include "<a class="code" href="agent__script_8h.html">nel/ai/agent/agent_script.h</a>"</font> +00003 <font class="preprocessor">#include "<a class="code" href="object__type_8h.html">nel/ai/agent/object_type.h</a>"</font> +00004 +00005 <font class="keyword">namespace </font>NLAIAGENT +00006 { +<a name="l00008"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#a0">00008</a> CActor::CActor() : IAgent(NULL) +00009 { +00010 } +00011 +<a name="l00013"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#a1">00013</a> CActor::CActor(IAgent *father, <font class="keywordtype">bool</font> activated) : IAgent( father ) +00014 { +00015 <a class="code" href="classNLAIAGENT_1_1CActor.html#n0">_IsActivated</a> = activated; +00016 } +00017 +<a name="l00019"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#a2">00019</a> CActor::CActor(<font class="keyword">const</font> CActor &c) : IAgent( c ) +00020 { +00021 <a class="code" href="classNLAIAGENT_1_1CActor.html#n0">_IsActivated</a> = c._IsActivated; +00022 } +00023 +<a name="l00024"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#a3">00024</a> CActor::~CActor() +00025 { +00026 <font class="comment">// for (int i = 0; i < c._Transitions.size(); i++ )</font> +00027 <font class="comment">// _Transitions[i]->release();</font> +00028 } +00029 +<a name="l00031"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#a4">00031</a> <font class="keywordtype">bool</font> CActor::isActivated() +00032 { +00033 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1CActor.html#n0">_IsActivated</a>; +00034 } +00035 +<a name="l00037"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#a6">00037</a> <font class="keywordtype">void</font> CActor::activate() +00038 { +00039 <font class="keywordflow">if</font> ( !<a class="code" href="classNLAIAGENT_1_1CActor.html#n0">_IsActivated</a> ) +00040 { +00041 <a class="code" href="classNLAIAGENT_1_1CActor.html#a7">onActivate</a>(); +00042 <a class="code" href="classNLAIAGENT_1_1CActor.html#n0">_IsActivated</a> = <font class="keyword">true</font>; +00043 } +00044 } +00045 +<a name="l00047"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#a8">00047</a> <font class="keywordtype">void</font> CActor::unActivate() +00048 { +00049 <font class="keywordflow">if</font> ( _IsActivated ) +00050 { +00051 <a class="code" href="classNLAIAGENT_1_1CActor.html#a9">onUnActivate</a>(); +00052 <a class="code" href="classNLAIAGENT_1_1CActor.html#n0">_IsActivated</a> = <font class="keyword">false</font>; +00053 } +00054 } +00055 +<a name="l00059"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#b0">00059</a> <font class="keywordtype">void</font> CActor::forwardActivity(CActor *receiver, <font class="keywordtype">bool</font> stay_active) +00060 { +00061 receiver->activate(); +00062 +00063 <font class="keywordflow">if</font> ( !stay_active ) +00064 <a class="code" href="classNLAIAGENT_1_1CActor.html#a8">unActivate</a>(); +00065 } +00066 +<a name="l00070"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#b1">00070</a> <font class="keywordtype">void</font> CActor::forwardActivity(std::vector<CActor *> &actors, <font class="keywordtype">bool</font> stay_active) +00071 { +00072 std::vector<CActor *>::iterator it_act = actors.begin(); +00073 <font class="keywordflow">while</font> ( it_act != actors.end() ) +00074 { +00075 ( *it_act )->activate(); +00076 it_act++; +00077 } +00078 <font class="comment">// TODO: Envoi de message "activate" </font> +00079 <font class="keywordflow">if</font> ( !stay_active ) +00080 <a class="code" href="classNLAIAGENT_1_1CActor.html#a8">unActivate</a>(); +00081 } +00082 +<a name="l00084"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#a5">00084</a> <font class="keywordtype">void</font> CActor::addTransition(<a class="code" href="classNLAILOGIC_1_1IBaseCond.html">NLAILOGIC::IBaseCond</a> *cond, std::vector<CActor *> &outputs, <font class="keywordtype">bool</font> stay_alive) +00085 { +00086 +00087 } +00088 +00089 <font class="comment">// void CActor::addTransition(CTransition *trans)</font> +00090 <font class="comment">// {</font> +00091 <font class="comment">// _Transitions.push_back( trans );</font> +00092 <font class="comment">// }</font> +00093 +<a name="l00095"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#a7">00095</a> <font class="keywordtype">void</font> CActor::onActivate() +00096 { +00097 <font class="comment">// Default behaviour: do nothing</font> +00098 } +<a name="l00100"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#a9">00100</a> <font class="keywordtype">void</font> CActor::onUnActivate() +00101 { +00102 <font class="comment">// default behaviour: do nothing</font> +00103 } +00104 +<a name="l00105"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#z112_0">00105</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CActor::clone()<font class="keyword"> const</font> +00106 <font class="keyword"> </font>{ +00107 <a class="code" href="classNLAIAGENT_1_1CActor.html#a0">CActor</a> *m = <font class="keyword">new</font> <a class="code" href="classNLAIAGENT_1_1CActor.html#a0">CActor</a>(*<font class="keyword">this</font>); +00108 <font class="keywordflow">return</font> m; +00109 } +00110 +<a name="l00111"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#z112_1">00111</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CActor::newInstance()<font class="keyword"> const</font> +00112 <font class="keyword"> </font>{ +00113 <a class="code" href="classNLAIC_1_1IBasicInterface.html">NLAIC::IBasicInterface</a> *m; +00114 <font class="keywordflow">if</font> ( <a class="code" href="classNLAIAGENT_1_1IConnectIA.html#a3">getParent</a>() != NULL ) +00115 m = <font class="keyword">new</font> <a class="code" href="classNLAIAGENT_1_1CActor.html#a0">CActor</a>((<a class="code" href="classNLAIAGENT_1_1IAgent.html#b0">IAgent</a> *)<a class="code" href="classNLAIAGENT_1_1IConnectIA.html#a3">getParent</a>()); +00116 <font class="keywordflow">else</font> +00117 m = <font class="keyword">new</font> <a class="code" href="classNLAIAGENT_1_1CActor.html#a0">CActor</a>(NULL); +00118 <font class="keywordflow">return</font> m; +00119 } +00120 +<a name="l00121"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#z112_2">00121</a> <font class="keywordtype">void</font> CActor::getDebugString(std::string &<a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>)<font class="keyword"> const</font> +00122 <font class="keyword"> </font>{ +00123 <a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a> = <font class="stringliteral">"CActor "</font>; +00124 <font class="keywordflow">if</font> ( _IsActivated ) +00125 <a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a> += <font class="stringliteral">"<active>"</font>; +00126 <font class="keywordflow">else</font> +00127 <a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a> += <font class="stringliteral">"<idle>"</font>; +00128 } +00129 +<a name="l00130"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#z112_3">00130</a> <font class="keywordtype">bool</font> <a class="code" href="chain_8cpp.html#a2">CActor::isEqual</a>(<font class="keyword">const</font> IBasicObjectIA &a)<font class="keyword"> const</font> +00131 <font class="keyword"> </font>{ +00132 <font class="keywordflow">return</font> <font class="keyword">true</font>; +00133 } +00134 +<a name="l00135"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#z112_4">00135</a> <font class="keywordtype">void</font> CActor::processMessages() +00136 { +00137 IAgent::processMessages(); +00138 <font class="comment">/* while(getMail()->getMessageCount())</font> +00139 <font class="comment"> {</font> +00140 <font class="comment"> const IMessageBase &msg = getMail()->getMessage(); </font> +00141 <font class="comment"> run( msg );</font> +00142 <font class="comment"> getMail()->popMessage();</font> +00143 <font class="comment"> }*/</font> +00144 } +00145 +<a name="l00146"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#z112_5">00146</a> <font class="keyword">const</font> IObjectIA::CProcessResult &CActor::run() +00147 { +00148 <font class="keywordflow">if</font> ( _IsActivated ) +00149 { +00150 <font class="keywordflow">return</font> IAgent::run(); +00151 } +00152 <font class="keywordflow">else</font> +00153 <font class="keywordflow">return</font> IObjectIA::ProcessRun; +00154 +00155 } +00156 +00157 <font class="comment">/*IObjectIA *CActor::run(const IMessageBase &msg)</font> +00158 <font class="comment"> {</font> +00159 <font class="comment"> return IAgent::run( msg );</font> +00160 <font class="comment"> }*/</font> +00161 +<a name="l00162"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#z112_6">00162</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &CActor::getType()<font class="keyword"> const</font> +00163 <font class="keyword"> </font>{ +00164 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1CActor.html#z112_12">IdActor</a>; +00165 } +00166 +<a name="l00167"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#z112_7">00167</a> <font class="keywordtype">void</font> CActor::save(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &os) +00168 { +00169 IAgent::save(os); +00170 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( (<font class="keywordtype">bool</font> &) <a class="code" href="classNLAIAGENT_1_1CActor.html#n0">_IsActivated</a> ); +00171 +00172 } +00173 +<a name="l00174"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#z112_8">00174</a> <font class="keywordtype">void</font> CActor::load(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is) +00175 { +00176 IAgent::load(is); +00177 } +00178 +<a name="l00179"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#z112_9">00179</a> <a class="code" href="namespaceNLAIAGENT.html#a1">tQueue</a> CActor::isMember(<font class="keyword">const</font> IVarName *className,<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IVarName.html">NLAIAGENT::IVarName</a> *name,<font class="keyword">const</font> IObjectIA &<a class="code" href="driver__opengl__extension__def_8h.html#a382">param</a>)<font class="keyword"> const</font> +00180 <font class="keyword"> </font>{ +00181 <a class="code" href="namespaceNLAIAGENT.html#a1">tQueue</a> result; +00182 +00183 result = IAgent::isMember( className, name, <a class="code" href="driver__opengl__extension__def_8h.html#a382">param</a> ); +00184 +00185 <font class="keywordflow">if</font> ( result.size() ) +00186 <font class="keywordflow">return</font> result; +00187 +00188 <font class="comment">// if(className != NULL) </font> +00189 <font class="comment">// {</font> +00190 <font class="keywordflow">if</font> ( *name == CStringVarName(<font class="stringliteral">"activate"</font>) ) +00191 { +00192 CObjectType *r_type = <font class="keyword">new</font> CObjectType( <font class="keyword">new</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a>( <a class="code" href="classNLAIC_1_1CIdentType.html#p0">NLAIC::CIdentType::VoidType</a> ) ); +00193 result.push( <a class="code" href="structNLAIAGENT_1_1CIdMethod.html">NLAIAGENT::CIdMethod</a>( <a class="code" href="classNLAIAGENT_1_1CActor.html#t3t0">fid_activate</a> + IAgent::getMethodIndexSize(), 0.0,NULL, r_type ) ); +00194 } +00195 +00196 <font class="keywordflow">if</font> ( *name == CStringVarName(<font class="stringliteral">"unActivate"</font>) ) +00197 { +00198 CObjectType *r_type = <font class="keyword">new</font> CObjectType( <font class="keyword">new</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a>( <a class="code" href="classNLAIC_1_1CIdentType.html#p0">NLAIC::CIdentType::VoidType</a> ) ); +00199 result.push( <a class="code" href="structNLAIAGENT_1_1CIdMethod.html">NLAIAGENT::CIdMethod</a>( <a class="code" href="classNLAIAGENT_1_1CActor.html#t3t1">fid_unActivate</a> + IAgent::getMethodIndexSize(), 0.0,NULL, r_type ) ); +00200 } +00201 +00202 <font class="keywordflow">if</font> ( *name == CStringVarName(<font class="stringliteral">"forwardActivity"</font>) ) +00203 { +00204 CObjectType *r_type = <font class="keyword">new</font> CObjectType( <font class="keyword">new</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a>( <a class="code" href="classNLAIC_1_1CIdentType.html#p0">NLAIC::CIdentType::VoidType</a> ) ); +00205 result.push( <a class="code" href="structNLAIAGENT_1_1CIdMethod.html">NLAIAGENT::CIdMethod</a>( <a class="code" href="classNLAIAGENT_1_1CActor.html#t3t2">fid_forwardActivity</a> + IAgent::getMethodIndexSize(), 0.0,NULL, r_type ) ); +00206 } +00207 <font class="comment">// }</font> +00208 <font class="keywordflow">return</font> result; +00209 } +00210 +00211 <font class="comment">// Executes a method from its index id and with its parameters</font> +<a name="l00212"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#z112_10">00212</a> IObjectIA::CProcessResult CActor::runMethodeMember(sint32 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>, IObjectIA *<a class="code" href="driver__opengl__extension__def_8h.html#a357">params</a>) +00213 { +00214 <font class="keywordflow">if</font> ( <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a> < IAgent::getMethodIndexSize() ) +00215 <font class="keywordflow">return</font> IAgent::runMethodeMember(<a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>, <a class="code" href="driver__opengl__extension__def_8h.html#a357">params</a>); +00216 +00217 IObjectIA::CProcessResult <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>; +00218 +00219 <font class="preprocessor">#ifdef NL_DEBUG</font> +00220 <font class="preprocessor"></font> std::string buf; +00221 <a class="code" href="classNLAIAGENT_1_1CActor.html#z112_2">getDebugString</a>(buf); +00222 <font class="preprocessor">#endif</font> +00223 <font class="preprocessor"></font> +00224 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a> = <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a> - IAgent::getMethodIndexSize(); +00225 +00226 <font class="keywordflow">if</font> ( <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a> == <a class="code" href="classNLAIAGENT_1_1CActor.html#t3t0">fid_activate</a> ) +00227 { +00228 <a class="code" href="classNLAIAGENT_1_1CActor.html#a6">activate</a>(); +00229 IObjectIA::CProcessResult <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>; +00230 <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>.ResultState = NLAIAGENT::processIdle; +00231 <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>.Result = NULL; +00232 } +00233 +00234 <font class="keywordflow">if</font> ( <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a> == <a class="code" href="classNLAIAGENT_1_1CActor.html#t3t1">fid_unActivate</a> ) +00235 { +00236 <a class="code" href="classNLAIAGENT_1_1CActor.html#a8">unActivate</a>(); +00237 IObjectIA::CProcessResult <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>; +00238 <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>.ResultState = NLAIAGENT::processIdle; +00239 <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>.Result = NULL; +00240 } +00241 +00242 <font class="keywordflow">if</font> ( <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a> == <a class="code" href="classNLAIAGENT_1_1CActor.html#t3t2">fid_forwardActivity</a> ) +00243 { +00244 std::vector<CActor *> forwarded; +00245 <font class="keywordflow">if</font> ( ( (<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *) <a class="code" href="driver__opengl__extension__def_8h.html#a357">params</a>)->size() ) +00246 { +00247 IBaseGroupType *fw = (IBaseGroupType *) ( ((<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *)<a class="code" href="driver__opengl__extension__def_8h.html#a357">params</a>) )->getFront(); +00248 ( ((<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html">NLAIAGENT::IBaseGroupType</a> *)<a class="code" href="driver__opengl__extension__def_8h.html#a357">params</a>))->popFront(); +00249 <font class="keywordflow">while</font> ( fw->size() ) +00250 { +00251 forwarded.push_back( (<a class="code" href="classNLAIAGENT_1_1CActor.html#a0">CActor</a> *) fw->getFront() ); +00252 fw->popFront(); +00253 } +00254 <a class="code" href="classNLAIAGENT_1_1CActor.html#b0">forwardActivity</a>( forwarded, <font class="keyword">false</font> ); +00255 } +00256 IObjectIA::CProcessResult <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>; +00257 <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>.ResultState = NLAIAGENT::processIdle; +00258 <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>.Result = NULL; +00259 } +00260 <font class="keywordflow">return</font> <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>; +00261 } +00262 +<a name="l00263"></a><a class="code" href="classNLAIAGENT_1_1CActor.html#z112_11">00263</a> sint32 CActor::getMethodIndexSize()<font class="keyword"> const</font> +00264 <font class="keyword"> </font>{ +00265 <font class="keywordflow">return</font> IAgent::getMethodIndexSize() + 2; +00266 } +00267 } +</pre></div> + +<!-- footer --> +<BR><FONT Size=+5> </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> |