Project Alice
|
#include "map.hpp"
#include "province.hpp"
#include "system_state.hpp"
#include "parsers_declarations.hpp"
Go to the source code of this file.
Classes | |
struct | map::border_direction |
struct | map::border_direction::information |
struct | map::river_vertex |
struct | map::river_runner |
Namespaces | |
namespace | map |
Enumerations | |
enum | map::direction : uint8_t { map::UP_LEFT = 1 << 7 , map::UP_RIGHT = 1 << 6 , map::DOWN_LEFT = 1 << 5 , map::DOWN_RIGHT = 1 << 4 , map::UP = 1 << 3 , map::DOWN = 1 << 2 , map::LEFT = 1 << 1 , map::RIGHT = 1 << 0 } |
enum class | map::diagonal_border : uint8_t { map::UP_LEFT = 0x01 , map::UP_RIGHT = uint8_t(0x01 << 2) , map::DOWN_LEFT = uint8_t(0x01 << 4) , map::DOWN_RIGHT = uint8_t(0x01 << 6) , map::NOTHING = 0 } |
Functions | |
bool | map::extend_if_possible (uint32_t x, int32_t border_id, direction dir, std::vector< border_direction > &last_row, std::vector< border_direction > ¤t_row, glm::vec2 map_size, std::vector< curved_line_vertex > &border_vertices) |
int32_t | map::get_border_index (uint16_t map_province_id1, uint16_t map_province_id2, parsers::scenario_building_context &context) |
bool | map::is_river (uint8_t river_data) |
int32_t | map::river_width (uint8_t river_data) |
bool | map::is_river_source (uint8_t river_data) |
bool | map::is_river_merge (uint8_t river_data) |
bool | map::coastal_point (sys::state &state, uint16_t a, uint16_t b) |
bool | map::order_indifferent_compare (uint16_t a, uint16_t b, uint16_t c, uint16_t d) |
std::vector< glm::vec2 > | map::make_border_section (display_data &dat, sys::state &state, std::vector< bool > &visited, uint16_t prov_prim, uint16_t prov_sec, int32_t start_x, int32_t start_y) |
void | map::add_border_segment_vertices (display_data &dat, std::vector< glm::vec2 > const &points) |
std::vector< glm::vec2 > | map::make_coastal_loop (display_data &dat, sys::state &state, std::vector< bool > &visited, int32_t start_x, int32_t start_y) |
void | map::add_coastal_loop_vertices (display_data &dat, std::vector< glm::vec2 > const &points) |
void | map::load_river_crossings (parsers::scenario_building_context &context, std::vector< uint8_t > const &river_data, glm::ivec2 map_size) |
bool | map::check_for_child (river_vertex *vertex, uint32_t x, uint32_t y) |
bool | map::check_for_parent (river_vertex *vertex, uint32_t x, uint32_t y) |
bool | map::check_for_river (std::vector< uint8_t > const &river_data, river_runner &runner, int32_t x, int32_t y, glm::ivec2 size) |
std::vector< glm::ivec2 > | map::check_for_potential_child (std::vector< uint8_t > const &river_data, river_runner &runner, glm::ivec2 size) |