Symphony Of Empires
map.hpp File Reference
#include <vector>
#include <memory>
#include <utility>
#include <functional>
#include <cstddef>
#include "eng3d/color.hpp"
#include "eng3d/primitive.hpp"
#include "eng3d/shader.hpp"
#include "eng3d/font_sdf.hpp"
#include "eng3d/event.hpp"
#include "province.hpp"
#include "indpobj.hpp"
Include dependency graph for map.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ProvinceColor
 
class  Map
 

Namespaces

 Eng3D
 
 Eng3D::OpenGL
 
 UI
 
 Interface
 

Typedefs

typedef std::function< std::string(const World &world, const ProvinceId id)> mapmode_tooltip
 
typedef std::function< std::vector< ProvinceColor >const World &world)> mapmode_generator
 
typedef std::function< void(const World &world, Map &map, const Province &province)> selector_func
 

Enumerations

enum class  MapView { SPHERE_VIEW , PLANE_VIEW }
 

Functions

std::vector< ProvinceColorpolitical_map_mode (const World &world)
 
std::string political_province_tooltip (const World &world, const ProvinceId id)
 
std::string empty_province_tooltip (const World &world, const ProvinceId id)
 

Typedef Documentation

◆ mapmode_generator

typedef std::function<std::vector<ProvinceColor>const World& world)> mapmode_generator

Definition at line 82 of file map.hpp.

◆ mapmode_tooltip

typedef std::function<std::string(const World& world, const ProvinceId id)> mapmode_tooltip

Definition at line 81 of file map.hpp.

◆ selector_func

typedef std::function<void(const World& world, Map& map, const Province& province)> selector_func

Definition at line 84 of file map.hpp.

Enumeration Type Documentation

◆ MapView

enum MapView
strong
Enumerator
SPHERE_VIEW 
PLANE_VIEW 

Definition at line 63 of file map.hpp.

Function Documentation

◆ empty_province_tooltip()

std::string empty_province_tooltip ( const World world,
const ProvinceId  id 
)

Definition at line 277 of file map.cpp.

Here is the caller graph for this function:

◆ political_map_mode()

std::vector<ProvinceColor> political_map_mode ( const World world)

Definition at line 270 of file map.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ political_province_tooltip()

std::string political_province_tooltip ( const World world,
const ProvinceId  id 
)

Definition at line 262 of file map.cpp.

Here is the caller graph for this function: