game/mario/blocks/mushroomblock.hpp
zv0n 0d855ed218
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone Build was killed
Mario: formatting
2021-10-18 10:10:43 +02:00

19 lines
440 B
C++

#ifndef MUSHROOM_BLOCK_HPP
#define MUSHROOM_BLOCK_HPP
#include "../blocks.hpp"
class MushroomBlock : public MarioBlock {
public:
MushroomBlock(int x, int y, std::shared_ptr<SDLPP::Renderer> &renderer);
void custom_move(int ticks) override;
void setParent(MarioBlock *parent);
void handleVisitor(SDLPP::Visitor &visitor) override;
private:
MarioBlock *_parent = nullptr;
bool _started_movement = false;
};
#endif