New Path based on time intervals; see levels/test/platform.stl
[supertux.git] / src / object / tilemap.hpp
index dcd7478..8219623 100644 (file)
@@ -25,6 +25,7 @@
 #include "game_object.hpp"
 #include "serializable.hpp"
 #include "math/vector.hpp"
+#include "video/drawing_context.hpp"
 
 namespace lisp {
 class Lisp;
@@ -79,17 +80,20 @@ public:
 
   void change_at(const Vector& pos, uint32_t newtile);
 
+  /// changes all tiles with the given ID
+  void change_all(uint32_t oldtile, uint32_t newtile);
+
   TileManager* get_tilemanager() const
   {
     return tilemanager;
   }
 
-  void set_drawing_effect(int effect)
+  void set_drawing_effect(DrawingEffect effect)
   {
     drawing_effect = effect;
   }
 
-  int get_drawing_effect()
+  DrawingEffect get_drawing_effect()
   {
     return drawing_effect;
   }
@@ -105,7 +109,7 @@ private:
   int width, height;
   int layer;
 
-  int drawing_effect;
+  DrawingEffect drawing_effect;
 };
 
 #endif /*SUPERTUX_TILEMAP_H*/