game/mario/blocks/goombablock.hpp

20 lines
442 B
C++
Raw Normal View History

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