Changed jump behaviour: Tux will now jump even if the button was pressed (up to)...
[supertux.git] / src / object / candle.hpp
index 6b40b3e..c82db5e 100644 (file)
@@ -25,6 +25,7 @@
 #include "lisp/lisp.hpp"
 #include "object/moving_sprite.hpp"
 #include "script_interface.hpp"
+#include "video/surface.hpp"
 
 /**
  * A burning candle: Simple, scriptable level decoration.
@@ -34,19 +35,28 @@ class Candle : public MovingSprite, public ScriptInterface
 public:
   Candle(const lisp::Lisp& lisp);
   virtual Candle* clone() const { return new Candle(*this); }
+  virtual void draw(DrawingContext& context);
 
   HitResponse collision(GameObject& other, const CollisionHit& hit);
 
   virtual void expose(HSQUIRRELVM vm, SQInteger table_idx);
   virtual void unexpose(HSQUIRRELVM vm, SQInteger table_idx);
 
+  /**
+   * @name Scriptable Methods
+   * @{
+   */
   void puff_smoke(); /**< spawn a puff of smoke */
-
   bool get_burning(); /**< returns true if candle is lighted */
   void set_burning(bool burning); /**< true: light candle, false: extinguish candle */
+  /**
+   * @}
+   */
 
 private:
   bool burning; /**< true if candle is currently lighted */
+  Surface candle_light_1; /**< drawn to lightmap */
+  Surface candle_light_2; /**< drawn to lightmap (alternative image) */
 
 };