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
|
|
|
|
2001-08-02 14:27:06 +00:00
|
|
|
#ifndef RULESETS_PYTHON_THING_SCRIPT_H
|
|
|
|
|
#define RULESETS_PYTHON_THING_SCRIPT_H
|
2001-04-10 19:05:14 +00:00
|
|
|
|
|
|
|
|
#include "PythonScript.h"
|
|
|
|
|
|
|
|
|
|
class Thing;
|
|
|
|
|
|
|
|
|
|
class PythonThingScript : public PythonScript {
|
|
|
|
|
private:
|
|
|
|
|
Thing & thing;
|
|
|
|
|
public:
|
|
|
|
|
PythonThingScript(PyObject *, Thing &);
|
|
|
|
|
virtual ~PythonThingScript();
|
2001-08-02 14:27:06 +00:00
|
|
|
virtual bool Operation(const std::string &,
|
|
|
|
|
const Atlas::Objects::Operation::RootOperation &,
|
2002-03-08 14:58:40 +00:00
|
|
|
OpVector &,
|
2001-04-10 19:05:14 +00:00
|
|
|
Atlas::Objects::Operation::RootOperation * sub_op=NULL);
|
2001-08-14 17:52:50 +00:00
|
|
|
virtual void hook(const std::string &, Entity *);
|
2001-04-10 19:05:14 +00:00
|
|
|
};
|
|
|
|
|
|
2001-08-02 14:27:06 +00:00
|
|
|
#endif // RULESETS_PYTHON_THING_SCRIPT_H
|