5 #include <boost/version.hpp>
6 #if BOOST_VERSION != 102800
7 #include <boost/python/class.hpp>
9 #include <boost/python/class_builder.hpp>
10 #include <boost/python/detail/extension_class.hpp>
18 using namespace Orders;
20 PythonAI::PythonAI( PyObject *self_,
float reaction_time,
float aggressivity ) :
FireAt( reaction_time, aggressivity )
33 (self_).FireAt::Execute();
48 boost::python::callback< void >::call_method(
self,
"Execute" );
52 boost::python::module_builder ai_builder(
"AI" );
53 boost::python::class_builder< FireAt, PythonAI >BaseClass( ai_builder,
"FireAt" );
55 BaseClass.def( boost::python::constructor< float, float > () );
60 VSFileSystem::vs_fprintf( stderr,
"Destruct called. If called from C++ this is death %ld (%lx)", (
unsigned long)
this,
61 (
unsigned long)
this );