4 #include "special/moving_object.h"
12 using namespace SuperTux;
14 class Block : public MovingObject
17 Block(Sprite* sprite = 0);
20 virtual HitResponse collision(GameObject& other, const CollisionHit& hit);
21 virtual void action(float elapsed_time);
22 virtual void draw(DrawingContext& context);
25 virtual void hit(Player& player) = 0;
35 class BonusBlock : public Block
38 BonusBlock(const Vector& pos, int data);
39 BonusBlock(const lisp::Lisp& lisp);
44 virtual void hit(Player& player);
58 class Brick : public Block
61 Brick(const Vector& pos, int data);
63 void try_break(bool playerhit = false);
66 virtual void hit(Player& player);