Commit graph

15 commits

Author SHA1 Message Date
Erik Ogenvik
e85f0831b2 Restructure rule classes.
Classes under "rulesets" have been moved to "rules", and split up into
futher subdirectories matching their library. As a result we can now
better separate the python bindings, so that things that belongs to the
simulation are separeted from things that belongs to the ai.
2018-10-31 21:38:35 +01:00
Erik Ogenvik
f87233cd53 Clean up code. 2018-10-30 19:35:57 +01:00
Erik Ogenvik
6a3ec31b7e Remove Character class.
This is crucial since it now means that any entity can be controlled by
a mind. This makes the world much more versatile.
2018-08-14 22:25:56 +02:00
Erik Ogenvik
55de692c5e Removed obsolete files. 2018-07-26 16:08:21 +02:00
Erik Ogenvik
a9a8126ec5 Fixed issues with inheriting Python classes. 2018-07-26 15:21:28 +02:00
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
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
Erik Ogenvik
1a290b7bf5 Fix memory leak.
The python wrapper wasn't properly dereferenced.
2014-02-20 13:27:33 +01: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
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
0ad659004f Remove obsolete commented code 2011-12-19 13:18:17 +00:00
Alistair Riddoch
1f91e9f68c Migrate PythonArithmeticFactory to using PythonClass 2011-12-19 11:35:41 +00:00
Alistair Riddoch
e3012c88be Refactor creating Arithmetic objects to de-couple properties from scripting 2010-07-13 16:23:46 +01:00