Mario: initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#include "mario_visitor.hpp"
|
||||
#include "../sdlpp/sdlpp_renderobject.hpp"
|
||||
#include "objectids.hpp"
|
||||
|
||||
void MarioVisitor::visit( const SDLPP::RenderObject &obj ) {
|
||||
auto id = obj.getId();
|
||||
switch(id) {
|
||||
case FLOOR_OVERWORLD_ID:
|
||||
onGround = true;
|
||||
break;
|
||||
case DEATH_ID:
|
||||
death = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user