mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
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>
27 lines
745 B
C++
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
|