2001-04-10 19:05:14 +00:00
|
|
|
// This file may be redistributed and modified only under the terms of
|
|
|
|
|
// the GNU General Public License (See COPYING for details).
|
2001-04-16 16:26:44 +00:00
|
|
|
// Copyright (C) 2001 Alistair Riddoch
|
2001-04-10 19:05:14 +00:00
|
|
|
|
|
|
|
|
#ifndef PYTHON_SCRIPT_H
|
|
|
|
|
#define PYTHON_SCRIPT_H
|
|
|
|
|
|
|
|
|
|
#include "Script.h"
|
|
|
|
|
|
|
|
|
|
#include <Python.h>
|
|
|
|
|
|
|
|
|
|
class Entity;
|
|
|
|
|
|
|
|
|
|
class PythonScript : public Script {
|
|
|
|
|
protected:
|
2001-04-11 14:34:15 +00:00
|
|
|
PyObject * scriptObject;
|
2001-04-10 19:05:14 +00:00
|
|
|
Entity & entity;
|
|
|
|
|
public:
|
|
|
|
|
PythonScript(PyObject *, Entity &);
|
|
|
|
|
virtual ~PythonScript();
|
|
|
|
|
virtual bool Operation(const string&,
|
|
|
|
|
const Atlas::Objects::Operation::RootOperation&, oplist&,
|
|
|
|
|
Atlas::Objects::Operation::RootOperation * sub_op=NULL) = 0;
|
|
|
|
|
virtual void hook(const string &, Entity *) = 0;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // PYTHON_SCRIPT_H
|