HoverRace
2.0
|
Interface for game client shells. More...
#include <GameDirector.h>
Public Types | |
using | sessionChangedSignal_t = boost::signals2::signal< void(std::shared_ptr< HoverScript::MetaSession >)> |
Public Member Functions | |
virtual | ~GameDirector () |
virtual Control::InputEventController * | GetController () const =0 |
virtual Display::Display * | GetDisplay () const =0 |
virtual Scene * | GetForegroundScene () const =0 |
Gets foreground scene, if available. More... | |
virtual Roster * | GetParty () const =0 |
Retrieve the list of players connected to this game instance. More... | |
virtual sessionChangedSignal_t & | GetSessionChangedSignal ()=0 |
Access the signal that indicates that the gameplay session started or stopped. More... | |
virtual VideoServices::VideoBuffer * | GetVideoBuffer () const =0 |
virtual Control::InputEventController * | ReloadController ()=0 |
Reload the control settings. More... | |
virtual void | RequestAnnouncement (std::shared_ptr< Announcement > ann)=0 |
Request an announcement to be displayed. More... | |
virtual void | RequestMainMenu (std::shared_ptr< LoadingScene > loadingScene=std::shared_ptr< LoadingScene >())=0 |
Request a return to the main menu. More... | |
virtual void | RequestNewPracticeSession (std::shared_ptr< Rules > rules, std::shared_ptr< LoadingScene > loadingScene=std::shared_ptr< LoadingScene >())=0 |
Request a new local practice session. More... | |
virtual void | RequestPopScene ()=0 |
Return to the previous scene, if any. More... | |
virtual void | RequestPushScene (const std::shared_ptr< Scene > &scene)=0 |
Push a new scene to the foreground. More... | |
virtual void | RequestReplaceScene (const std::shared_ptr< Scene > &scene)=0 |
Replace the current scene and all background scenes with a new foreground scene. More... | |
virtual void | RequestShutdown ()=0 |
Request an orderly shutdown the of app. More... | |
virtual void | RequestSoftRestart ()=0 |
Request a restart of the app without restarting the whole process. More... | |
virtual void | RequestStatusPresentation ()=0 |
Request that the status (logged-in players, etc.) be momentarily displayed to remind the user what's going on. More... | |
virtual std::shared_ptr< Player::AvatarGallery > | ShareAvatarGallery () const =0 |
Retrieve the global avatar gallery. More... | |
virtual std::shared_ptr< Player::Player > | ShareUiPilot () const =0 |
Retrieve the current local player who is in control of the UI at the moment. More... | |
Interface for game client shells.
using HoverRace::Client::GameDirector::sessionChangedSignal_t = boost::signals2::signal<void(std::shared_ptr<HoverScript::MetaSession>)> |
|
inlinevirtual |
|
pure virtual |
Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Gets foreground scene, if available.
nullptr
if no scene is active, else the foreground scene. Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Retrieve the list of players connected to this game instance.
nullptr
). Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Access the signal that indicates that the gameplay session started or stopped.
Subscribers to this signal will get the ClientSession instance if the session is starting or nullptr
if the session has ended.
Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Reload the control settings.
Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Request an announcement to be displayed.
ann | The announcement (may not be nullptr ). |
Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Request a return to the main menu.
loadingScene | Optional loading scene instead of default. |
Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Request a new local practice session.
rules | The settings for the session. |
loadingScene | Optional loading scene instead of default. |
Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Return to the previous scene, if any.
Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Push a new scene to the foreground.
scene | The scene to push. |
Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Replace the current scene and all background scenes with a new foreground scene.
scene | The scene to push. |
Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Request an orderly shutdown the of app.
This call returns immediately; the shutdown will actually occur later, possibly when you least expect it. All normal "Are you sure?" confirmation prompts will be skipped.
Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Request a restart of the app without restarting the whole process.
Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Request that the status (logged-in players, etc.) be momentarily displayed to remind the user what's going on.
Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Retrieve the global avatar gallery.
nullptr
). Implemented in HoverRace::Client::ClientApp.
|
pure virtual |
Retrieve the current local player who is in control of the UI at the moment.
nullptr
if nobody has seized control). Implemented in HoverRace::Client::ClientApp.