5 #ifndef __RD_SDL_SCREEN_MANAGER_HPP__
6 #define __RD_SDL_SCREEN_MANAGER_HPP__
15 #include "ScreenManager.hpp"
17 #include "ImageManager.hpp"
41 virtual bool update(
const std::string & parameter,
const std::string & value);
44 virtual bool update(
const std::string & parameter,
const Image & value);
47 virtual bool update(
const std::string & parameter,
const Player & value);
50 virtual bool update(
const std::string & parameter,
const std::vector<Player> & value);
53 virtual bool update(
const std::string & parameter,
const std::vector<Target> & value);
56 virtual bool update(
const std::string & parameter,
const Weapon & value);
66 virtual bool configure(
const std::string & parameter,
const std::string & value);
68 static const std::string PARAM_FULLSCREEN;
87 static const std::string
id;
106 bool sdl_initialized;
110 mutable std::mutex mutex;
115 #endif //-- __RD_SDL_SCREEN_MANAGER_HPP__
virtual bool update(const std::string ¶meter, const std::string &value)
Update some Screen parameter through the ScreenManager.
Definition: SDLScreenManager.cpp:97
virtual bool isStopped() const
True if the manager is not active.
Definition: SDLScreenManager.cpp:222
Class that represents a player of this game, with a 'unique' id, name, health, team id and score.
Definition: Player.hpp:21
The main, catch-all namespace for Robot Devastation.
Definition: groups.dox:4
A User Interface.
Definition: Screen.hpp:24
static bool RegisterManager()
Register this manager in the ScreenManager registry so that can be used.
Definition: SDLScreenManager.cpp:227
virtual bool configure(const std::string ¶meter, const std::string &value)
Configures a parameter with a value.
Definition: SDLScreenManager.cpp:181
SDLScreenManager()
Constructor.
Definition: SDLScreenManager.cpp:20
static bool initSDL()
SDL initialization.
Definition: SDLScreenManager.cpp:145
static bool cleanupSDL()
SDL Cleanup.
Definition: SDLScreenManager.cpp:172
Class that represents a weapon.
Definition: Weapon.hpp:22
Manage game screens using SDL libraries.
Definition: SDLScreenManager.hpp:30
static const std::string id
String that identifies this manager.
Definition: SDLScreenManager.hpp:87
virtual bool start()
Start the ScreenManager.
Definition: SDLScreenManager.cpp:202
virtual ~SDLScreenManager()
Destructor. Used to reset the local static reference after destroying this manager.
Definition: SDLScreenManager.cpp:237
virtual void setCurrentScreen(Screen *screen)
Set a Screen as current Screen.
Definition: SDLScreenManager.cpp:28
Manage game screens.
Definition: ScreenManager.hpp:35
virtual bool stop()
Stops the ScreenManager.
Definition: SDLScreenManager.cpp:214
virtual bool show()
Display the current Screen on the game window.
Definition: SDLScreenManager.cpp:38
static SDLScreenManager * uniqueInstance
Stores the unique instance of the SDLScreenManager.
Definition: SDLScreenManager.hpp:103