Commit graph

28 commits

Author SHA1 Message Date
Erik Ogenvik
2f55d5d82b Fixed various compile issues after rebase. 2016-06-26 21:50:10 +02:00
Erik Ogenvik
cb493811b3 Added "forces" property.
This property describes all external forces affecting the entity.
2016-06-26 20:17:18 +02:00
Erik Ogenvik
9cf67cb412 Added tests for Mode and ModeSpec properties. 2016-06-26 20:17:18 +02:00
Erik Ogenvik
6a5a2b2938 Fixed tests. 2016-06-26 20:17:18 +02:00
Erik Ogenvik
12a38b3d0f Added a mode specification property.
This property tells how the entity should behave when put into
different modes. Currently we only allow for specific transformations
to occur.

The mode specifications are registed in properties where "mode-" forms
a prefix, and the mode a suffix. For example, "mode-planted".
This also does away with the "plantable" property.
2016-06-26 20:17:18 +02:00
Erik Ogenvik
4d4cdbef23 Fixed tests after transforms property. 2016-06-26 20:13:31 +02:00
Erik Ogenvik
1f616c869b Fixed tests after Plantable property. 2016-06-26 19:08:54 +02:00
Erik Ogenvik
d7bf27d180 Take plantable adjustment into account.
When an entity which is "planted" is adjusted, we also look
for if there's any offset specified for the height adjustment.
2016-06-26 19:08:54 +02:00
Erik Ogenvik
c9ebbfd6c6 Added method for determining visibility.
And then use that to determine if parent locations should be shown.
2016-06-26 14:18:37 +02:00
Erik Ogenvik
5ab3e5e61f Made logic for distance checks more sound. 2016-06-26 13:17:32 +02:00
Erik Ogenvik
ebefb98283 Fixed tests. 2016-06-22 20:53:43 +02:00
Erik Ogenvik
eb81c7eecb Use "git describe" for buildid.
Also removed circular dependency as well as CVS leftover script.
2016-06-22 17:06:50 +02:00
Erik Ogenvik
5432efab1e Fixed tests. 2016-06-09 22:40:05 +02:00
Erik Ogenvik
e4ef1ef10f Updated tests. 2016-03-19 23:05:13 +01:00
Erik Ogenvik
a768c7d63d Added missing test stubs. 2015-05-28 22:05:09 +02:00
Erik Ogenvik
74bb437540 Fixed tests. 2015-05-24 11:25:08 +02:00
Erik Ogenvik
898d2f312c Spelling fix. 2015-05-24 11:25:07 +02:00
Erik Ogenvik
f5dae1fba7 Rename Teleport* to Possess*
So that the functionality can be used in more general situations.
2015-05-24 11:25:06 +02:00
Erik Ogenvik
cde653c776 Updated tests. 2015-04-28 21:00:18 +02:00
Erik Ogenvik
8b5249fea8 Added missing stubs. 2015-04-15 23:07:27 +02:00
Erik Ogenvik
273ab4e38c Fixed tests. 2015-04-09 14:50:45 +02:00
Erik Ogenvik
ea62550af4 Added integration test for suspended property. 2014-12-30 13:10:50 +01:00
Erik Ogenvik
6a4354fde5 Allow suspension of individual entities.
When the "suspended" property is applied on individual entities, the
Tick operation will be intercepted for the specific entity and ignored.
If the property is applied to the world entity _all_ Tick operations
will however be suspended.
2014-12-30 13:10:50 +01:00
Erik Ogenvik
d88adb64e8 Updated tests.
These tests are truly horrible. You change one thing and then spend
three days just updating stubs in tests. The only possible solution is
to move more and more into stub classes.
2014-09-30 23:15:29 +02:00
Erik Ogenvik
e537bf398f Make terrain property react to shader data.
Instead of hard coding the shaders we now allow the terrain property to
supplied data about the shaders. This is not optional currently, since
we expect the clients to understand the different layers (like "sand",
"grass" etc.), but we'll leave it at that for now.
2014-09-09 20:46:30 +02:00
Erik Ogenvik
371cdb5c77 Fixed tests. 2014-09-09 20:46:30 +02:00
Erik Ogenvik
3b295ca0a1 Added concept of a default entity.
Instead of the root entity always being the default one (for new
entities being created etc.) we now can specify another entity which is
the default one.
2014-08-27 22:17:09 +02:00
Erik Ogenvik
7d5742b2fe Updated tests.
Started initial work on providing stubs, so that we finally can start to
reduce the amount of code needed for the tests. Some tests are using the
new stubs, but the plan is to continously move more and more code from
the tests over to the stub as they are updated.
2014-08-26 21:13:18 +02:00