Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
in_game_controls_layout.h
Go to the documentation of this file.
1#ifndef IN_GAME_CONTROLS_LAYOUT
2#define IN_GAME_CONTROLS_LAYOUT
3
5#include "screen_rect.h"
6#include "action_number.h"
7
8#include <iosfwd>
9#include <map>
10
34{
35public:
37
39 const screen_rect& get_background() const noexcept { return m_background; }
40
53 const screen_rect& get_action_key_symbol(const action_number& n) const noexcept;
54
67 const screen_rect& get_action_key_text(const action_number& n) const noexcept;
68
70
80 const auto& get_navigation_controls() const noexcept { return m_navigation_controls; }
81
82private:
83 screen_rect m_background;
84 navigation_controls_layout m_navigation_controls;
85
86 std::map<action_number, screen_rect> m_action_key_symbol;
87 std::map<action_number, screen_rect> m_action_key_text;
88};
89
91
92std::ostream& operator<<(std::ostream& os, const in_game_controls_layout& layout) noexcept;
93
94#endif // IN_GAME_CONTROLS_LAYOUT
95
The number of an action.
Definition action_number.h:12
The layout for the controls in the game.
Definition in_game_controls_layout.h:34
const screen_rect & get_action_key_text(const action_number &n) const noexcept
The text of what that action does.
Definition in_game_controls_layout.cpp:68
const screen_rect & get_action_key_symbol(const action_number &n) const noexcept
The symbol for the key of that action.
Definition in_game_controls_layout.cpp:61
const screen_rect & get_background() const noexcept
The background.
Definition in_game_controls_layout.h:39
The navigation controls for a player.
Definition navigation_controls_layout.h:25
The coordinate on a screen.
Definition screen_coordinate.h:12
A rectangle-shaped area on the screen.
Definition screen_rect.h:15
void test_in_game_controls_layout()
Definition in_game_controls_layout.cpp:75
std::ostream & operator<<(std::ostream &os, const in_game_controls_layout &layout) noexcept
Definition in_game_controls_layout.cpp:121