Update of /cvsroot/wpdev/wolfpack/ai
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9671/ai
Modified Files:
ai.cpp ai_humans.cpp
Log Message:
Reimplemented context menus
Index: ai.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/ai/ai.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ai.cpp 24 Jan 2004 22:35:28 -0000 1.2
--- ai.cpp 28 Jan 2004 02:18:13 -0000 1.3
***************
*** 48,55 ****
#include <vector>
void cAIFactory::checkScriptAI( const QStringList &oldSections, const QStringList &newSections )
{
QStringList::const_iterator aiit = oldSections.begin();
! while( aiit != oldSections.end() )
{
// We must reset all existing and scripted AI objects, so changes can take effect.
--- 48,59 ----
#include <vector>
+ /*****************************************************************************
+ cAIFactory member functions
+ *****************************************************************************/
+
void cAIFactory::checkScriptAI( const QStringList &oldSections, const QStringList &newSections )
{
QStringList::const_iterator aiit = oldSections.begin();
! for( ; aiit != oldSections.end(); ++aiit )
{
// We must reset all existing and scripted AI objects, so changes can take effect.
***************
*** 88,92 ****
unregisterType( *aiit );
}
- ++aiit;
}
aiit = newSections.begin();
--- 92,95 ----
***************
*** 101,104 ****
--- 104,111 ----
}
+ /*****************************************************************************
+ cAbstractAI member functions
+ *****************************************************************************/
+
struct stActionNode
{
***************
*** 160,163 ****
--- 167,174 ----
}
+ /*****************************************************************************
+ cScriptAI member functions
+ *****************************************************************************/
+
void ScriptAI::registerInFactory( const QString &name )
{
Index: ai_humans.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/ai/ai_humans.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ai_humans.cpp 24 Jan 2004 22:35:28 -0000 1.2
--- ai_humans.cpp 28 Jan 2004 02:18:13 -0000 1.3
***************
*** 47,51 ****
static AbstractAI* productCreator_HV()
{
! return new Human_Vendor( NULL );
}
--- 47,51 ----
static AbstractAI* productCreator_HV()
{
! return new Human_Vendor(0);
}
|