Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pythonai.h
Go to the documentation of this file.
1 #include <Python.h>
2 #include "fire.h"
3 #include <assert.h>
4 
5 using Orders::FireAt;
6 class PythonAI : public FireAt
7 {
8  PyObject *self;
9  PythonAI( const PythonAI &a ) : FireAt( a )
10  {
11  assert( 0 );
12  }
13  static PythonAI *last_ai;
14 protected:
15  virtual void Destruct();
16 public: PythonAI( PyObject *self, float reaction_time, float agressivity );
17  virtual void Execute();
18  static void default_Execute( FireAt &pay );
19  static void InitModuleAI();
20  static PythonAI * LastAI();
21  static PythonAI * Factory( const std::string &file );
22  virtual ~PythonAI();
23 };
24