4 #include "special/moving_object.h"
11 using namespace SuperTux;
13 class Block : public MovingObject
16 Block(const Vector& pos, Sprite* sprite);
19 virtual HitResponse collision(GameObject& other, const CollisionHit& hit);
20 virtual void action(float elapsed_time);
21 virtual void draw(DrawingContext& context);
24 virtual void hit(Player& player) = 0;
34 class BonusBlock : public Block
37 BonusBlock(const Vector& pos, int data);
42 virtual void hit(Player& player);
48 class Brick : public Block
51 Brick(const Vector& pos, int data);
53 void try_break(bool playerhit = false);
56 virtual void hit(Player& player);