Commit graph

24 commits

Author SHA1 Message Date
Erik Ogenvik
d7960b3100 Improve on how updated types are handled.
By installing and changing some types, other types might update. This is
now handled.
2018-05-08 14:32:02 +02:00
Erik Ogenvik
d4604d034d Correctly handled updated type properties.
When a type is updated we now property re-apply modified properties on
affected entities.
2018-04-29 17:21:44 +02:00
Erik Ogenvik
4dffa79f50 Check if updated property is same as old. 2018-04-26 18:56:58 +02:00
Erik Ogenvik
7ae19d5038 Use Singleton base class.
I.e. make sure that all objects have a defined life time. This requires
that we actually set up and tear down the singletons.
2018-04-25 20:15:29 +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
1ef3652f74 Allow type properties to be ephemeral.
Which means that they won't be persisted, and also not removed when the
type is synced with an EntityFactory.
This fixed an issue with tools having their bbox removed when operations
where added to them.
2018-03-09 14:53:53 +01:00
Erik Ogenvik
7f1c956b77 Fixed tests with friction. 2018-02-15 12:39:34 +01:00
Erik Ogenvik
162e682a99 Fixed tests. 2018-02-06 13:45:11 +01:00
Erik Ogenvik
16e3794d3f Update description when properties are updated. 2018-02-06 13:45:11 +01:00
Erik Ogenvik
70084e0279 Added calls for when property is installed on Type 2018-02-06 13:45:11 +01:00
Erik Ogenvik
b40c613a78 Improve handling of broadcasts.
Use the domains for determining broadcasts.
2017-06-24 21:47:43 +02:00
Erik Ogenvik
321f95b13d Simplify logic to avoid errors. 2017-05-27 18:29:03 +02:00
Erik Ogenvik
823f5118f2 Remove debug output. 2016-12-15 18:27:42 +01:00
Erik Ogenvik
fd34c235e4 Remove "transforms" and "modespec" property.
These properties didn't work out when we moved to a physics based world.
Instead we've introduced the properties "planted-offset" and "planted-scaled-offset".
These properties takes a float and specified vertical offset for planted entities.

Likewise with "planted-rotation" which specifies a rotation applied for planted entities.
"active-rotation" keeps track of any applied rotation.
2016-12-15 18:27:42 +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
d3752a4774 Fix inheritance checks so they don't miss exact match 2011-12-09 09:38:36 +00:00
Alistair Riddoch
a155ae68d0 Add TypeNode inheritance checks more directly 2011-12-09 00:13:18 +00:00
Alistair Riddoch
eed30f91f1 Add a second constructor to directly init description 2011-09-17 18:45:33 +01:00
Alistair Riddoch
fa4ae198b1 TypeNode takes a name on construction
One is always required, and it's just bloaty to set separately
2011-09-16 18:30:22 +01:00
Alistair Riddoch
168960a924 Provide method to add single property for testing 2011-09-16 16:42:42 +01:00
Alistair Riddoch
27cc00e382 Relocate code for adding properties to TypeNode 2011-09-16 10:43:01 +01:00
Alistair Riddoch
9e1954d75b Move updateChildrenProperties to TypeNode
Old code is still in Rulset, but this reproduces the functionality
more sanely here.
2011-09-15 23:40:26 +01:00
Al Riddoch
c166c6cc33 2008-10-22 Al Riddoch <alriddoch@googlemail.com>
* common/TypeNode.h, common/TypeNode.cpp: Add a destructor to clear
	  out all the default property objects.
2008-10-22 16:08:59 +00:00
Al Riddoch
6da7ff7592 2007-12-27 Al Riddoch <alriddoch@zepler.org>
* common/TypeNode.h, common/TypeNode.cpp: Move TypeNode into
	  its own files.

	* common/Makefile.am, common/inheritance.cpp, common/inheritance.h:
	  Add the new files to the build and remove the old implementation.

	* client/Py_CreatorClient.cpp, rulesets/Character.cpp,
	  rulesets/Entity.cpp, rulesets/MemMap.cpp,
	  rulesets/MindFactory.cpp, rulesets/Py_Mind.cpp,
	  rulesets/Py_Thing.cpp, rulesets/Stackable.cpp,
	  server/WorldRouter.cpp: Fix up the includes for all code that
	  uses TypeNode.
2007-12-27 03:31:47 +00:00