Mario: add Goomba
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "../objectids.hpp"
|
||||
#include "mario_visitor.hpp"
|
||||
#include "mushroom_visitor.hpp"
|
||||
#include "goomba_visitor.hpp"
|
||||
|
||||
std::shared_ptr< SDLPP::Visitor >
|
||||
getVisitor( const MarioBlock &block, SDLPP::Scene &scene, bool &quit,
|
||||
@@ -14,6 +15,10 @@ getVisitor( const MarioBlock &block, SDLPP::Scene &scene, bool &quit,
|
||||
break;
|
||||
case MUSHROOM_ID:
|
||||
result = std::static_pointer_cast<SDLPP::Visitor>(std::make_shared<MushroomVisitor>());
|
||||
break;
|
||||
case GOOMBA_ID:
|
||||
result = std::static_pointer_cast<SDLPP::Visitor>(std::make_shared<GoombaVisitor>());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user