less floating_label.hpp includes

This commit is contained in:
gfgtdf 2020-03-18 20:14:39 +01:00
parent e1fb5fc2b7
commit 2c1d9f757e
4 changed files with 9 additions and 3 deletions

View file

@ -28,6 +28,7 @@
#include "ai/testing.hpp"
#include "preferences/credentials.hpp"
#include "display_chat_manager.hpp"
#include "floating_label.hpp"
#include "formula/string_utils.hpp"
#include "game_events/menu_item.hpp"
#include "game_events/pump.hpp"
@ -145,7 +146,7 @@ play_controller::play_controller(const config& level, saved_game& state_of_game,
, tooltips_manager_()
, whiteboard_manager_()
, plugins_context_()
, labels_manager_()
, labels_manager_(new font::floating_label_context())
, help_manager_(&game_config_)
, mouse_handler_(nullptr, *this)
, menu_handler_(nullptr, *this)

View file

@ -16,7 +16,6 @@
#pragma once
#include "controller_base.hpp"
#include "floating_label.hpp"
#include "game_end_exceptions.hpp"
#include "help/help.hpp"
#include "hotkey/command_executor.hpp"
@ -44,6 +43,10 @@ namespace actions {
class undo_list;
}
namespace font {
struct floating_label_context;
}
namespace game_events {
class manager;
class wml_event_pump;
@ -336,7 +339,7 @@ protected:
std::unique_ptr<plugins_context> plugins_context_;
//more managers
font::floating_label_context labels_manager_;
std::unique_ptr<font::floating_label_context> labels_manager_;
help::help_manager help_manager_;
events::mouse_handler mouse_handler_;
events::menu_handler menu_handler_;

View file

@ -17,6 +17,7 @@
#include "actions/undo.hpp"
#include "display_chat_manager.hpp"
#include "floating_label.hpp"
#include "game_end_exceptions.hpp"
#include "gui/dialogs/loading_screen.hpp"
#include "gettext.hpp"

View file

@ -42,6 +42,7 @@
#include "chat_events.hpp" // for chat_handler, etc
#include "config.hpp" // for config, etc
#include "display_chat_manager.hpp" // for clear_chat_messages
#include "floating_label.hpp"
#include "formatter.hpp"
#include "game_board.hpp" // for game_board
#include "game_classification.hpp" // for game_classification, etc