The Battle for Wesnoth  1.17.0-dev
resources.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 - 2021
3  by Guillaume Melquiond <guillaume.melquiond@gmail.com>
4  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY.
12 
13  See the COPYING file for more details.
14 */
15 
16 #pragma once
17 
18 #include <memory>
19 #include <vector>
20 
21 class game_board;
22 class game_data;
23 class filter_context;
24 class game_lua_kernel;
25 class play_controller;
26 class fake_unit_manager;
27 class tod_manager;
28 class unit_map;
29 class persist_manager;
31 struct mp_game_settings;
32 class replay;
33 namespace actions { class undo_list; }
34 
35 namespace game_events { class manager; }
36 
37 namespace halo { class manager; }
38 
39 namespace soundsource { class manager; }
40 
41 namespace pathfind { class manager; }
42 
43 namespace wb { class manager; } //whiteboard manager
44 
45 namespace resources
46 {
48  extern game_board *gameboard;
49  extern game_data *gamedata;
51  extern game_lua_kernel *lua_kernel; // Set by game_events::manager.
52  extern persist_manager *persist;
54  extern filter_context *filter_con;
56  extern replay *recorder;
59  extern pathfind::manager *tunnels;
61  extern std::shared_ptr<wb::manager> whiteboard;
62  extern bool simulation_;
63 }
Game board class.
Definition: game_board.hpp:51
::tod_manager * tod_manager
Definition: resources.cpp:30
game_classification * classification
Definition: resources.cpp:35
Manages a list of fake units for the display object.
const std::string & gamedata
persist_manager * persist
Definition: resources.cpp:27
filter_context * filter_con
Definition: resources.cpp:24
game_board * gameboard
Definition: resources.cpp:21
fake_unit_manager * fake_units
Definition: resources.cpp:31
replay * recorder
Definition: resources.cpp:29
game_events::manager * game_events
Definition: resources.cpp:25
Domain specific events.
Definition: action_wml.cpp:87
std::shared_ptr< wb::manager > whiteboard
Definition: resources.cpp:34
soundsource::manager * soundsources
Definition: resources.cpp:28
bool simulation_
Definition: resources.cpp:36
The game event manager loads the scenario configuration object, and ensures that events are handled a...
Definition: manager.hpp:44
Definition: display.hpp:45
Class to store the actions that a player can undo and redo.
Definition: undo.hpp:34
game_lua_kernel * lua_kernel
Definition: resources.cpp:26
Container associating units to locations.
Definition: map.hpp:98
actions::undo_list * undo_stack
Definition: resources.cpp:33
pathfind::manager * tunnels
Definition: resources.cpp:32
Definition: display.hpp:49