5 #ifndef __RD_SCREEN_MANAGER_HPP__
6 #define __RD_SCREEN_MANAGER_HPP__
13 #include "ImageManager.hpp"
64 virtual bool start() = 0;
67 virtual bool stop() = 0;
74 virtual bool configure(
const std::string & parameter,
const std::string & value);
82 virtual bool show() = 0;
85 virtual bool update(
const std::string & parameter,
const std::string & value);
88 virtual bool update(
const std::string & parameter,
const Image & value);
91 virtual bool update(
const std::string & parameter,
const Player & value);
94 virtual bool update(
const std::string & parameter,
const std::vector<Player> & value);
97 virtual bool update(
const std::string & parameter,
const std::vector<Target> & value);
100 virtual bool update(
const std::string & parameter,
const Weapon & value);
127 #endif //-- __RD_SCREEN_MANAGER_HPP__
static std::map< std::string, ScreenManager * > screenManagerRegistry
Stores all the ScreenManager that have been registered.
Definition: ScreenManager.hpp:119
virtual bool stop()=0
Stops the ScreenManager.
static ScreenManager * screenManagerInstance
Stores the unique instance of the ScreenManager.
Definition: ScreenManager.hpp:113
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 destroyScreenManager()
Deallocate all the registered ScreenManager.
Definition: ScreenManager.cpp:54
Class that represents a weapon.
Definition: Weapon.hpp:22
static ScreenManager * getScreenManager()
Get a reference to the ScreenManager.
Definition: ScreenManager.cpp:17
static bool Register(ScreenManager *manager, const std::string &id)
This function allows subclasses to install their unique instances in the singleton register to be sel...
Definition: ScreenManager.cpp:135
virtual bool configure(const std::string ¶meter, const std::string &value)
Configures a parameter with a value.
Definition: ScreenManager.cpp:95
virtual bool update(const std::string ¶meter, const std::string &value)
Update some Screen parameter through the ScreenManager.
Definition: ScreenManager.cpp:105
static std::string currentId
Stores the id of the current unique instance used.
Definition: ScreenManager.hpp:116
virtual bool show()=0
Display the current Screen on the game window.
Manage game screens.
Definition: ScreenManager.hpp:35
virtual void setCurrentScreen(Screen *screen)
Set a Screen as current Screen.
Definition: ScreenManager.cpp:100
virtual bool start()=0
Start the ScreenManager.
virtual bool isStopped() const =0
True if the manager is not active.