Symphony Of Empires
|
#include <map.hpp>
Public Member Functions | |
Map (GameState &gs, const World &world, UI::Group *map_ui_layer, int screen_width, int screen_height) | |
~Map () | |
void | update_mapmode () |
void | draw_flag (const Eng3D::OpenGL::Program &shader, const Nation &nation) |
void | draw () |
void | set_map_mode (mapmode_generator mapmode_func, mapmode_tooltip tooltip_func) |
void | set_selected_province (bool selected, ProvinceId id) |
void | set_view (MapView view) |
void | reload_shaders () |
void | update_nation_label (const Nation &nation) |
void | create_labels () |
void | handle_resize () |
void | handle_mouse_button (const Eng3D::Event::MouseButton &e) |
void | handle_mouse_motions (const Eng3D::Event::MouseMotion &e) |
void | set_selection (selector_func selector) |
Public Attributes | |
bool | province_selected = false |
ProvinceId | selected_province_id |
MapView | view_mode = MapView::PLANE_VIEW |
std::vector< std::shared_ptr< Eng3D::Model > > | building_type_models |
std::vector< std::shared_ptr< Eng3D::Model > > | unit_type_models |
std::vector< std::shared_ptr< Eng3D::Model > > | tree_type_models |
std::vector< glm::vec2 > | tree_spawn_pos |
std::vector< std::shared_ptr< Eng3D::Texture > > | building_type_icons |
std::vector< std::shared_ptr< Eng3D::Texture > > | unit_type_icons |
std::vector< std::shared_ptr< Eng3D::Texture > > | nation_flags |
std::vector< std::unique_ptr< Eng3D::Label3D > > | province_labels |
std::vector< std::unique_ptr< Eng3D::Label3D > > | nation_labels |
bool | gen_labels = true |
float | wind_osc = 0.f |
Wind oscillator (for flags) More... | |
bool | is_drag = false |
Input states. More... | |
glm::vec2 | last_camera_drag_pos |
const World & | world |
UI::Tooltip * | tooltip = nullptr |
UI::Group * | map_ui_layer = nullptr |
std::unique_ptr< Eng3D::Camera > | camera |
std::unique_ptr< MapRender > | map_render |
std::vector< Interface::UnitWidget * > | unit_widgets |
std::vector< Interface::BattleWidget * > | battle_widgets |
std::unique_ptr< Eng3D::OpenGL::Program > | obj_shader |
void Map::create_labels | ( | ) |
void Map::draw | ( | ) |
void Map::draw_flag | ( | const Eng3D::OpenGL::Program & | shader, |
const Nation & | nation | ||
) |
void Map::handle_mouse_button | ( | const Eng3D::Event::MouseButton & | e | ) |
void Map::handle_mouse_motions | ( | const Eng3D::Event::MouseMotion & | e | ) |
void Map::reload_shaders | ( | ) |
void Map::set_map_mode | ( | mapmode_generator | mapmode_func, |
mapmode_tooltip | tooltip_func | ||
) |
void Map::set_selected_province | ( | bool | selected, |
ProvinceId | id | ||
) |
void Map::set_selection | ( | selector_func | selector | ) |
void Map::update_mapmode | ( | ) |
void Map::update_nation_label | ( | const Nation & | nation | ) |
std::vector<Interface::BattleWidget*> Map::battle_widgets |
std::vector<std::shared_ptr<Eng3D::Texture> > Map::building_type_icons |
std::vector<std::shared_ptr<Eng3D::Model> > Map::building_type_models |
std::unique_ptr<Eng3D::Camera> Map::camera |
std::vector<std::shared_ptr<Eng3D::Texture> > Map::nation_flags |
std::vector<std::unique_ptr<Eng3D::Label3D> > Map::nation_labels |
std::unique_ptr<Eng3D::OpenGL::Program> Map::obj_shader |
std::vector<std::unique_ptr<Eng3D::Label3D> > Map::province_labels |
ProvinceId Map::selected_province_id |
UI::Tooltip* Map::tooltip = nullptr |
std::vector<std::shared_ptr<Eng3D::Model> > Map::tree_type_models |
std::vector<std::shared_ptr<Eng3D::Texture> > Map::unit_type_icons |
std::vector<std::shared_ptr<Eng3D::Model> > Map::unit_type_models |
std::vector<Interface::UnitWidget*> Map::unit_widgets |
MapView Map::view_mode = MapView::PLANE_VIEW |