Class RidgeHexGrid

Inheritance Relationships

Base Types

Derived Types

Class Documentation

class RidgeHexGrid : public sota::HexGrid, public sota::RidgeBased

Subclassed by sota::HexagonalRidgeHexGrid, sota::RectRidgeHexGrid

Public Functions

RidgeHexGrid()
void set_terraformer(const Ref<Terraformer> p_terraformer)
void set_biomes_noise(const Ref<FastNoiseLite> p_biomes_noise)
Ref<FastNoiseLite> get_biomes_noise() const
void set_hex_noise(const Ref<FastNoiseLite> p_hex_noise)
Ref<FastNoiseLite> get_hex_noise() const
void set_ridge_noise(const Ref<FastNoiseLite> p_ridge_noise)
Ref<FastNoiseLite> get_ridge_noise() const
void set_plain_texture(const Ref<Texture> p_texture)
Ref<Texture> get_plain_texture() const
void set_hill_texture(const Ref<Texture> p_texture)
Ref<Texture> get_hill_texture() const
void set_water_texture(const Ref<Texture> p_texture)
Ref<Texture> get_water_texture() const
void set_mountain_texture(const Ref<Texture> p_texture)
Ref<Texture> get_mountain_texture() const
void set_ridge_variation_min_bound(float p_ridge_variation_min_bound)
float get_ridge_variation_min_bound() const
void set_ridge_variation_max_bound(float p_ridge_variation_max_bound)
float get_ridge_variation_max_bound() const
void set_ridge_top_offset(float p_ridge_top_offset)
float get_ridge_top_offset() const
void set_ridge_bottom_offset(float p_ridge_bottom_offset)
float get_ridge_bottom_offset() const
void set_biomes_hill_level_ratio(float p_biomes_hill_level_ratio)
float get_biomes_hill_level_ratio() const
void set_biomes_plain_hill_gain(float p_biomes_plain_hill_gain)
float get_biomes_plain_hill_gain() const
void set_smooth_normals(bool p_smooth_normals)
bool get_smooth_normals() const
void update_biome(BiomeTile *biome_tile, Biome new_biome)
Neighbours get_neighbours(BiomeTile *biome_tile, std::optional<const GroupOfRidgeMeshes*> group)

Public Members

std::vector<Ref<MatrixProcessor>> _tile_processors

Protected Functions

inline void process_tile(int row, int col)
virtual void init() override
void calculate_geometry()
virtual void make_tiles() override
BiomeTile *make_biome_tile(Biome biome, int row, int col)

Protected Attributes

friend BiomeTile
DiscreteVertexToDistance _distance_map

Protected Static Functions

static void _bind_methods()