Mario: prepartations for multiple moving objects
This commit is contained in:
+3
-4
@@ -2,7 +2,6 @@
|
||||
#define MARIO_H
|
||||
|
||||
#include "../sdlpp/sdlpp_rectrenderer.hpp"
|
||||
#include "mario_visitor.hpp"
|
||||
#include "sprites.hpp"
|
||||
#include "blocks.hpp"
|
||||
|
||||
@@ -13,10 +12,10 @@ public:
|
||||
void walkLeft();
|
||||
void walkRight();
|
||||
void setStanding();
|
||||
void handleVisitor( MarioVisitor &visitor );
|
||||
void handleVisitor( SDLPP::Visitor &visitor ) override;
|
||||
void jump();
|
||||
void stopJump();
|
||||
virtual void custom_move( int ticks ) override;
|
||||
void custom_move( int ticks ) override;
|
||||
void visit( SDLPP::Visitor &visitor ) override;
|
||||
|
||||
private:
|
||||
@@ -35,7 +34,7 @@ private:
|
||||
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;
|
||||
virtual void setWorldTypeSrc( LandType::Value world ) override;
|
||||
void setWorldTypeSrc( LandType::Value world ) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user