2021-07-24 20:50:24 +02:00
|
|
|
#ifndef COIN_BLOCK_HPP
|
|
|
|
|
#define COIN_BLOCK_HPP
|
|
|
|
|
|
|
|
|
|
#include "../blocks.hpp"
|
|
|
|
|
|
|
|
|
|
class CoinBlock : public MarioBlock {
|
|
|
|
|
public:
|
2021-10-18 10:10:43 +02:00
|
|
|
CoinBlock(int x, int y, std::shared_ptr<SDLPP::Renderer> &renderer);
|
2021-08-05 00:32:17 +02:00
|
|
|
void custom_move(int ticks) override;
|
2021-07-24 20:50:24 +02:00
|
|
|
void setParent(MarioBlock *parent);
|
2021-10-18 10:10:43 +02:00
|
|
|
|
2021-07-24 20:50:24 +02:00
|
|
|
private:
|
2021-08-05 00:32:17 +02:00
|
|
|
MarioBlock *_parent = nullptr;
|
2021-07-24 20:50:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|