Alistair Riddoch
5838626242
Remove dependency on WFMATH_EPSILON
2012-02-28 13:41:33 +00:00
Alistair Riddoch
68494ba520
Use the ruleset global less often, making code more isolated
2012-01-19 19:34:20 +00:00
Alistair Riddoch
d01a00460e
Add a subclass wrapper for Polygon
2011-12-23 10:51:07 +00:00
Alistair Riddoch
e0f92cdc52
Add doc comments to Python type helpers
...
These documents conform to the conventions used in the Python
implmentation for ownership of returned references.
2011-12-19 09:01:40 +00:00
Alistair Riddoch
ed584c78f5
Remove obsolete function
2011-12-16 16:53:33 +00:00
Alistair Riddoch
5d3d265f08
Merge PyMind code into PyThing, as it is so close
2011-11-07 19:16:50 +00:00
Alistair Riddoch
a1d9c17f8a
Support weak references
2011-10-12 15:29:52 +01:00
Alistair Riddoch
7285400320
Add Python wrappers for Shape to the build
2011-01-13 19:32:49 +00:00
Alistair Riddoch
e84dbc013f
Add a wrapper for terrain mod property
2010-09-18 19:59:40 +01:00
Alistair Riddoch
717ca6af7f
Add a flag to setting up the Python bindings, so logging python output can be disabled.
2010-07-27 00:35:55 +01:00
Alistair Riddoch
27ae7058f0
Fix another bad assert. There is a point to all this testing, see?
2009-11-13 02:12:33 +00:00
Alistair Riddoch
25e3119524
Fix another incorrect pointer check in an assertion.
2009-11-13 02:10:10 +00:00
Alistair Riddoch
d6a5dbae86
Fix an assert check on the wrong pointer.
2009-11-13 02:08:18 +00:00
Alistair Riddoch
977a8641f5
Clear up a couple of locations where new Python objects are not checked.
2009-08-05 02:07:54 +01:00
Alistair Riddoch
3951238240
Move the code for importing a Python module into its own function.
2009-07-02 18:06:40 +01:00
Alistair Riddoch
2891907bb0
Isolate Get_PyClass functionality to make it more useful, and expose it.
2009-07-02 17:23:02 +01:00
Alistair Riddoch
ebd0860d86
Remove the separate pointer for obsolete non-wrapping scripts and change
...
where references are decremented.
2009-07-01 20:26:17 +01:00
Alistair Riddoch
a71159873a
No longer store a separate wrapper script object for scripted entities.
2009-07-01 20:14:45 +01:00
Alistair Riddoch
dbdec38dfa
Move a Py_DECREF call into a more balanced place.
2009-06-30 20:33:48 +01:00
Alistair Riddoch
0d9c50d4c5
Remove the class case conversion as it is not required.
2009-06-30 17:53:00 +01:00
Alistair Riddoch
e43ee88926
Make all Python entity and task objects inherit from object, and add checks.
2009-06-30 15:32:21 +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
32a7e4758f
Remove unnecessary tp_new implementation for Py_World.
2009-06-04 14:53:51 +01:00
Alistair Riddoch
eedd543a1d
Update I think the last types to new style bindings.
2009-06-04 12:47:53 +01:00
Alistair Riddoch
ce6ae9007a
Clean up more module setup to use modern functions.
2009-06-04 02:27:08 +01:00
Alistair Riddoch
35058b523d
Set up const Operation type. Use cleaner module setup functions.
2009-06-04 02:05:02 +01:00
Alistair Riddoch
fc795faf21
Remove unnecesary tp_getattr and tp_dealloc methods from stdout/stderr handlers.
2009-06-03 18:12:56 +01:00
Alistair Riddoch
4bf6963697
Rename excessively verbose PyMessageElement to PyMessage.
2009-05-27 18:22:56 +01:00
Alistair Riddoch
f1a5a44bb2
Update all includes for rename of Py_Object.h to Py_Message.h
2009-05-27 14:10:26 +01:00
Alistair Riddoch
a2b84f5c6b
Add World to module so it can be instantiated directly
2009-05-27 04:06:27 +01:00
Alistair Riddoch
f9107f6c43
Make PyMap, PyTask and PyMind all directly instantiable
2009-05-25 16:34:37 +01:00
Alistair Riddoch
dca1d43dd4
Make Entity wrappers directly instantiable
2009-05-25 04:09:54 +01:00
Alistair Riddoch
50b2957492
Make Entity wrapper object directly instancable
2009-05-25 03:14:44 +01:00
Alistair Riddoch
db50776749
Call PyType_Ready on all the remaining types
2009-05-25 00:50:36 +01:00
Alistair Riddoch
af44dd33e1
Remove obsolete Entity init code
2009-05-24 00:03:51 +01:00
Alistair Riddoch
4a66504945
Convert Atlas RootEntity wrapper to modern Python binding.
2009-05-23 13:21:50 +01:00
Alistair Riddoch
f1a386e7d3
Conver the wrapper for Atlas::Message::Element into a modern Python binding.
2009-05-22 01:21:33 +01:00
Alistair Riddoch
efd916dc2d
Convert Location wrapper to a modern Python binding
2009-05-22 00:37:55 +01:00
Alistair Riddoch
03ba73a004
Convert Operation wrapper to be a modern Python binding
2009-05-21 18:49:10 +01:00
Alistair Riddoch
065c4cd316
Remove unused oplist construction code
2009-05-21 16:49:56 +01:00
Alistair Riddoch
3b1708c629
Rename atlas.Message to atlas.Oplist in the Python API
2009-05-21 16:34:01 +01:00
Alistair Riddoch
ec67b5e44d
Convert the Oplist wrapper to be a modern Pything binding
2009-05-21 04:40:45 +01:00
Alistair Riddoch
ed178ca0b1
Convert the Python Quaternion wrapper to being a modern Python binding
2009-05-20 20:48:54 +01:00
Alistair Riddoch
9bf7fc3eb7
Convert the Python BBox wrapper to being a modern Python binding
2009-05-20 20:01:59 +01:00
Alistair Riddoch
8ff8870a30
Move the vector and point types to the physics internal Python module
2009-05-20 19:33:39 +01:00
Alistair Riddoch
2527348089
Fix a crash which occurs when a BBox is created with no args.
2009-05-18 00:34:27 +01:00
Alistair Riddoch
1286df81a7
Rename PythonThingScript to PythonEntityScript
2009-03-22 15:58:06 +00:00
Alistair Riddoch
cd1f42c3f9
Rename Inheritance class files to match class name.
2009-03-20 15:31:38 +00:00
Al Riddoch
39b1e3b547
2009-01-31 Al Riddoch <alriddoch@googlemail.com>
...
* rulesets/Python_API.cpp, rulesets/Python_API.h: Remove the
now obsolete unused function for running trivial Python
command line.
2009-01-31 04:11:21 +00:00
Al Riddoch
0bbbfe7dae
2009-01-30 Al Riddoch <alriddoch@googlemail.com>
...
* rulesets/Python_API.cpp, rulesets/Python_API.h: Hack in a quick
function for executing python commands.
* server/CommPythonClient.cpp: Pass input from the client straight
into the python interpretter and see what happens.
2009-01-30 01:39:06 +00:00