Erik Ogenvik
164816f646
Adapt tests to changed structure.
2018-11-03 17:17:50 +01:00
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
800d6f3d2c
Put operations in separate directory.
2018-10-30 20:12:45 +01:00
Erik Ogenvik
e0b45800ef
Fix broken tests.
2018-10-29 21:11:23 +01:00
Erik Ogenvik
599095bfd4
Improve handling of visibility for types.
2018-08-19 17:15:30 +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
a12b1a00a3
Delete when refs go to zero.
...
This changes how entities are dereferenced to work more like you would
expect.
2018-08-05 14:36:21 +02:00
Erik Ogenvik
a2cc5d97a0
Make checking for reach more logical.
2018-08-01 23:04:39 +02:00
Erik Ogenvik
80d347993d
Rename EntityRef to WeakEntityRef.
...
To mark that it's a weak ref.
2018-07-22 23:51:33 +02:00
Erik Ogenvik
e4db1b0311
Added checks for reachability.
...
This is meant to replace the simple distance calculations in rules for
determining whether an entity can be reached or not.
2018-06-24 23:50:54 +02:00
Erik Ogenvik
c23b322ead
Use "add" and "remove" for flags.
...
Since it's more descriptive.
2018-04-25 20:15:28 +02:00
Erik Ogenvik
9ab998e3d3
Support older compilers.
2017-08-02 10:31:09 +02:00
Erik Ogenvik
4d530e25e4
Move domain property Entity.
...
And rename and fixup smaller things.
2017-07-25 23:40:39 +02:00
Erik Ogenvik
0f5bacc78b
Allow "creator" to see all.
2017-06-28 20:33:57 +02:00
Erik Ogenvik
6e6fe3b9b6
Handle (dis)appear ops when moving between locs.
2017-06-27 21:06:07 +02:00
Erik Ogenvik
b40c613a78
Improve handling of broadcasts.
...
Use the domains for determining broadcasts.
2017-06-24 21:47:43 +02:00
Erik Ogenvik
1105483b1d
Fixed up tests.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
c981f35d0d
Added integration tests for Thing.
...
Which currently mainly performs visibility calculation
tests.
2016-06-26 13:18:14 +02:00