The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
minimap.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2003 - 2016 by David White <[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 #ifndef MINIMAP_HPP_INCLUDED
15 #define MINIMAP_HPP_INCLUDED
16 
17 #include <cstddef>
18 #include "map/map.hpp"
19 
20 class gamemap;
21 struct surface;
22 class team;
23 struct map_location;
24 
25 #ifdef SDL_GPU
26 class CVideo;
27 struct SDL_Rect;
28 #endif
29 
30 namespace image {
31  ///function to create the minimap for a given map
32  ///the surface returned must be freed by the user
33 #ifdef SDL_GPU
34  SDL_Rect draw_minimap(CVideo &video, const SDL_Rect &area, const gamemap &map, const team *vw = nullptr, const std::map<map_location,unsigned int> *reach_map = nullptr);
35 #endif
36  surface getMinimap(int w, int h, const gamemap &map_, const team *vm = nullptr, const std::map<map_location,unsigned int> *reach_map = nullptr);
37 }
38 
39 #endif
surface getMinimap(int w, int h, const gamemap &map, const team *vw, const std::map< map_location, unsigned int > *reach_map)
function to create the minimap for a given map the surface returned must be freed by the user ...
Definition: minimap.cpp:43
variant map_
Definition: formula.cpp:306
Definition: video.hpp:58
This class stores all the data for a single 'side' (in game nomenclature).
Definition: team.hpp:50
GLubyte GLubyte GLubyte GLubyte w
Definition: glew.h:1858
Encapsulates the map of the game.
Definition: map.hpp:37
Encapsulates the map of the game.
Definition: location.hpp:38
GLfloat GLfloat GLfloat GLfloat h
Definition: glew.h:5910
this module manages the cache of images.
Definition: image.cpp:75