14#include <SFML/Graphics.hpp>
38 const auto&
get_layout() const noexcept {
return m_layout; }
63 std::optional<sf::Clock> m_clock;
68 const int m_countdown_secs{3};
71 bool m_dog_mode{
false};
76 bool m_has_accepted{
false};
Definition controls_bar.h:12
A change of in_game_time}.
Definition delta_t.h:12
Options for the game.
Definition game_options.h:18
The options that are set in the lobby.
Definition lobby_options.h:16
The layout of the Lobby dialog.
Definition lobby_view_layout.h:53
The lobby screen.
Definition lobby_view.h:19
void set_selected(const lobby_view_item i)
Sets the selected item.
bool get_dog_mode() const noexcept
Definition lobby_view.h:28
bool has_accepted() const noexcept
Definition lobby_view.h:40
const auto & get_layout() const noexcept
Definition lobby_view.h:38
void stop_impl() override
Clean up after this window has been shown.
Definition lobby_view.cpp:394
bool process_event_impl(sf::Event &event) override
Process all events.
Definition lobby_view.cpp:67
bool get_start(const side player_side) const noexcept
Is the player ready?
Definition lobby_view.cpp:57
void draw_impl() override
Show the menu on-screen.
Definition lobby_view.cpp:194
void start_impl() override
Prepare this window for being shown.
Definition lobby_view.cpp:371
void process_resize_event_impl(sf::Event &event) override
Process a resize event.
Definition lobby_view.cpp:180
void tick_impl(const delta_t dt) override
Does the countdown.
Definition lobby_view.cpp:31
const auto & get_lobby_options() const noexcept
Definition lobby_view.h:30
lobby_view()
Definition lobby_view.cpp:21
lobby_view_item get_selected(const side player_side) const noexcept
Get the selected item of a player.
Definition lobby_view.cpp:47
The abstract base class of all other views.
Definition view.h:26
void draw_selected_panel(lobby_view &v, const side player_side)
Draw the cursor on the selected panel.
Definition lobby_view.cpp:328
void draw_color_panel(lobby_view &v, const side player_side)
Show the side/color the players have picked.
Definition lobby_view.cpp:225
void draw_countdown(lobby_view &v, const int n_left_secs)
Show the countdown.
Definition lobby_view.cpp:240
void draw_ready_panel(lobby_view &v, const side player_side)
Show if the players are ready.
Definition lobby_view.cpp:346
void draw_lobby_title(lobby_view &v)
The image at the top.
Definition lobby_view.cpp:363
void draw_race_panel(lobby_view &v, const side player_side)
Show the races the players have picked.
Definition lobby_view.cpp:248
void draw_king_portrait(lobby_view &v, const side player_side)
Show the portraits of the kings of the race the players use.
Definition lobby_view.cpp:279
void draw_background(lobby_view &v)
The background image.
Definition lobby_view.cpp:269
void draw_layout_panels(lobby_view &v)
Show where the panels will be drawn.
Definition lobby_view.cpp:317
lobby_view_item
The items in the Lobby.
Definition lobby_view_item.h:10
side
The side the player/piece is on.
Definition side.h:11