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

This commit is contained in:
zv0n 2022-09-28 13:57:13 +02:00
parent 59e09f77fd
commit f137f6609f
2 changed files with 5 additions and 7 deletions

View File

@ -8,13 +8,12 @@
class MarioVisitor : public SDLPP::Visitor { class MarioVisitor : public SDLPP::Visitor {
public: public:
MarioVisitor(bool is_jumping, SDLPP::Scene &scene, MarioVisitor(bool is_jumping, SDLPP::Scene &scene, int &coin_count,
int &coin_count,
std::vector<std::shared_ptr<MarioBlock>> &moving_objects, std::vector<std::shared_ptr<MarioBlock>> &moving_objects,
bool is_big, bool has_star) bool is_big, bool has_star)
: jumping(is_jumping), _scene(scene), : jumping(is_jumping), _scene(scene), _coin_count(coin_count),
_coin_count(coin_count), _moving_objects(moving_objects), _moving_objects(moving_objects), _is_big(is_big),
_is_big(is_big), _has_star(has_star) {} _has_star(has_star) {}
void visit(const SDLPP::RenderObject &obj) override; void visit(const SDLPP::RenderObject &obj) override;
bool isOnGround() const { bool isOnGround() const {
return onGround; return onGround;

View File

@ -4,8 +4,7 @@
#include "../blocks.hpp" #include "../blocks.hpp"
std::shared_ptr<SDLPP::Visitor> std::shared_ptr<SDLPP::Visitor>
getVisitor(const MarioBlock &block, SDLPP::Scene &scene, getVisitor(const MarioBlock &block, SDLPP::Scene &scene, int &coin_count,
int &coin_count,
std::vector<std::shared_ptr<MarioBlock>> &moving_objects); std::vector<std::shared_ptr<MarioBlock>> &moving_objects);
#endif #endif