2021-08-07 19:41:15 +00:00
|
|
|
#ifndef MUSHROOM_BLOCK_HPP
|
|
|
|
#define MUSHROOM_BLOCK_HPP
|
|
|
|
|
|
|
|
#include "../blocks.hpp"
|
|
|
|
|
|
|
|
class MushroomBlock : public MarioBlock {
|
|
|
|
public:
|
2021-10-18 08:10:43 +00:00
|
|
|
MushroomBlock(int x, int y, std::shared_ptr<SDLPP::Renderer> &renderer);
|
2021-08-07 19:41:15 +00:00
|
|
|
void custom_move(int ticks) override;
|
|
|
|
void setParent(MarioBlock *parent);
|
|
|
|
void handleVisitor(SDLPP::Visitor &visitor) override;
|
2021-10-18 08:10:43 +00:00
|
|
|
|
2021-08-07 19:41:15 +00:00
|
|
|
private:
|
|
|
|
MarioBlock *_parent = nullptr;
|
|
|
|
bool _started_movement = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|