aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/fsm__script_8cpp-source.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/fsm__script_8cpp-source.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to 'docs/doxygen/nel/fsm__script_8cpp-source.html')
-rw-r--r--docs/doxygen/nel/fsm__script_8cpp-source.html370
1 files changed, 370 insertions, 0 deletions
diff --git a/docs/doxygen/nel/fsm__script_8cpp-source.html b/docs/doxygen/nel/fsm__script_8cpp-source.html
new file mode 100644
index 00000000..811ea41a
--- /dev/null
+++ b/docs/doxygen/nel/fsm__script_8cpp-source.html
@@ -0,0 +1,370 @@
+<!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.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: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>fsm_script.cpp</h1><a href="fsm__script_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="preprocessor">#include "<a class="code" href="fsm__script_8h.html">nel/ai/logic/fsm_script.h</a>"</font>
+00002 <font class="preprocessor">#include "<a class="code" href="msg__action_8h.html">nel/ai/agent/msg_action.h</a>"</font>
+00003 <font class="preprocessor">#include "<a class="code" href="agent_8h.html">nel/ai/agent/agent.h</a>"</font>
+00004 <font class="preprocessor">#include "<a class="code" href="agent__script_8h.html">nel/ai/agent/agent_script.h</a>"</font>
+00005 <font class="preprocessor">#include "<a class="code" href="object__type_8h.html">nel/ai/agent/object_type.h</a>"</font>
+00006 <font class="preprocessor">#include "<a class="code" href="codage_8h.html">nel/ai/script/codage.h</a>"</font>
+00007 <font class="comment">//#include "nel/ai/logic/interpret_object_operator.h"</font>
+00008 <font class="preprocessor">#include "<a class="code" href="interpret__message__action_8h.html">nel/ai/script/interpret_message_action.h</a>"</font>
+00009
+00010 <font class="keyword">namespace </font>NLAIAGENT
+00011 {
+00012 <font class="keyword">static</font> CGroupType listBidon;
+00013
+00015 <font class="comment">// Succes and failure messages declaration</font>
+00016 <font class="comment">/*</font>
+00017 <font class="comment"> NLAISCRIPT::COperandSimpleListOr *CFsmScript::ParamIdSuccessMsg = NULL;</font>
+00018 <font class="comment"> NLAISCRIPT::CParam *CFsmScript::ParamSuccessMsg = NULL;</font>
+00019 <font class="comment"> NLAISCRIPT::COperandSimpleListOr *CFsmScript::ParamIdFailureMsg = NULL;</font>
+00020 <font class="comment"> NLAISCRIPT::CParam *CFsmScript::ParamFailureMsg = NULL;</font>
+00021 <font class="comment"></font>
+00022 <font class="comment"> void CFsmScript::initClass()</font>
+00023 <font class="comment"> {</font>
+00024 <font class="comment"> CFsmScript::ParamIdSuccessMsg = new NLAISCRIPT::COperandSimpleListOr(2,</font>
+00025 <font class="comment"> new NLAIC::CIdentType(NLAIAGENT::CSuccessMsg::IdSuccessMsg),</font>
+00026 <font class="comment"> new NLAIC::CIdentType(NLAISCRIPT::CSuccessMsgClass::IdSuccessMsgClass) ); </font>
+00027 <font class="comment"> CFsmScript::ParamSuccessMsg = new NLAISCRIPT::CParam(1,ParamIdSuccessMsg); </font>
+00028 <font class="comment"> CFsmScript::ParamIdFailureMsg = new NLAISCRIPT::COperandSimpleListOr(2,</font>
+00029 <font class="comment"> new NLAIC::CIdentType(NLAIAGENT::CFailureMsg::IdFailureMsg),</font>
+00030 <font class="comment"> new NLAIC::CIdentType(NLAISCRIPT::CFailureMsgClass::IdFailureMsgClass) );</font>
+00031 <font class="comment"></font>
+00032 <font class="comment"> CFsmScript::ParamFailureMsg = new NLAISCRIPT::CParam(1,ParamIdFailureMsg);</font>
+00033 <font class="comment"> }</font>
+00034 <font class="comment"> void CFsmScript::releaseClass()</font>
+00035 <font class="comment"> { </font>
+00036 <font class="comment"> CFsmScript::ParamSuccessMsg-&gt;release(); </font>
+00037 <font class="comment"> CFsmScript::ParamFailureMsg-&gt;release();</font>
+00038 <font class="comment"> }</font>
+00039 <font class="comment">*/</font>
+00041
+00042
+<a name="l00043"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a1">00043</a> CFsmScript::CFsmScript(<font class="keyword">const</font> CFsmScript &amp;a) : CActorScript(a)
+00044 {
+00045 <font class="comment">/* std::vector&lt;IBasicAgent *&gt;::const_iterator it_c = a._ActiveChilds.begin();</font>
+00046 <font class="comment"> while ( it_c != a._ActiveChilds.end() )</font>
+00047 <font class="comment"> {</font>
+00048 <font class="comment"> _ActiveChilds.push_back( (IBasicAgent *) (*it_c)-&gt;clone() );</font>
+00049 <font class="comment"> it_c++;</font>
+00050 <font class="comment"> }</font>
+00051 <font class="comment"> */</font>
+00052 }
+00053
+<a name="l00054"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a2">00054</a> CFsmScript::CFsmScript(IAgentManager *manager,
+00055 IBasicAgent *father,
+00056 <a class="code" href="classstd_1_1list.html">std::list&lt;IObjectIA *&gt;</a> &amp;<a class="code" href="driver__opengl__extension__def_8h.html#a413">components</a>,
+00057 <a class="code" href="classNLAISCRIPT_1_1CFsmClass.html">NLAISCRIPT::CFsmClass</a> *actor_class )
+00058 : CActorScript(manager, father, components, actor_class )
+00059 {
+00060 }
+00061
+<a name="l00062"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a0">00062</a> CFsmScript::CFsmScript(IAgentManager *manager, <font class="keywordtype">bool</font> stay_alive) : CActorScript( manager, stay_alive )
+00063 {
+00064 }
+00065
+<a name="l00066"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a3">00066</a> CFsmScript::~CFsmScript()
+00067 {
+00068 <font class="comment">/* ParamIdSuccessMsg-&gt;release();</font>
+00069 <font class="comment"> ParamSuccessMsg-&gt;release();</font>
+00070 <font class="comment"> ParamIdFailureMsg-&gt;release();</font>
+00071 <font class="comment"> ParamFailureMsg-&gt;release();</font>
+00072 <font class="comment"> */</font>
+00073 }
+00074
+<a name="l00075"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a5">00075</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CFsmScript::clone()<font class="keyword"> const</font>
+00076 <font class="keyword"> </font>{
+00077 <a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a0">CFsmScript</a> *m = <font class="keyword">new</font> <a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a0">CFsmScript</a>(*<font class="keyword">this</font>);
+00078 <font class="keywordflow">return</font> m;
+00079 }
+00080
+<a name="l00081"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a6">00081</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CFsmScript::newInstance()<font class="keyword"> const</font>
+00082 <font class="keyword"> </font>{
+00083 <a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a0">CFsmScript</a> *instance;
+00084 <font class="keywordflow">if</font> ( _AgentClass )
+00085 {
+00086 instance = (<a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a0">CFsmScript</a> *) <a class="code" href="classNLAIAGENT_1_1CAgentScript.html#n4">_AgentClass</a>-&gt;<a class="code" href="classNLAISCRIPT_1_1CAgentClass.html#a6">buildNewInstance</a>();
+00087 }
+00088 <font class="keywordflow">else</font>
+00089 {
+00090 instance = <font class="keyword">new</font> <a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a0">CFsmScript</a>(NULL);
+00091 }
+00092 <font class="keywordflow">return</font> instance;
+00093 }
+00094
+<a name="l00095"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a7">00095</a> <font class="keywordtype">void</font> CFsmScript::getDebugString(std::string &amp;<a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>)<font class="keyword"> const</font>
+00096 <font class="keyword"> </font>{
+00097 <font class="keywordflow">if</font> ( _AgentClass )
+00098 {
+00099 std::string buf;
+00100 <a class="code" href="classNLAIAGENT_1_1CAgentScript.html#n4">_AgentClass</a>-&gt;<a class="code" href="classNLAISCRIPT_1_1CAgentClass.html#a9">getDebugString</a>(buf);
+00101 <a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a> += buf;
+00102 }
+00103 <font class="keywordflow">else</font>
+00104 <a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a> += <font class="stringliteral">"&lt;CFsmScript&gt;"</font>;
+00105 }
+00106
+<a name="l00107"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a8">00107</a> <font class="keywordtype">bool</font> <a class="code" href="chain_8cpp.html#a2">CFsmScript::isEqual</a>(<font class="keyword">const</font> IBasicObjectIA &amp;a)<font class="keyword"> const</font>
+00108 <font class="keyword"> </font>{
+00109 <font class="keywordflow">return</font> <font class="keyword">true</font>;
+00110 }
+00111
+<a name="l00112"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a11">00112</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &amp;CFsmScript::getType()<font class="keyword"> const</font>
+00113 <font class="keyword"> </font>{
+00114 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1CFsmScript.html#p0">IdFsmScript</a>;
+00115 }
+00116
+<a name="l00117"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a12">00117</a> <font class="keywordtype">void</font> CFsmScript::save(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;os)
+00118 {
+00119 CAgentScript::save(os);
+00120 <font class="comment">// TODO</font>
+00121 }
+00122
+<a name="l00123"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a13">00123</a> <font class="keywordtype">void</font> CFsmScript::load(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;is)
+00124 {
+00125 CAgentScript::load(is);
+00126 <font class="comment">// TODO</font>
+00127 }
+00128
+<a name="l00129"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a16">00129</a> sint32 CFsmScript::getMethodIndexSize()<font class="keyword"> const</font>
+00130 <font class="keyword"> </font>{
+00131 <font class="keywordflow">return</font> CAgentScript::getBaseMethodCount();
+00132 }
+00133
+00134 <font class="comment">/* IObjectIA::CProcessResult CFsmScript::runMethodBase(int index,int heritance, IObjectIA *params)</font>
+00135 <font class="comment"> { </font>
+00136 <font class="comment"> IObjectIA::CProcessResult r;</font>
+00137 <font class="comment">*/</font>
+00138 <font class="comment">/* if ( index == fid_activate )</font>
+00139 <font class="comment"> {</font>
+00140 <font class="comment"> activate();</font>
+00141 <font class="comment"> IObjectIA::CProcessResult r;</font>
+00142 <font class="comment"> r.ResultState = NLAIAGENT::processIdle;</font>
+00143 <font class="comment"> r.Result = NULL;</font>
+00144 <font class="comment"> }</font>
+00145 <font class="comment">*/</font>
+00146 <font class="comment">/* return CAgentScript::runMethodeBase(heritance,index,params);</font>
+00147 <font class="comment"> }</font>
+00148 <font class="comment"></font>
+00149 <font class="comment">*/</font>
+00150
+<a name="l00151"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a14">00151</a> IObjectIA::CProcessResult CFsmScript::runMethodBase(<font class="keywordtype">int</font> <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>,IObjectIA *<a class="code" href="driver__opengl__extension__def_8h.html#a357">params</a>)
+00152 {
+00153
+00154
+00155 <font class="keywordtype">int</font> i = <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a> - IAgent::getMethodIndexSize();
+00156
+00157 <font class="keywordflow">if</font> ( i &lt; <a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a4">getBaseMethodCount</a>() )
+00158 <font class="keywordflow">return</font> CAgentScript::runMethodBase(<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>, <a class="code" href="driver__opengl__extension__def_8h.html#a357">params</a>);
+00159
+00160 <font class="keywordflow">switch</font> ( i )
+00161 {
+00162 <font class="keywordflow">case</font> 1:
+00163 <a class="code" href="classNLAIAGENT_1_1CActorScript.html#a33">onSuccess</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a357">params</a>);
+00164 <font class="keywordflow">break</font>;
+00165 <font class="keywordflow">case</font> 2:
+00166 <a class="code" href="classNLAIAGENT_1_1CActorScript.html#a34">onFailure</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a357">params</a>);
+00167 <font class="keywordflow">break</font>;
+00168 }
+00169
+00170 IObjectIA::CProcessResult <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>;
+00171
+00172 <font class="preprocessor">#ifdef NL_DEBUG</font>
+00173 <font class="preprocessor"></font> std::string buf;
+00174 <a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a7">getDebugString</a>(buf);
+00175 <font class="preprocessor">#endif</font>
+00176 <font class="preprocessor"></font>
+00177 <font class="keywordflow">return</font> <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>;
+00178 }
+00179
+<a name="l00180"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a4">00180</a> <font class="keywordtype">int</font> CFsmScript::getBaseMethodCount()<font class="keyword"> const</font>
+00181 <font class="keyword"> </font>{
+00182 <font class="keywordflow">return</font> CAgentScript::getBaseMethodCount();
+00183 }
+00184
+00185
+<a name="l00186"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a15">00186</a> <a class="code" href="namespaceNLAIAGENT.html#a1">tQueue</a> CFsmScript::isMember(<font class="keyword">const</font> IVarName *className,<font class="keyword">const</font> IVarName *name,<font class="keyword">const</font> IObjectIA &amp;<a class="code" href="driver__opengl__extension__def_8h.html#a382">param</a>)<font class="keyword"> const</font>
+00187 <font class="keyword"> </font>{
+00188 <font class="preprocessor">#ifdef NL_DEBUG</font>
+00189 <font class="preprocessor"></font> <font class="keyword">const</font> <font class="keywordtype">char</font> *dbg_func_name = name-&gt;getString();
+00190 <font class="preprocessor">#endif</font>
+00191 <font class="preprocessor"></font>
+00192 <a class="code" href="namespaceNLAIAGENT.html#a1">tQueue</a> result = CAgentScript::isMember( className, name, <a class="code" href="driver__opengl__extension__def_8h.html#a382">param</a>);
+00193
+00194 <font class="keyword">static</font> <a class="code" href="classNLAIAGENT_1_1CStringVarName.html">NLAIAGENT::CStringVarName</a> run_tell(<font class="stringliteral">"RunTell"</font>);
+00195 <font class="keyword">static</font> <a class="code" href="classNLAIAGENT_1_1CStringVarName.html">NLAIAGENT::CStringVarName</a> get_active(<font class="stringliteral">"getActive"</font>);
+00196
+00197 <font class="keywordflow">if</font> ( result.size() )
+00198 <font class="keywordflow">return</font> result;
+00199
+00200 <font class="comment">// Processes succes and failure functions</font>
+00201 <font class="keywordflow">if</font> ( *name == run_tell)
+00202 {
+00203 <font class="keywordtype">double</font> d;
+00204 d = ((<a class="code" href="classNLAISCRIPT_1_1CParam.html">NLAISCRIPT::CParam</a> &amp;)*<a class="code" href="classNLAIAGENT_1_1CActorScript.html#p1">ParamSuccessMsg</a>).eval((<a class="code" href="classNLAISCRIPT_1_1CParam.html">NLAISCRIPT::CParam</a> &amp;)<a class="code" href="driver__opengl__extension__def_8h.html#a382">param</a>);
+00205 <font class="keywordflow">if</font> ( d &gt;= 0.0 )
+00206 {
+00207 <a class="code" href="classNLAIAGENT_1_1CObjectType.html">NLAIAGENT::CObjectType</a> *r_type = <font class="keyword">new</font> <a class="code" href="classNLAIAGENT_1_1CObjectType.html">NLAIAGENT::CObjectType</a>( <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> ) );
+00208 result.push( <a class="code" href="structNLAIAGENT_1_1CIdMethod.html">NLAIAGENT::CIdMethod</a>( IAgent::getMethodIndexSize() + 1, 0.0,NULL, r_type ) );
+00209 }
+00210
+00211 d = ((<a class="code" href="classNLAISCRIPT_1_1CParam.html">NLAISCRIPT::CParam</a> &amp;)*<a class="code" href="classNLAIAGENT_1_1CActorScript.html#p3">ParamFailureMsg</a>).eval((<a class="code" href="classNLAISCRIPT_1_1CParam.html">NLAISCRIPT::CParam</a> &amp;)<a class="code" href="driver__opengl__extension__def_8h.html#a382">param</a>);
+00212 <font class="keywordflow">if</font> ( d &gt;= 0.0 )
+00213 {
+00214 <a class="code" href="classNLAIAGENT_1_1CObjectType.html">NLAIAGENT::CObjectType</a> *r_type = <font class="keyword">new</font> <a class="code" href="classNLAIAGENT_1_1CObjectType.html">NLAIAGENT::CObjectType</a>( <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> ) );
+00215 result.push( <a class="code" href="structNLAIAGENT_1_1CIdMethod.html">NLAIAGENT::CIdMethod</a>( IAgent::getMethodIndexSize() + 2, 0.0,NULL, r_type ) );
+00216 }
+00217 }
+00218
+00219 <font class="comment">// Returns a list of active states</font>
+00220 <font class="keywordflow">if</font> ( *name == get_active )
+00221 {
+00222 <font class="comment">// Todo</font>
+00223 }
+00224
+00225 <font class="keywordflow">return</font> result;
+00226 }
+00227
+<a name="l00228"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a9">00228</a> <font class="keyword">const</font> IObjectIA::CProcessResult &amp;CFsmScript::run()
+00229 {
+00230 <font class="keywordflow">return</font> CAgentScript::run();
+00231 }
+00232
+<a name="l00233"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a18">00233</a> <font class="keywordtype">void</font> CFsmScript::activate(IBasicAgent *child)
+00234 {
+00235 <font class="comment">// _ActiveChilds.push_back(child);</font>
+00236 }
+00237
+<a name="l00238"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a19">00238</a> <font class="keywordtype">void</font> CFsmScript::unactivate(IBasicAgent *child)
+00239 {
+00240 <font class="comment">/* std::vector&lt;IBasicAgent *&gt;::iterator it_c = _ActiveChilds.begin();</font>
+00241 <font class="comment"> while ( it_c != _ActiveChilds.end() )</font>
+00242 <font class="comment"> {</font>
+00243 <font class="comment"> if ( child == *it_c )</font>
+00244 <font class="comment"> {</font>
+00245 <font class="comment"> _ActiveChilds.erase( it_c );</font>
+00246 <font class="comment"> return;</font>
+00247 <font class="comment"> }</font>
+00248 <font class="comment"> it_c++;</font>
+00249 <font class="comment"> }</font>
+00250 <font class="comment"> */</font>
+00251 }
+00252
+<a name="l00253"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a10">00253</a> <font class="keywordtype">void</font> CFsmScript::runChildren()
+00254 {
+00255 <font class="preprocessor">#ifdef NL_DEBUG </font>
+00256 <font class="preprocessor"></font> <font class="keyword">const</font> <font class="keywordtype">char</font> *classBase = (<font class="keyword">const</font> <font class="keywordtype">char</font> *)<a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a11">getType</a>();
+00257 <font class="preprocessor">#endif</font>
+00258 <font class="preprocessor"></font><font class="comment">/* std::vector&lt;IBasicAgent *&gt;::iterator it_c = _ActiveChilds.begin();</font>
+00259 <font class="comment"> while ( it_c != _ActiveChilds.end() )</font>
+00260 <font class="comment"> {</font>
+00261 <font class="comment"> IBasicAgent *child = *it_c;</font>
+00262 <font class="comment"> (*it_c)-&gt;run();</font>
+00263 <font class="comment"> it_c++;</font>
+00264 <font class="comment"> }</font>
+00265 <font class="comment"> */</font>
+00266
+00267 <font class="comment">// Activation des fils</font>
+00268 CAgentScript::runChildren();
+00269 }
+00270
+00271 <font class="comment">/*</font>
+00272 <font class="comment"> void CFsmScript::onSuccess( IObjectIA *)</font>
+00273 <font class="comment"> {</font>
+00274 <font class="comment"> // Envoi d'un message succès au père</font>
+00275 <font class="comment"> }</font>
+00276 <font class="comment"></font>
+00277 <font class="comment"> void CFsmScript::onFailure( IObjectIA *)</font>
+00278 <font class="comment"> {</font>
+00279 <font class="comment"> // Envoi d'un message echec au père</font>
+00280 <font class="comment"> }</font>
+00281 <font class="comment"> */</font>
+00282
+<a name="l00283"></a><a class="code" href="classNLAIAGENT_1_1CFsmScript.html#a20">00283</a> <font class="keywordtype">void</font> CFsmScript::setTopLevel(<a class="code" href="classNLAIAGENT_1_1CAgentScript.html">NLAIAGENT::CAgentScript</a> *tl)
+00284 {
+00285 <a class="code" href="classNLAIAGENT_1_1CActorScript.html#n12">_TopLevel</a> = tl;
+00286
+00287 <font class="keywordflow">for</font> (<font class="keywordtype">int</font> i = 0; i &lt; <a class="code" href="classNLAIAGENT_1_1CAgentScript.html#n1">_NbComponents</a>; i++ )
+00288 {
+00289 <font class="keywordflow">if</font> ( <a class="code" href="classNLAIAGENT_1_1CAgentScript.html#n0">_Components</a>[i]-&gt;isClassInheritedFrom( <a class="code" href="classNLAIAGENT_1_1CStringVarName.html">NLAIAGENT::CStringVarName</a>(<font class="stringliteral">"Actor"</font>) ) != -1 )
+00290 {
+00291 <font class="keywordflow">if</font> ( _TopLevel )
+00292 ( (<a class="code" href="classNLAIAGENT_1_1CActorScript.html#a0">CActorScript</a> *)<a class="code" href="classNLAIAGENT_1_1CAgentScript.html#n0">_Components</a>[i] )-&gt;<a class="code" href="classNLAIAGENT_1_1CAgentScript.html#a14">setTopLevel</a>( <a class="code" href="classNLAIAGENT_1_1CActorScript.html#n12">_TopLevel</a> );
+00293 <font class="keywordflow">else</font>
+00294 ( (<a class="code" href="classNLAIAGENT_1_1CActorScript.html#a0">CActorScript</a> *)<a class="code" href="classNLAIAGENT_1_1CAgentScript.html#n0">_Components</a>[i] )-&gt;setTopLevel( <font class="keyword">this</font> );
+00295 }
+00296 }
+00297 }
+00298 }
+</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=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
+</TR>
+</TABLE>
+</BODY>
+</HTML>