game/mario/blocks/mushroomblock.hpp
zv0n 3cde73d1ed
All checks were successful
continuous-integration/drone/push Build is passing
Add fire mario mode
2022-11-11 19:47:35 +01:00

21 lines
513 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;
void setFireFlower(bool fire_flower);
private:
MarioBlock *_parent = nullptr;
bool _started_movement = false;
bool _fire_flower = false;
};
#endif