game/mario/blocks/mushroomblock.hpp

21 lines
513 B
C++
Raw Normal View History

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;
2022-11-11 18:47:35 +00:00
void setFireFlower(bool fire_flower);
2021-10-18 08:10:43 +00:00
2021-08-07 19:41:15 +00:00
private:
MarioBlock *_parent = nullptr;
bool _started_movement = false;
2022-11-11 18:47:35 +00:00
bool _fire_flower = false;
2021-08-07 19:41:15 +00:00
};
#endif