Mario: formatting
This commit is contained in:
@@ -8,22 +8,21 @@
|
||||
|
||||
class CoinEditorBlock : public MarioBlock {
|
||||
public:
|
||||
CoinEditorBlock( int x, int y,
|
||||
std::shared_ptr< SDLPP::Renderer > renderer );
|
||||
CoinEditorBlock(int x, int y, std::shared_ptr<SDLPP::Renderer> renderer);
|
||||
void render() override;
|
||||
void updateSizeAndPosition() override;
|
||||
void addOne();
|
||||
void subtractOne();
|
||||
void setAmount( int amount );
|
||||
void setAmount(int amount);
|
||||
void onScrollUp() override;
|
||||
void onScrollDown() override;
|
||||
uint8_t getData() const override;
|
||||
void setData( uint8_t data ) override;
|
||||
void setData(uint8_t data) override;
|
||||
|
||||
private:
|
||||
void updateText();
|
||||
int _amount = 1;
|
||||
std::shared_ptr< SDLPP::TextRenderer > _amount_text;
|
||||
std::shared_ptr<SDLPP::TextRenderer> _amount_text;
|
||||
constexpr static double size_divisor = 1.5;
|
||||
constexpr static uint8_t max_amount = 15;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user