game/mario/blocks/coinblock.hpp

16 lines
333 B
C++
Raw Normal View History

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