Erik Ogenvik
9ae1fc2fc3
Only mod property if really needed.
2018-05-01 14:39:46 +02:00
Erik Ogenvik
664988645e
Make all properties define type and optional name.
2018-04-27 23:12:15 +02:00
Erik Ogenvik
63d36617ed
Fixed issues with terrain mods and moving entities.
2018-03-05 22:14:58 +01:00
Erik Ogenvik
7aaa9b9ba7
Optimize includes.
2017-03-19 21:36:52 +01:00
Erik Ogenvik
c5583e149f
Port terrain mod translator from Ember.
...
Since it's more common that the position changes that the mod itself does
we want to pre parse the data in the translator first, and then supply
the pos and orientation when creating the mod.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
3238b0b94c
Let the domain handle terrain mods.
...
We can't just listen to Move ops, since we now let the Domain
handle movement.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
767aa39f70
Use new Mercator API.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
7b19e67cb8
Make sure domain updates when terrain updates.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
4720c820e6
Added warning message about no terrain.
...
Although this might be a valid state?
2015-04-06 21:42:14 +02:00
Erik Ogenvik
79d6bda7b2
Properly remove properties with delegates.
2014-08-26 21:09:02 +02: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
8344d5c8b0
Convert TerrainModProperty to delegates
2013-02-14 00:04:58 +00:00
Alistair Riddoch
3d6f39cdee
Modify Property install method to take name
...
This change also switches DecaysProperty to using delegates as a proof of
concept.
2013-02-13 00:45:36 +00:00
Alistair Riddoch
4a9c7078f7
Refactor to use LocatedEntity as base class
...
All IG code should use the interface of LocatedEntity when dealing
with any entity, rather than sometimes requiring Entity. Add virtual
functions to the interface where required, and modify all other interfaces
to stop them using Entity. This makes the code way cleaner, and much better
de-coupled.
2013-01-17 10:17:07 +00:00
Alistair Riddoch
7ec8b51d62
Move TerrainMod property handlers into class
2013-01-10 00:19:31 +00:00
Alistair Riddoch
1bbb936555
Fill in copy methods on remaining properties
2013-01-08 00:19:23 +00:00
Alistair Riddoch
028af001b6
Move to inheriting from the base template
...
This removes the need for our own implementations of standard
get/set methods.
2012-01-08 20:39:42 +00:00
Alistair Riddoch
5bc4c91361
Add abstract property for generic terrain functions
2012-01-07 16:32:19 +00:00
Alistair Riddoch
ac37383d8a
Convery all the property get functions
2011-09-29 17:36:26 +01:00
Alistair Riddoch
cc04efa00e
Fix bug in the terrain mod logic that left pointer uninitialised.
2011-01-11 13:09:23 +00:00
Alistair Riddoch
e97c0fd6df
Rename file for TerrainModTranslator to match class name
2011-01-06 19:49:24 +00:00
Alistair Riddoch
7a1c8c9557
Rename InnerTerrainMod to TerrainModTranslator and update docs
2011-01-06 19:01:37 +00:00
Alistair Riddoch
ad1d04bb6c
Remove obsolete commented out code.
2010-11-11 17:53:32 +00:00
Alistair Riddoch
fefeec7da8
Remove pos param as we couldn't make effective use of it.
2010-11-11 17:42:12 +00:00
Alistair Riddoch
86039d5f21
Re-write handling of terrain mods now that updating works.
2010-11-11 17:32:53 +00:00
Alistair Riddoch
e5ddb66ffa
Move mod type parsing into the class compleiing the encapsulation
2010-11-11 12:00:31 +00:00
Alistair Riddoch
10e5dfca3e
Make base constructor public as it's all we need now.
2010-11-10 17:52:01 +00:00
Alistair Riddoch
435420e16e
Re-order parsing to make a bit more sense.
2010-11-10 16:11:21 +00:00
Alistair Riddoch
458a327eba
Modify the interface of terrain mod helper classses to be independant of cyphesis.
2010-11-03 15:04:17 +00:00
Alistair Riddoch
4fc70bfbe1
Re-write how terrain mod data gets parsed to handle reparsing better
2010-10-28 19:21:53 +01:00
Alistair Riddoch
bf131b2fb7
Add TODO about a memory leak
2010-10-19 19:40:51 +01:00
Alistair Riddoch
bd3c89ed46
Clean up method for adding a terrain mod to be consistently named.
2010-10-05 22:53:52 +01:00
Alistair Riddoch
c36ed43431
Update for the changed mercator API
2010-09-29 16:47:14 +01:00
Alistair Riddoch
94a47009ac
Add member functions to allow sub attributes to be changed.
2010-09-18 23:59:30 +01:00
Alistair Riddoch
85087db17e
Use terrain mod contexts to store pointer to Entity with mod
2010-09-17 22:00:59 +01:00
Alistair Riddoch
0e31a907d5
Change local variable name for consistency.
2010-09-16 16:19:45 +01:00
Alistair Riddoch
4a4368138c
Use using to improve brevity
2010-09-14 22:25:06 +01:00
Alistair Riddoch
73ecfbdf8d
No need for InnerTerrainMod to have a ref to the property
2010-09-13 16:31:12 +01:00
Alistair Riddoch
9165ce1cc3
Cleanups, formatting and make accessor inlineable.
2010-09-13 15:36:01 +01:00
Alistair Riddoch
0853f4fd24
Move InnerTerrainMod classes into their own file for isolation
2010-09-13 02:09:26 +01:00
Alistair Riddoch
7131b6a441
Clean up some includes
2010-09-13 00:59:24 +01:00
Alistair Riddoch
3d99223721
Clean up the way terrain property is handled, now we can keep it const.
2010-09-13 00:16:01 +01:00
Alistair Riddoch
82a3f8d789
Refactor out entity mod owner.
2010-09-12 20:40:26 +01:00
Alistair Riddoch
3ece13592a
Fix up TerrainModProperty to work more cleanly, and initialize properly.
2010-09-12 20:20:24 +01:00
Alistair Riddoch
3d094a892f
Remove all the cases where value was passed to PropertyBase constructor
2009-05-14 00:20:09 +01:00
Alistair Riddoch
27b36b6ad7
Retarded
2009-03-26 01:30:50 +00:00
Alistair Riddoch
8e521d8928
Update all the Ids
2009-03-24 15:09:42 +00:00
Erik Hjortsberg
b126729c94
Removed code which has been replaced by parsePosition.
2009-01-06 21:28:28 +01:00
Erik Hjortsberg
37b30128f1
Updated terrain parsing code to sync with changes in Eris.
2009-01-06 13:33:18 +01:00
Erik Hjortsberg
16f07ca527
Copies terrain mod parsing code from Eris.
2009-01-05 21:04:56 +01:00