play_controller: forward declare statistics context
This commit is contained in:
parent
ba094eff71
commit
d356e8d53f
5 changed files with 10 additions and 3 deletions
|
@ -42,6 +42,7 @@
|
|||
#include "settings.hpp"
|
||||
#include "scripting/plugins/context.hpp"
|
||||
#include "sound.hpp"
|
||||
#include "statistics.hpp"
|
||||
#include "unit_id.hpp"
|
||||
#include "game_config_manager.hpp"
|
||||
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
#include "scripting/plugins/context.hpp"
|
||||
#include "sound.hpp"
|
||||
#include "soundsource.hpp"
|
||||
#include "statistics.hpp"
|
||||
#include "synced_context.hpp"
|
||||
#include "terrain_type_data.hpp"
|
||||
#include "tooltips.hpp"
|
||||
|
@ -128,7 +129,7 @@ play_controller::play_controller(const config& level, saved_game& state_of_game,
|
|||
persist_(),
|
||||
gui_(),
|
||||
xp_mod_(new unit_experience_accelerator(level["experience_modifier"].to_int(100))),
|
||||
statistics_context_(level["name"]),
|
||||
statistics_context_(new statistics::scenario_context(level["name"])),
|
||||
undo_stack_(new actions::undo_list(level.child("undo_stack"))),
|
||||
loading_game_(level["playing_team"].empty() == false),
|
||||
player_number_(1),
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include "menu_events.hpp"
|
||||
#include "mouse_events.hpp"
|
||||
#include "persist_manager.hpp"
|
||||
#include "statistics.hpp"
|
||||
#include "terrain_type_data.hpp"
|
||||
#include "tod_manager.hpp"
|
||||
|
||||
|
@ -60,6 +59,10 @@ namespace soundsource {
|
|||
class manager;
|
||||
} // namespace soundsource
|
||||
|
||||
namespace statistics {
|
||||
struct scenario_context;
|
||||
} // namespace statistics
|
||||
|
||||
namespace pathfind {
|
||||
class manager;
|
||||
}
|
||||
|
@ -248,7 +251,7 @@ protected:
|
|||
//other objects
|
||||
boost::scoped_ptr<game_display> gui_;
|
||||
boost::scoped_ptr<unit_experience_accelerator> xp_mod_;
|
||||
const statistics::scenario_context statistics_context_;
|
||||
boost::scoped_ptr<const statistics::scenario_context> statistics_context_;
|
||||
/// undo_stack_ is never NULL. It is implemented as a pointer so that
|
||||
/// undo_list can be an incomplete type at this point (which reduces the
|
||||
/// number of files that depend on actions/undo.hpp).
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
#include "save_blocker.hpp"
|
||||
#include "scripting/plugins/context.hpp"
|
||||
#include "soundsource.hpp"
|
||||
#include "statistics.hpp"
|
||||
#include "storyscreen/interface.hpp"
|
||||
#include "unit.hpp"
|
||||
#include "unit_animation.hpp"
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include "savegame.hpp"
|
||||
#include "saved_game.hpp"
|
||||
#include "scripting/game_lua_kernel.hpp"
|
||||
#include "statistics.hpp"
|
||||
#include "synced_context.hpp"
|
||||
#include "whiteboard/manager.hpp"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue