summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-10-03 14:46:41 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-10-03 14:46:41 +0000
commit6a02a10434f16c016a162e08d2d8ea089981e172 (patch)
tree128f8567a1db59a42ce8a3787b4d54fd8681bd95 /src/map.h
parent1c6ad7a34b4a5d3bdc3e57b7b20d46c5db9830a2 (diff)
downloadmana-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.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/map.h b/src/map.h
index 317a0b59..18381d71 100644
--- a/src/map.h
+++ b/src/map.h
@@ -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;
};