#include "object/moving_sprite.hpp"
#include "supertux/physic.hpp"
+#include "object/bullet.hpp"
+
/**
* A block that can be destroyed by Bullet hits
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
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