Erik Ogenvik
653d5a38ba
Handle Py::Callable better.
2018-07-24 21:18:26 +02:00
Erik Ogenvik
ba539df70e
Use PyCXX throughout.
2018-07-23 16:43:39 +02:00
Erik Ogenvik
97d1bdd7a2
Replace C Python bindings with PyCXX.
2018-07-23 11:00:54 +02:00
Erik Ogenvik
c80336840b
Further work on converting Python bindings.
2018-07-22 19:47:35 +02:00
Erik Ogenvik
69943282ed
Work on converting all python bindings to pycxx.
2018-07-21 13:58:13 +02:00
Erik Ogenvik
0ca22bcf68
Specify scripts for entity as property.
...
This allows multiple scripts to be used. In addition it allows for
entity with specific scripts.
2018-07-04 19:20:24 +02:00
Erik Ogenvik
3ad6d2ad8d
Move all rules to "share" directory.
...
And load rules from the "var" directory if there are any, allowing for
over riding.
2018-05-16 11:51:48 +02:00
Erik Ogenvik
5658f119ba
Support Python 3.5 too.
2018-05-14 23:41:54 +02:00
Erik Ogenvik
f1785bd9b9
Reload python modules all at once.
...
To prevent inconsistencies when multiple file changes.
2018-05-10 01:15:35 +02:00
Erik Ogenvik
5b282419be
Finalize conversion to Python 3.
2018-05-07 11:15:26 +02:00
Erik Ogenvik
97a09ae6b0
Conversion to Python 3 through 2to3.
2018-05-07 11:15:26 +02:00
Erik Ogenvik
701d1a7208
Initial work on porting to Python 3.
2018-05-07 11:15:26 +02:00
Erik Ogenvik
5cd440cfd3
Support older boost versions.
2018-05-01 17:12:14 +02:00
Erik Ogenvik
e80d07560c
Reload entity scripts when python code changes.
...
For now we reload all scripts. We should be smarter and only reload
those scripts which are affected though.
2018-04-30 23:34:58 +02:00
Erik Ogenvik
66ab8aa91e
Removed obsolete code.
2018-02-20 23:08:37 +01:00
Erik Ogenvik
e7fa53214b
Use nullptr instead of NULL.
2018-02-06 13:45:11 +01:00
Erik Ogenvik
7aaa9b9ba7
Optimize includes.
2017-03-19 21:36:52 +01:00
Yaroslav Taben
05481fb2e5
Renamed filter to entity_filter in python to avoid a conflict
...
filter name conflicts with built-in filter method and causes
confusion
2014-08-14 17:09:27 -04:00
Yaroslav Taben
3e7292e742
Fixed Filter wrapper segfaults and reformatted the code.
2014-07-24 14:17:47 -04:00
Yaroslav Taben
6f73abe831
Added Filter modue with get_filter method for Python_API
2014-07-17 23:58:01 -04:00
Erik Ogenvik
751daa26fe
Added function for measuing entity edge distance.
...
This is useful when trying to determine in tasks whether an actor is
close enough to another object to be able to perform a task.
Just measuring from the base won't do, as then we run the risk of too
thick entities not being possible to perform tasks with.
2013-07-23 23:24:37 +02:00
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
8054110769
Remove unused include
2013-02-28 09:15:05 +00:00
Alistair Riddoch
f0ed855ead
Add stub Python wrapper for LinearCourse
2012-04-30 10:05:02 +01:00
Alistair Riddoch
c8e57d01a6
Re-work all the shape code to be clearer
2012-03-31 02:18:33 +01:00
Alistair Riddoch
061d8968a9
Add a separate wrapper for Box with extrude()
...
The new method allows a footprint box to be expanded into a bounding box
2012-03-27 17:20:44 +01:00
Alistair Riddoch
4cf8d1bcb3
Add Python constructor and type for Line shape
2012-03-26 10:10:52 +01:00
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