The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
resources.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 - 2016 by Guillaume Melquiond <[email protected]>
3  Part of the Battle for Wesnoth Project http://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 #ifndef RESOURCES_H_
16 #define RESOURCES_H_
17 
18 #include <vector>
19 #include <boost/shared_ptr.hpp>
20 
21 class game_board;
23 class game_display;
24 class gamemap;
25 class game_data;
26 class filter_context;
27 class game_lua_kernel;
28 class play_controller;
29 class team;
30 class fake_unit_manager;
31 class tod_manager;
32 class unit_map;
33 class persist_manager;
35 struct mp_game_settings;
36 class replay;
37 namespace actions { class undo_list; }
38 
39 namespace game_events { class manager; }
40 
41 namespace halo { class manager; }
42 
43 namespace soundsource { class manager; }
44 
45 namespace pathfind { class manager; }
46 
47 namespace wb { class manager; } //whiteboard manager
48 
49 namespace resources
50 {
52  extern game_board *gameboard;
53  extern game_data *gamedata;
55  extern game_lua_kernel *lua_kernel; // Set by game_events::manager.
56  extern persist_manager *persist;
58  extern game_display *screen;
59  extern filter_context *filter_con;
60  extern const mp_game_settings *mp_settings;
62  extern std::vector<team> *teams;
63  extern replay *recorder;
66  extern pathfind::manager *tunnels;
68  extern unit_map *units;
70  extern bool simulation_;
71 }
72 
73 #endif
play_controller * controller
Definition: resources.cpp:21
Game board class.
Definition: game_board.hpp:55
::tod_manager * tod_manager
Definition: resources.cpp:31
game_classification * classification
Definition: resources.cpp:37
const mp_game_settings * mp_settings
Definition: resources.cpp:38
game_display * screen
Definition: resources.cpp:27
Manages a list of fake units for the display object.
persist_manager * persist
Definition: resources.cpp:26
game_data * gamedata
Definition: resources.cpp:22
This class stores all the data for a single 'side' (in game nomenclature).
Definition: team.hpp:50
std::vector< team > * teams
Definition: resources.cpp:29
filter_context * filter_con
Definition: resources.cpp:23
game_board * gameboard
Definition: resources.cpp:20
Encapsulates the map of the game.
Definition: map.hpp:37
fake_unit_manager * fake_units
Definition: resources.cpp:32
replay * recorder
Definition: resources.cpp:30
game_events::manager * game_events
Definition: resources.cpp:24
Domain specific events.
Definition: action_wml.cpp:93
soundsource::manager * soundsources
Definition: resources.cpp:28
bool simulation_
Definition: resources.cpp:39
The game event manager loads the scenario configuration object, and ensures that events are handled a...
Definition: manager.hpp:47
Definition: display.hpp:43
Class to store the actions that a player can undo and redo.
Definition: undo.hpp:38
game_lua_kernel * lua_kernel
Definition: resources.cpp:25
Container associating units to locations.
Definition: map.hpp:90
boost::shared_ptr< wb::manager > whiteboard
Definition: resources.cpp:36
actions::undo_list * undo_stack
Definition: resources.cpp:34
pathfind::manager * tunnels
Definition: resources.cpp:33
unit_map * units
Definition: resources.cpp:35
Definition: display.hpp:47