summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-06-04 21:48:47 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-06-04 21:48:47 +0000
commita353543dd4da3c489a84f6f17125fdd0e1be2349 (patch)
tree5e447a0f9a3fd50f58a48f39bbb77d392d78af36 /src/map.h
parentab072dddb231895ba7b6762eda9fa70af961b0fb (diff)
downloadmana-a353543dd4da3c489a84f6f17125fdd0e1be2349.tar.gz
mana-a353543dd4da3c489a84f6f17125fdd0e1be2349.tar.bz2
mana-a353543dd4da3c489a84f6f17125fdd0e1be2349.tar.xz
mana-a353543dd4da3c489a84f6f17125fdd0e1be2349.zip
Merged 0.0 changes from revision 3234 to 3317 to trunk.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/src/map.h b/src/map.h
index c8a6fdb3..17772847 100644
--- a/src/map.h
+++ b/src/map.h
@@ -32,8 +32,9 @@
class AmbientOverlay;
class Graphics;
class Image;
-class Tileset;
+class Particle;
class Sprite;
+class Tileset;
struct PATH_NODE;
@@ -185,6 +186,17 @@ class Map : public Properties
void
removeSprite(SpriteIterator iterator);
+ /**
+ * Adds a particle effect
+ */
+ void addParticleEffect (std::string effectFile, int x, int y);
+
+ /**
+ * Initializes all added particle effects
+ */
+ void
+ initializeParticleEffects(Particle* particleEngine);
+
private:
/**
* Converts a global tile id to the Image* pointing to the associated
@@ -220,10 +232,19 @@ class Map : public Properties
// Pathfinding members
int mOnClosedList, mOnOpenList;
- //overlay Data
+ // Overlay Data
std::list<AmbientOverlay*> mOverlays;
float mLastScrollX;
float mLastScrollY;
+
+ // Particle effect data
+ struct ParticleEffectData
+ {
+ std::string file;
+ int x;
+ int y;
+ };
+ std::list<ParticleEffectData> particleEffects;
};
#endif