Changed jump behaviour: Tux will now jump even if the button was pressed (up to)...
[supertux.git] / src / object / lantern.hpp
index a41e386..b8498a3 100644 (file)
@@ -29,6 +29,7 @@
 class Lantern : public Rock
 {
 public:
+  Lantern(const Vector& pos);
   Lantern(const lisp::Lisp& reader);
   void draw(DrawingContext& context);
   ~Lantern();
@@ -43,6 +44,13 @@ public:
    */
   bool is_open();
 
+  /**
+   * returns the lamp's color
+   */
+  Color get_color() const {
+    return lightcolor;
+  }
+
 private:
   Color lightcolor;
   Sprite* lightsprite;