#include "badguy/stalactite.hpp"
#include "math/random_generator.hpp"
+#include "object/bullet.hpp"
#include "object/player.hpp"
#include "sprite/sprite.hpp"
#include "supertux/object_factory.hpp"
return FORCE_MOVE;
}
+HitResponse
+Stalactite::collision_bullet(Bullet& bullet, const CollisionHit& )
+{
+ if(state == STALACTITE_HANGING) {
+ timer.start(SHAKE_TIME);
+ state = STALACTITE_SHAKING;
+ bullet.remove_me();
+ }
+
+ return FORCE_MOVE;
+}
+
void
Stalactite::kill_fall()
{
void collision_solid(const CollisionHit& hit);
HitResponse collision_player(Player& player, const CollisionHit& hit);
HitResponse collision_badguy(BadGuy& other, const CollisionHit& hit);
+ HitResponse collision_bullet(Bullet& bullet, const CollisionHit& );
void kill_fall();
void draw(DrawingContext& context);