Formatting
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
zv0n 2022-11-19 23:10:33 +01:00
parent 411f00e468
commit c453c2fe9a
4 changed files with 13 additions and 9 deletions

View File

@ -9,6 +9,7 @@ public:
void custom_move(int ticks) override;
void handleVisitor(SDLPP::Visitor &visitor) override;
void setMovementDir(bool left);
private:
double jump_movement;
bool jumping = false;

View File

@ -11,7 +11,8 @@ public:
uint8_t modifier_data, const std::string &modifier_text);
MapObject(uint16_t terrain_id, LandType::Value terrain_type,
uint8_t character_id, LandType::Value character_type,
uint32_t modifier_id, uint8_t modifier_data, const std::string &modifier_text);
uint32_t modifier_id, uint8_t modifier_data,
const std::string &modifier_text);
void setTerrain(uint16_t id, LandType::Value land_type);
void setTerrain(uint16_t id, uint8_t land_type);
void setCharacter(uint8_t id, LandType::Value land_type);

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,7 +25,8 @@ public:
void uncrouch();
#ifndef EDITOR
void fire();
void setAddObjFunc(std::function<void(std::shared_ptr<MarioBlock>&, bool)> func);
void setAddObjFunc(
std::function<void(std::shared_ptr<MarioBlock> &, bool)> func);
std::function<void(std::shared_ptr<MarioBlock> &, bool)> getAddObjFunc();
#endif
void stopJump();

View File

@ -19,8 +19,7 @@ createEditorMainMenuScene(std::shared_ptr<SDLPP::Renderer> &renderer,
SceneStruct
createEditorFileChoiceScene(std::shared_ptr<SDLPP::Renderer> &renderer);
SceneStruct
createTextScene(std::shared_ptr<SDLPP::Renderer> renderer,
SceneStruct createTextScene(std::shared_ptr<SDLPP::Renderer> renderer,
std::function<void(const std::string &)> finalizer);
#endif