Code Search for Developers
 
 
  

PythonAI.h from FreeOrion at Krugle


Show PythonAI.h syntax highlighted

#include "AIInterface.h"

#include <boost/python.hpp>

#include <string>

class PythonAI : public AIBase
{
public:
    /** \name structors */ //@{
    PythonAI();
    ~PythonAI();
    //@}

    void GenerateOrders();
    void HandleChatMessage(int sender_id, const std::string& msg);

private:
    typedef boost::python::handle<PyObject>     PyHANDLE;
    typedef boost::python::object               PyOBJECT;
    typedef boost::python::error_already_set    PyERROR;

    PyOBJECT main_module;
    PyOBJECT dict;
};




See more files for this project here

FreeOrion

FreeOrion brings nation building to a galactic scale with its full-featured grand campaign and in-game racial histories, in addition to the classic 4X model of galactic conquest and tactical combat.

Project homepage: http://sourceforge.net/projects/freeorion
Programming language(s): C,C++
License: other

  AIInterface.cpp
  AIInterface.h
  PythonAI.cpp
  PythonAI.h
  ReferenceAI.cpp
  ReferenceAI.h