Commit graph

26 commits

Author SHA1 Message Date
Olek Wojnar
7f9ff2246d Remove CVS $Id tags
The legacy tags are causing build issues in Debian.
2013-07-15 20:31:59 +02:00
Alistair Riddoch
fafb1a3cf2 Remove unused Entity includes 2013-01-18 19:04:07 +00:00
Alistair Riddoch
4a9c7078f7 Refactor to use LocatedEntity as base class
All IG code should use the interface of LocatedEntity when dealing
with any entity, rather than sometimes requiring Entity. Add virtual
functions to the interface where required, and modify all other interfaces
to stop them using Entity. This makes the code way cleaner, and much better
de-coupled.
2013-01-17 10:17:07 +00:00
Alistair Riddoch
6c58b0fea8 Fix mistatch "f" format, double variable
Unlike the recent fix in Py_Shape this could not have caused memory issues,
but was almost certainly resulting in malformed doubles.
2012-12-24 12:23:44 +00:00
Alistair Riddoch
918af08066 Remove default dealloc slot implementation 2011-12-27 16:26:32 +01:00
Alistair Riddoch
f2b8acb83a Converge all property wrapper into one structure
I am following the model layed down in Py_Thing which allows Python
inheritance to work correctly, while keeping pretty good C++ type safety.
2011-12-27 16:23:22 +01:00
Alistair Riddoch
191bc1e6ce Correct some debug messages 2011-12-26 00:53:24 +00:00
Alistair Riddoch
19a0630d79 Use tp_methods rather than getattr for methods
Requiring getattr for method lookups is archaic and messy.
In getattr is required, implement getattro, and end it with
PyObject_GenericGetAttr which handles the method lookup from
tp_methods
2011-12-26 00:50:47 +00:00
Alistair Riddoch
27a32398f6 Complete Python wrapper to return entity references to the script 2010-09-17 22:11:48 +01:00
Alistair Riddoch
85087db17e Use terrain mod contexts to store pointer to Entity with mod 2010-09-17 22:00:59 +01:00
Alistair Riddoch
da941f1bb1 Add Python wrapper to query terrain mods. 2010-09-12 02:23:30 +01:00
Alistair Riddoch
0ac19bd3f0 Fill out the assert checks to check both pointers. 2009-11-16 04:01:27 +00:00
Alistair Riddoch
e2a015f041 Add note about poor interface design. 2009-11-16 03:36:08 +00:00
Alistair Riddoch
524153de05 Clean up the formatting, removing hard tabs. 2009-08-21 03:24:18 +01:00
Alistair Riddoch
ab2730237c Replace messy terrain query calls with efficient ones like the library. 2009-08-21 03:21:26 +01:00
Amey Parulekar
a72f4fb8db Applied Alistair's patch 2009-08-12 11:51:15 +01:00
Amey Parulekar
bf233986ad Fixed binding for getNormal 2009-07-16 20:49:03 +05:30
Amey Parulekar
2ff849e6dc Removed unnecessary commented code in binding 2009-07-16 15:39:09 +05:30
Amey Parulekar
a8a3836296 Trying to add a python binding to Mercator's getHeightAndNormal 2009-07-16 15:36:17 +05:30
Alistair Riddoch
70b612abba Convery object creation to use tp_new. 2009-07-04 20:36:34 +01:00
Alistair Riddoch
1c260a8201 Remove unnecessary tp_new implementations from all bindings that don't need them 2009-06-04 15:29:34 +01:00
Alistair Riddoch
5ca87d7320 Remove useless code from the Python compare operators. 2009-06-03 20:47:15 +01:00
Alistair Riddoch
665993f638 Update IDs 2009-04-09 12:42:44 +01:00
Al Riddoch
87ecdcad4b 2007-07-30 Al Riddoch <alriddoch@zepler.org>
* client/Py_CreatorClient.cpp, common/Database.cpp,
	  common/accountbase.cpp, common/system.cpp, rulesets/Character.cpp,
	  rulesets/Motion.cpp, rulesets/Plant.cpp, rulesets/Py_Location.cpp,
	  rulesets/Py_Mind.cpp, rulesets/Py_Operation.cpp,
	  rulesets/Py_Point3D.cpp, rulesets/Py_Statistics.cpp,
	  rulesets/Py_Task.cpp, rulesets/Py_TerrainProperty.cpp,
	  rulesets/Py_Thing.cpp, rulesets/Py_Vector3D.cpp,
	  rulesets/Py_WorldTime.cpp, rulesets/Python_API.cpp,
	  rulesets/TerrainProperty.cpp, server/Admin.cpp,
	  server/CommServer.cpp, server/Connection.cpp,
	  server/EntityFactory.cpp, server/WorldRouter.cpp,
	  tools/cycmd.cpp, tools/cyconvertrules.cpp, tools/cyctrl.cpp:
	  Remove unnecessary () from conditional expressions, where operator
	  binding is clear.
2007-07-30 18:12:50 +00:00
Al Riddoch
73330b762f 2007-07-04 Al Riddoch <alriddoch@zepler.org>
* rulesets/Py_Property.h, rulesets/Py_Property.cpp,
	  rulesets/Py_TerrainProperty.cpp, rulesets/Makefile.am,
	  rulesets/Python_API.cpp: Complete implementation of terrain
	  property wrapper.

	* rulesets/mason/world/tasks/Reap.py: Check the surface to make sure
	  it is grass. Remove deubg output.
2007-07-04 16:42:10 +00:00
Al Riddoch
00d108db65 2007-07-04 Al Riddoch <alriddoch@zepler.org>
* rulesets/Py_TerrainProperty.cpp: New wrapper for terrain property.
	  Work in progress.
2007-07-04 01:06:59 +00:00