Class Honeycomb

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class Honeycomb : public sota::HexGrid

Subclassed by sota::HexagonalHoneycomb, sota::RectHoneycomb

Public Functions

Honeycomb() = default
void set_cell_texture(const Ref<Texture> p_cell_texture)
Ref<Texture> get_cell_texture() const
void set_honey_texture(const Ref<Texture> p_honey_texture)
Ref<Texture> get_honey_texture() const
void set_selection_texture(const Ref<Texture> p_selection_texture)
Ref<Texture> get_selection_texture() const
void set_noise(const Ref<FastNoiseLite> p_noise)
Ref<FastNoiseLite> get_noise() const
void set_bottom_offset(float p_ridge_bottom_offset)
float get_bottom_offset() const
void set_smooth_normals(bool p_smooth_normals)
bool get_smooth_normals() const
void set_honey_random_level(bool p_honey_random_level)
bool get_honey_random_level() const
void set_honey_min_offset(float p_honey_min_offset)
float get_honey_min_offset() const
void set_honey_max_gain(float p_honey_max_gain)
float get_honey_max_gain() const
void set_honey_fill_steps(int p_honey_fill_steps)
int get_honey_fill_steps() const
void set_honey_shader(const Ref<Shader> p_honey_shader)
Ref<Shader> get_honey_shader() const
void set_selection_shader(const Ref<Shader> p_selection_shader)
Ref<Shader> get_selection_shader() const
Array get_cells() const
Array get_min_cells() const
Array get_max_cells() const
bool all_cells_empty() const

Protected Functions

virtual void init() override
virtual void make_tiles() override
virtual int calculate_honey_id_offset() = 0

Protected Static Functions

static void _bind_methods()