diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-10-03 14:46:41 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-10-03 14:46:41 +0000 |
commit | 6a02a10434f16c016a162e08d2d8ea089981e172 (patch) | |
tree | 128f8567a1db59a42ce8a3787b4d54fd8681bd95 /src/map.h | |
parent | 1c6ad7a34b4a5d3bdc3e57b7b20d46c5db9830a2 (diff) | |
download | mana-6a02a10434f16c016a162e08d2d8ea089981e172.tar.gz mana-6a02a10434f16c016a162e08d2d8ea089981e172.tar.bz2 mana-6a02a10434f16c016a162e08d2d8ea089981e172.tar.xz mana-6a02a10434f16c016a162e08d2d8ea089981e172.zip |
Turned AmbientOverlay into a class. Cleaned up the associated code.
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -29,6 +29,7 @@ #include "properties.h" +class AmbientOverlay; class Graphics; class Image; class Tileset; @@ -65,16 +66,6 @@ struct MetaTile bool walkable; /**< Can beings walk on this tile */ }; -struct AmbientOverlay -{ - Image *image; - float parallax; - float scrollX; - float scrollY; - float scrollSpeedX; - float scrollSpeedY; -}; - /** * A tile map. */ @@ -222,8 +213,7 @@ class Map : public Properties int mOnClosedList, mOnOpenList; //overlay Data - AmbientOverlay mFoo; - std::list<AmbientOverlay> mOverlays; + std::list<AmbientOverlay*> mOverlays; float mLastScrollX; float mLastScrollY; }; |