Formatting

This commit is contained in:
2022-11-19 23:10:33 +01:00
parent 411f00e468
commit c453c2fe9a
4 changed files with 13 additions and 9 deletions
+8 -5
View File
@@ -12,8 +12,10 @@
class Mario : public MarioBlock {
public:
Mario(int x, int y, const std::shared_ptr<SDLPP::Renderer> &renderer, std::function<void(std::shared_ptr<MarioBlock>&, bool)> addObject);
Mario(const std::shared_ptr<SDLPP::Renderer> &renderer, std::function<void(std::shared_ptr<MarioBlock>&, bool)> addObject);
Mario(int x, int y, const std::shared_ptr<SDLPP::Renderer> &renderer,
std::function<void(std::shared_ptr<MarioBlock> &, bool)> addObject);
Mario(const std::shared_ptr<SDLPP::Renderer> &renderer,
std::function<void(std::shared_ptr<MarioBlock> &, bool)> addObject);
void walkLeft();
void walkRight();
void setStanding();
@@ -23,8 +25,9 @@ public:
void uncrouch();
#ifndef EDITOR
void fire();
void setAddObjFunc(std::function<void(std::shared_ptr<MarioBlock>&, bool)> func);
std::function<void(std::shared_ptr<MarioBlock>&, bool)> getAddObjFunc();
void setAddObjFunc(
std::function<void(std::shared_ptr<MarioBlock> &, bool)> func);
std::function<void(std::shared_ptr<MarioBlock> &, bool)> getAddObjFunc();
#endif
void stopJump();
void custom_move(int ticks) override;
@@ -65,7 +68,7 @@ public:
}
private:
std::function<void(std::shared_ptr<MarioBlock>&, bool)> _addObject;
std::function<void(std::shared_ptr<MarioBlock> &, bool)> _addObject;
void setDeath(bool dead = true) {
_death = dead;
}