cyphesis/rulesets/PythonScript.h
Al Riddoch 43211cf9d1 * Re-wrote class headers files so that all class members now
begin with a lower case letter and do not contain _.

	* Fixed retrieval of Account from database so that the Account
	  is now correctly referenced in the server object.

	* common/types.h: Changed type name to make them clearer.

	* rulesets/Character.h: Moved MovementInfo into its own class
	  file, and made it a base class, with a Pedestrian super class.
	  This allows different types of movement handling classes
	  to be used to handle things that move differently.

Al Riddoch  <alriddoch@zepler.org>
2001-04-11 14:34:15 +00:00

27 lines
745 B
C++

// This file may be redistributed and modified only under the terms of
// the GNU General Public License (See COPYING for details).
// Copyright (C) 2000 Alistair Riddoch
#ifndef PYTHON_SCRIPT_H
#define PYTHON_SCRIPT_H
#include "Script.h"
#include <Python.h>
class Entity;
class PythonScript : public Script {
protected:
PyObject * scriptObject;
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