122
« on: April 06, 2008, 09:18:36 AM »
There is yet another big refactoring I have to do. Previously I had things like doors and wall lamps as terrain tiles, but I realized (with wall lamps) that I have to make another layer for them which makes it possible to place wall lamps over any wall type. It means I have to make a new terrain/object type which has own data, graphics layer, interactions with everything else like collision detection, damage, etc.
The good thing in this is that adding a new object type is probably not that hard after all, because it's something like movable object, but the terrain objects will not just move:) I just need to derive another object type from the base class. The hardest part is probably the static data for this new object type and removing old data (and references) from terrain tiles which are changed to terrain objects.