The Battle for Wesnoth  1.15.1+dev
minimap.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2003 - 2018 by David White <dave@whitevine.net>
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 <cstddef>
18 #include <map>
19 
20 class gamemap;
21 class surface;
22 class team;
23 struct map_location;
24 
25 namespace image {
26  ///function to create the minimap for a given map
27  ///the surface returned must be freed by the user
28  surface getMinimap(int w, int h, const gamemap &map_, const team *vm = nullptr, const std::map<map_location,unsigned int> *reach_map = nullptr, bool ignore_terrain_disabled = false);
29 }
#define h
surface getMinimap(int w, int h, const gamemap &map, const team *vw, const std::map< map_location, unsigned int > *reach_map, bool ignore_terrain_disabled)
function to create the minimap for a given map the surface returned must be freed by the user ...
Definition: minimap.cpp:39
This class stores all the data for a single &#39;side&#39; (in game nomenclature).
Definition: team.hpp:44
Encapsulates the map of the game.
Definition: map.hpp:36
Encapsulates the map of the game.
Definition: location.hpp:42
int w
this module manages the cache of images.