game/mario/mario_visitor.hpp

22 lines
395 B
C++
Raw Normal View History

2021-04-25 20:42:55 +00:00
#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