Mario: formatting

This commit is contained in:
2021-10-18 09:08:35 +02:00
parent f3062464d2
commit 8ca70fa11e
19 changed files with 1262 additions and 1250 deletions
+8 -8
View File
@@ -7,16 +7,16 @@
class Mario : public MarioBlock {
public:
Mario( int x, int y, const std::shared_ptr< SDLPP::Renderer > &renderer );
Mario( const std::shared_ptr< SDLPP::Renderer > &renderer );
Mario(int x, int y, const std::shared_ptr<SDLPP::Renderer> &renderer);
Mario(const std::shared_ptr<SDLPP::Renderer> &renderer);
void walkLeft();
void walkRight();
void setStanding();
void handleVisitor( SDLPP::Visitor &visitor ) override;
void handleVisitor(SDLPP::Visitor &visitor) override;
void jump();
void stopJump();
void custom_move( int ticks ) override;
void visit( SDLPP::Visitor &visitor ) override;
void custom_move(int ticks) override;
void visit(SDLPP::Visitor &visitor) override;
private:
bool faces_right = true;
@@ -32,9 +32,9 @@ private:
// gravity should be added every frame in 60fps game
const int base_gravity_ticks = 1000 / 60;
const double gravity_add_jumping = jump_movement / 32.0;
const double gravity_add_falling = jump_movement / ( 64.0 / 7.0 );
std::shared_ptr< SDLPP::RectColider > top_collision = nullptr;
void setWorldTypeSrc( LandType::Value world ) override;
const double gravity_add_falling = jump_movement / (64.0 / 7.0);
std::shared_ptr<SDLPP::RectColider> top_collision = nullptr;
void setWorldTypeSrc(LandType::Value world) override;
};
#endif