JustAnotherDnDGame 0.1.0
Jeu de rôle tactique au d20, vue de dessus, en C++/Qt
Loading...
Searching...
No Matches
ScreenFlow.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Valentin Eloy
2// SPDX-License-Identifier: GPL-3.0-or-later
3
4#pragma once
5
6#include <optional>
7
18
19namespace hmi {
20
35
56
63 bool docksVisible = false;
64 bool menuBarVisible = false;
65 bool toolBarVisible = false;
66 bool pixelToolBarVisible = false;
69 bool overlayVisible = false;
70
71 friend bool operator==(const ScreenDressing&, const ScreenDressing&) = default;
72};
73
75[[nodiscard]] ScreenDressing dressingFor(ScreenId screen) noexcept;
76
91
96[[nodiscard]] std::optional<ScreenState> resolveTransition(const ScreenState& current,
97 ScreenEvent event) noexcept;
98
99} // namespace hmi
Definition AudioEngine.cpp:15
ScreenId
Écran actuellement affiché par la fenêtre principale.
Definition ScreenFlow.h:22
@ Pause
Definition ScreenFlow.h:27
@ Editor
Definition ScreenFlow.h:24
@ Game
Definition ScreenFlow.h:25
@ RpgScreen
Un écran du RPG est ouvert (LOT-68, EX-IHM-090).
Definition ScreenFlow.h:33
@ Credits
Definition ScreenFlow.h:28
@ Menu
Definition ScreenFlow.h:23
@ Options
Definition ScreenFlow.h:26
ScreenDressing dressingFor(ScreenId screen) noexcept
Definition ScreenFlow.cpp:8
ScreenEvent
Événement pouvant déclencher une transition d'écran.
Definition ScreenFlow.h:39
@ OpenEditor
Definition ScreenFlow.h:41
@ OpenCredits
Definition ScreenFlow.h:48
@ CloseRpgScreen
Definition ScreenFlow.h:54
@ QuitPauseToMenu
Definition ScreenFlow.h:47
@ OpenOptions
Definition ScreenFlow.h:43
@ CloseCredits
Definition ScreenFlow.h:49
@ OpenGame
Definition ScreenFlow.h:42
@ OpenMenu
Definition ScreenFlow.h:40
@ ResumePause
Definition ScreenFlow.h:46
@ OpenRpgScreen
Ouvre un écran du RPG.
Definition ScreenFlow.h:53
@ OpenPause
Definition ScreenFlow.h:45
@ CloseOptions
Definition ScreenFlow.h:44
std::optional< ScreenState > resolveTransition(const ScreenState &current, ScreenEvent event) noexcept
Résout une transition d'écran à partir de l'état courant et d'un événement.
Definition ScreenFlow.cpp:66
Habillage de fenêtre associé à un écran : ce que chaque showXxx() répétait à la main (bascule du QSta...
Definition ScreenFlow.h:62
bool menuBarVisible
Definition ScreenFlow.h:64
bool pixelToolBarVisible
Definition ScreenFlow.h:66
bool overlayVisible
Definition ScreenFlow.h:69
friend bool operator==(const ScreenDressing &, const ScreenDressing &)=default
bool toolBarVisible
Definition ScreenFlow.h:65
bool gamepadNavigationActive
Definition ScreenFlow.h:68
bool editingCommandsEnabled
Definition ScreenFlow.h:67
bool docksVisible
Definition ScreenFlow.h:63
État complet de la machine.
Definition ScreenFlow.h:81
ScreenId optionsReturnTo
Definition ScreenFlow.h:83
ScreenId rpgReturnTo
Écran vers lequel CloseRpgScreen revient (Menu, Game ou Pause, selon l'origine).
Definition ScreenFlow.h:87
friend bool operator==(const ScreenState &, const ScreenState &)=default
ScreenId screen
Definition ScreenFlow.h:82