Mario: initial commit

This commit is contained in:
2021-04-25 22:42:55 +02:00
parent 7206dbf7c3
commit 19e66bf34a
14 changed files with 601 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef MARIO_VISITOR_H
#define MARIO_VISITOR_H
#include "../sdlpp/sdlpp_visitor.hpp"
class MarioVisitor : public SDLPP::Visitor {
public:
MarioVisitor() {}
virtual void visit( const SDLPP::RenderObject &obj );
bool isOnGround() {
return onGround;
}
bool isDead() {
return death;
}
private:
bool onGround = false;
bool death = false;
};
#endif