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
bfc4e18b29
Improve Python types.
2018-10-15 17:40:08 +02:00
Erik Ogenvik
90a172286c
Simplify class hierarchy.
2018-09-30 22:13:06 +02:00
Erik Ogenvik
794e8eb0bd
Check for null.
2018-09-01 21:44:14 +02:00
Erik Ogenvik
06c66815bc
Added missing method.
2018-08-18 23:26:30 +02: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
25d233fc14
Added method for modProperty.
2018-08-11 23:26:04 +02:00
Erik Ogenvik
c84f5fe926
Don't implicitly convert from Ref to ptr.
...
Since it's too easy to introduce subtle bugs.
2018-08-05 20:47:09 +02:00
Erik Ogenvik
3f534b0b4a
Use a Map for the Tasks property.
2018-08-04 18:01:20 +02:00
Erik Ogenvik
a2cc5d97a0
Make checking for reach more logical.
2018-08-01 23:04:39 +02:00
Erik Ogenvik
6ab9acc746
Refine how tasks and handlers work.
2018-08-01 22:24:49 +02:00
Erik Ogenvik
8c86e3abb0
Make Task behave better.
2018-08-01 22:23:28 +02:00
Erik Ogenvik
200494e70f
Tie Tasks to Usage.
...
So that it's easy to verify that a Task is still valid.
2018-08-01 22:23:28 +02:00
Erik Ogenvik
1d8f3e0188
Make Task property listen to ops.
2018-07-31 14:38:34 +02:00
Erik Ogenvik
2ed0437035
Use task for longer running usages.
2018-07-31 11:31:58 +02:00
Erik Ogenvik
a4e29323a4
Hackish fix for inheritance.
...
Character should inherit from Entity/Thing, but doesn't really in the
Python class hierarchy. We'll fudge it anyways.
2018-07-29 19:56:45 +02:00
Erik Ogenvik
7b675781d3
Use Refs for storing entities in python.
2018-07-23 18:50:12 +02:00
Erik Ogenvik
205c7106bf
Refine bindings.
2018-07-23 11:03:29 +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