#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