Switched from the service locator pattern to singleton pattern

This commit is contained in:
Kayne Ruse
2013-06-24 09:00:50 +10:00
parent 7ad855348f
commit f049c96df7
12 changed files with 41 additions and 69 deletions
+2 -2
View File
@@ -23,7 +23,7 @@
#define OPTIONSCREEN_HPP_
#include "base_scene.hpp"
#include "service_locator.hpp"
#include "singleton.hpp"
#include "surface_manager.hpp"
#include "button.hpp"
@@ -44,7 +44,7 @@ protected:
void MouseButtonUp(SDL_MouseButtonEvent const&);
void KeyDown(SDL_KeyboardEvent const&);
SurfaceManager* surfaceMgr = ServiceLocator<SurfaceManager>::Get();
SurfaceManager* surfaceMgr = Singleton<SurfaceManager>::Get();
Button backButton;
};