game/mario/blocks/goombablock.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

20 lines
442 B
C++

#ifndef GOOMBA_BLOCK_HPP
#define GOOMBA_BLOCK_HPP
#include "../blocks.hpp"
class GoombaBlock : public MarioBlock {
public:
GoombaBlock(int x, int y, std::shared_ptr<SDLPP::Renderer> &renderer);
void custom_move(int ticks) override;
void move(int ticks) override;
void handleVisitor(SDLPP::Visitor &visitor) override;
private:
void startDeath();
int death_countdown = 100;
bool death_started = false;
};
#endif