Mario: initial commit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user