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