game/mario/mario_visitor.hpp
2021-04-25 22:42:55 +02:00

22 lines
395 B
C++

#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