summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-05-04 13:09:25 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-05-04 13:09:25 +0000
commit00fb4bde7974a20aacfc1c52e48fff2faee2d385 (patch)
tree2097ef003495d7e6b4a8cf697ad7896039aac113 /src/map.h
parentb3376bfe4e26591e1dc1066d8f2270baf4f9f759 (diff)
downloadmana-00fb4bde7974a20aacfc1c52e48fff2faee2d385.tar.gz
mana-00fb4bde7974a20aacfc1c52e48fff2faee2d385.tar.bz2
mana-00fb4bde7974a20aacfc1c52e48fff2faee2d385.tar.xz
mana-00fb4bde7974a20aacfc1c52e48fff2faee2d385.zip
Merged particle engine into main eAthena branch.
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 15b9b0dc..3ccbe7ae 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