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);
40 virtual void hit(Player& player);
46 class Brick : public Block
49 Brick(const Vector& pos, int data);
52 virtual void hit(Player& player);