summaryrefslogtreecommitdiff
path: root/src/openvic/map/Map.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic/map/Map.hpp')
-rw-r--r--src/openvic/map/Map.hpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/openvic/map/Map.hpp b/src/openvic/map/Map.hpp
index 3533a14..b945c7a 100644
--- a/src/openvic/map/Map.hpp
+++ b/src/openvic/map/Map.hpp
@@ -16,7 +16,7 @@ namespace OpenVic {
const index_t index;
const colour_func_t colour_func;
- Mapmode(index_t new_index, std::string const& new_identifier, colour_func_t new_colour_func);
+ Mapmode(index_t new_index, ovstring const& new_identifier, colour_func_t new_colour_func);
public:
static const Mapmode ERROR_MAPMODE;
@@ -59,25 +59,25 @@ namespace OpenVic {
public:
Map();
- return_t add_province(std::string const& identifier, colour_t colour);
+ return_t add_province(ovstring const& identifier, colour_t colour);
void lock_provinces();
- return_t set_water_province(std::string const& identifier);
+ return_t set_water_province(ovstring const& identifier);
void lock_water_provinces();
- return_t add_region(std::string const& identifier, std::vector<std::string> const& province_identifiers);
+ return_t add_region(ovstring const& identifier, std::vector<ovstring> const& province_identifiers);
void lock_regions();
size_t get_province_count() const;
Province* get_province_by_index(index_t index);
Province const* get_province_by_index(index_t index) const;
- Province* get_province_by_identifier(std::string const& identifier);
- Province const* get_province_by_identifier(std::string const& identifier) const;
+ Province* get_province_by_identifier(ovstring const& identifier);
+ Province const* get_province_by_identifier(ovstring const& identifier) const;
index_t get_province_index_at(size_t x, size_t y) const;
void set_selected_province(index_t index);
index_t get_selected_province_index() const;
Province const* get_selected_province() const;
- Region* get_region_by_identifier(std::string const& identifier);
- Region const* get_region_by_identifier(std::string const& identifier) const;
+ Region* get_region_by_identifier(ovstring const& identifier);
+ Region const* get_region_by_identifier(ovstring const& identifier) const;
return_t generate_province_shape_image(size_t new_width, size_t new_height, uint8_t const* colour_data,
uint8_t const* terrain_data, terrain_variant_map_t const& terrain_variant_map);
@@ -85,11 +85,11 @@ namespace OpenVic {
size_t get_height() const;
std::vector<shape_pixel_t> const& get_province_shape_image() const;
- return_t add_mapmode(std::string const& identifier, Mapmode::colour_func_t colour_func);
+ return_t add_mapmode(ovstring const& identifier, Mapmode::colour_func_t colour_func);
void lock_mapmodes();
size_t get_mapmode_count() const;
Mapmode const* get_mapmode_by_index(Mapmode::index_t index) const;
- Mapmode const* get_mapmode_by_identifier(std::string const& identifier) const;
+ Mapmode const* get_mapmode_by_identifier(ovstring const& identifier) const;
static constexpr size_t MAPMODE_COLOUR_SIZE = 4;
return_t generate_mapmode_colours(Mapmode::index_t index, uint8_t* target) const;