The Battle for Wesnoth  1.17.0-dev
minimap.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2003 - 2021
3  by David White <dave@whitevine.net>
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 <cstddef>
19 #include <map>
20 
21 class gamemap;
22 class surface;
23 class team;
24 struct map_location;
25 
26 namespace image {
27  /**
28  * function to create the minimap for a given map
29  * the surface returned must be freed by the user
30  */
31  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);
32 }
#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:40
This class stores all the data for a single &#39;side&#39; (in game nomenclature).
Definition: team.hpp:72
Encapsulates the map of the game.
Definition: map.hpp:171
Encapsulates the map of the game.
Definition: location.hpp:38
int w
Functions to load and save images from/to disk.