|
| PracticeSetupScene (Display::Display &display, GameDirector &director, RulebookLibrary &rulebookLibrary) |
| Constructor. More...
|
|
virtual | ~PracticeSetupScene () |
|
void | OnScenePushed () override |
| Called when the scene is actually pushed to the stage. More...
|
|
| DialogScene (Display::Display &display, GameDirector &director, const std::string &parentTitle, const std::string &title, const std::string &name) |
| Constructor. More...
|
|
| DialogScene (Display::Display &display, GameDirector &director, const std::string &title="", const std::string &name="") |
|
virtual | ~DialogScene () |
|
void | AttachController (Control::InputEventController &controller, ConnList &conns) override |
| Configure the controller mappings. More...
|
|
void | DetachController (Control::InputEventController &controller, ConnList &conns) override |
| Remove the controller mappings. More...
|
|
void | OnPhaseTransition (double progress) override |
| Fired during the starting and stopping phases, if SetPhaseTransitionDuration() was set. More...
|
|
void | PrepareRender () override |
|
void | Render () override |
|
| FormScene (Display::Display &display, const std::string &name="") |
|
virtual | ~FormScene () |
|
void | AttachController (Control::InputEventController &controller, ConnList &conns) override |
| Configure the controller mappings. More...
|
|
void | PrepareRender () override |
|
void | Render () override |
|
| UiScene (const std::string &name="") |
|
virtual | ~UiScene () |
|
void | AttachController (Control::InputEventController &controller, ConnList &conns) override |
| Configure the controller mappings. More...
|
|
void | DetachController (Control::InputEventController &, ConnList &) override |
| Remove the controller mappings. More...
|
|
bool | IsMouseCursorEnabled () const override |
| Determine if the mouse cursor is enabled for this scene. More...
|
|
void | PrepareRender () override |
|
void | Render () override |
|
| Scene (const std::string &name="Unnamed Scene") |
| Constructor. More...
|
|
virtual | ~Scene () |
|
void | AdvanceScene (Util::OS::timestamp_t tick) |
|
void | AttachInput (Control::InputEventController &controller) |
| Attach the user input to the scene. More...
|
|
void | DetachInput (Control::InputEventController &controller) |
| Detach the user input from the scene. More...
|
|
const std::string & | GetName () const |
| Retrieve the name of the scene. More...
|
|
Phase | GetPhase () const |
|
State | GetState () const |
|
bool | MoveToBackground () |
| Signal that the scene is moving into the background. More...
|
|
bool | MoveToForeground () |
| Signal that the scene is moving into the foreground. More...
|
|
Scene & | operator= (const Scene &)=delete |
|
virtual std::ostream & | OutputDebugText (std::ostream &oss) const |
| Output a stream of debug information describing this scene. More...
|
|
void | PrepareScene () |
|
void | RenderScene () |
|
bool | SetPhase (Phase phase) |
| Switch to another phase. More...
|
|
|
enum | Phase {
Phase::INITIALIZING,
Phase::STARTING,
Phase::RUNNING,
Phase::STOPPING,
Phase::STOPPED
} |
|
enum | State {
State::INITIALIZING,
State::BACKGROUND,
State::RAISING,
State::FOREGROUND,
State::LOWERING
} |
|
static constexpr double | MARGIN_WIDTH = 40 |
|
Display::Container * | GetContentRoot () const |
|
const std::string & | GetFullTitle () const |
| Retrieve the full combined title (including parent title). More...
|
|
Display::Container * | GetStatusRoot () const |
|
const std::string & | GetTitle () const |
|
virtual void | OnCancel () |
| Called when the "Cancel" action is fired. More...
|
|
virtual void | OnExtra () |
| Called when the scene-specific extra action is fired. More...
|
|
virtual void | OnOk () |
| Called when the "OK" action is fired. More...
|
|
void | SetBackground (Display::Background *fader) |
| Set the background, replacing the currently set background. More...
|
|
void | SetStoppingTransitionEnabled (bool enabled) |
| Enable or disable content visibility while scene is stopping. More...
|
|
void | SupportCancelAction (const std::string &label="") |
| Enable the "Cancel" action for this scene. More...
|
|
void | SupportExtraAction (const std::string &label) |
| Enable the "extra" action for this scene. More...
|
|
void | SupportOkAction (const std::string &label="") |
| Enable the "OK" action for this scene. More...
|
|
Display::Container * | GetRoot () const |
|
virtual void | Layout () |
| Adjust the size and position of any child elements. More...
|
|
void | RequestLayout () |
| Indicate that the current layout is out-of-date and needs to be adjusted. More...
|
|
void | SetFocusRoot (std::shared_ptr< Display::UiViewModel > root) |
| Set the widget used as the root for all focus management. More...
|
|
virtual void | Advance (Util::OS::timestamp_t tick) |
|
Util::OS::timestamp_t | GetPhaseDuration (Util::OS::timestamp_t curTime=Util::OS::Time()) |
| Calculate how much time we've spent in the current phase. More...
|
|
Util::OS::timestamp_t | GetStartingPhaseTime () |
| Return how long the starting phase lasted. More...
|
|
Util::OS::timestamp_t | GetStateDuration (Util::OS::timestamp_t curTime=Util::OS::Time()) |
| Calculate how much time we've spent in the current state. More...
|
|
virtual void | OnPhaseChanged (Phase oldPhase) |
| Fired immediately after entering a new phase. More...
|
|
virtual void | OnStateChanged (State oldState) |
| Fired immediately after entering a new state. More...
|
|
virtual void | OnStateTransition (double progress) |
| Fired during the raising and lowering states, if SetStateTransitionDuration() was set. More...
|
|
void | SetPhaseTransitionDuration (Util::OS::timestamp_t ms) |
| Set the maximum duration of the starting or stopping phases. More...
|
|
void | SetStateTransitionDuration (Util::OS::timestamp_t ms) |
| Set the maximum duration of the raising or lowering state. More...
|
|
static std::string | JoinTitles (const std::string &parent, const std::string &title) |
| Combine a parent dialog title to the child dialog title. More...
|
|
GameDirector & | director |
|
Display::Display & | display |
|
std::shared_ptr< Util::Profiler > | advanceProfiler |
|
std::shared_ptr< Util::Profiler > | prepareProfiler |
|
std::shared_ptr< Util::Profiler > | renderProfiler |
|
std::shared_ptr< Util::Profiler > | rootProfiler |
|
Launcher for practice (single-player) session.
- Author
- Michael Imamura
void HoverRace::Client::PracticeSetupScene::OnScenePushed |
( |
| ) |
|
|
overridevirtual |
Called when the scene is actually pushed to the stage.
In terms of phases, this is called just before the scene enters the STARTING
phase, so the scene will be still in the INITIALIZING
phase.
This is useful for handling anything that needs to be done just before the first frame is rendered, but after the constructor has run.
An example is pushing another scene on top of this scene. This can't be done in the constructor since this scene hasn't been pushed yet (so the scenes would be out-of-order on the stage).
Reimplemented from HoverRace::Client::Scene.