Use std::unique_ptr<> throughout the audio system
[supertux.git] / src / object / weak_block.hpp
index dedd0a9..ad25602 100644 (file)
@@ -20,6 +20,8 @@
 
 #include "object/moving_sprite.hpp"
 #include "supertux/physic.hpp"
+#include "object/bullet.hpp"
+
 
 /**
  * A block that can be destroyed by Bullet hits
@@ -31,7 +33,8 @@ public:
 
   HitResponse collision(GameObject& other, const CollisionHit& hit);
   void update(float elapsed_time);
-
+  void draw(DrawingContext& context);
+       
 protected:
   /**
    * called by self when hit by a bullet
@@ -50,6 +53,13 @@ private:
     STATE_DISINTEGRATING /**< crumbling to dust, no longer solid */
   };
   State state;
+       
+  bool linked;
+  virtual HitResponse collision_bullet(Bullet& bullet, const CollisionHit& hit);
+
+  Color light;
+  SpritePtr lightsprite;
+
 };
 
 #endif