Commit graph

16 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
62c644b8c5 Don't use Inheritance in mind code.
Instead use the TypeStore. This also alters how filters are used.
2018-10-21 20:40:50 +02:00
Erik Ogenvik
f08267a786 Handle steering being null. 2018-10-15 17:37:22 +02:00
Erik Ogenvik
939dd93678 Adapt to changed API. 2018-10-11 22:35:00 +02:00
Erik Ogenvik
854a98b8e0 Expose entity and re-enable steering. 2018-10-11 22:35:00 +02:00
Erik Ogenvik
9aa1209755 Added mind callbacks for properties update.
Mainly so we can listen for the "_goals" property when it updates.
2018-10-07 20:10:27 +02:00
Erik Ogenvik
90a172286c Simplify class hierarchy. 2018-09-30 22:13:06 +02:00
Erik Ogenvik
8cdf21479c Rework how ai minds work.
The mind is now represented by a separate entity in the client.
2018-09-17 20:48:54 +02:00
Erik Ogenvik
139d229f80 Sync Python method names with C++. 2018-08-17 22:04:07 +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
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
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
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