26 namespace events {
class menu_handler; }
27 namespace events {
class mouse_handler; }
60 void expand_autosaves(std::vector<config>&
items,
int i);
67 void expand_wml_commands(std::vector<config>&
items,
int i);
76 const team & viewing_team()
const;
77 bool viewing_team_is_playing()
const;
86 virtual void objectives()
override;
87 virtual void show_statistics()
override;
88 virtual void unit_list()
override;
89 virtual void left_mouse_click()
override;
90 virtual void move_action()
override;
91 virtual void select_and_action()
override;
92 virtual void touch_hex()
override;
93 virtual void select_hex()
override;
94 virtual void deselect_hex()
override;
95 virtual void right_mouse_click()
override;
96 virtual void status_table()
override;
97 virtual void save_game()
override;
98 virtual void save_replay()
override;
99 virtual void save_map()
override;
100 virtual void load_game()
override;
102 virtual void speak()
override;
103 virtual void show_chat_log()
override;
105 virtual void cycle_units()
override;
106 virtual void cycle_back_units()
override;
107 virtual void undo()
override;
108 virtual void redo()
override;
109 virtual void show_enemy_moves(
bool ignore_units)
override;
110 virtual void goto_leader()
override;
111 virtual void unit_description()
override;
112 virtual void terrain_description()
override;
113 virtual void toggle_ellipses()
override;
114 virtual void toggle_grid()
override;
115 virtual void search()
override;
116 virtual void toggle_accelerated_speed()
override;
117 virtual void scroll_up(
bool on)
override;
118 virtual void scroll_down(
bool on)
override;
119 virtual void scroll_left(
bool on)
override;
120 virtual void scroll_right(
bool on)
override;
125 virtual void load_autosave(
const std::string& filename);
129 virtual bool do_execute_command(
const hotkey::hotkey_command& command,
int index=-1,
bool press=
true,
bool release=
false)
override;
130 void show_menu(
const std::vector<config>& items_arg,
int xloc,
int yloc,
bool context_menu,
display& disp)
override;
void show_help(const std::string &show_topic, int xloc, int yloc)
Open the help browser, show topic with id show_topic.
virtual void replay_skip_animation() override
Stores all information related to functions that can be bound to hotkeys.
const std::vector< std::string > items
play_controller & play_controller_
References to parent object / constituents.
std::vector< std::string > savenames_
This class stores all the data for a single 'side' (in game nomenclature).
events::menu_handler & menu_handler_
std::shared_ptr< const game_events::wml_menu_item > const_item_ptr
A smart pointer used when retrieving menu items.
Modify, read and display user preferences.
int show_menu(lua_State *L)
Displays a popup menu at the current mouse position Best used from a [set_menu_item], to show a submenu.
static const std::string wml_menu_hotkey_prefix
events::mouse_handler & mouse_handler_
std::size_t index(const std::string &str, const std::size_t index)
Codepoint index corresponding to the nth character in a UTF-8 string.
Handling of system events.
std::vector< const_item_ptr > wml_commands_
void toggle_skipping_replay()
display & get_display() override