![]() |
Botcraft 1.21.4
|
#include <Biome.hpp>
Public Member Functions | |
Biome (const std::string &name_, const float temperature_, const float rainfall_, const BiomeType biome_type_) | |
~Biome () | |
const std::string & | GetName () const |
unsigned int | GetColorMultiplier (const int height, const bool is_grass) const |
unsigned int | GetWaterColorMultiplier () const |
Private Member Functions | |
unsigned int | ComputeColorTriangle (const int height, const bool is_grass) const |
Private Attributes | |
std::string | name |
float | temperature |
float | rainfall |
unsigned int | default_grass |
unsigned int | default_leaves |
BiomeType | biome_type |
Botcraft::Biome::Biome | ( | const std::string & | name_, |
const float | temperature_, | ||
const float | rainfall_, | ||
const BiomeType | biome_type_ | ||
) |
Definition at line 19 of file Biome.cpp.
References biome_type, ComputeColorTriangle(), default_grass, default_leaves, name, rainfall, and temperature.
|
private |
Definition at line 127 of file Biome.cpp.
References rainfall, and temperature.
Referenced by Biome(), and GetColorMultiplier().
unsigned int Botcraft::Biome::GetColorMultiplier | ( | const int | height, |
const bool | is_grass | ||
) | const |
Definition at line 40 of file Biome.cpp.
References Botcraft::Badlands, biome_type, Botcraft::Classic, ComputeColorTriangle(), Botcraft::DarkForest, default_grass, default_leaves, Botcraft::PaleGarden, and Botcraft::Swamp.
Referenced by Botcraft::Renderer::WorldRenderer::GetColorModifier().
const std::string & Botcraft::Biome::GetName | ( | ) | const |
unsigned int Botcraft::Biome::GetWaterColorMultiplier | ( | ) | const |
Definition at line 91 of file Biome.cpp.
References biome_type, Botcraft::ColdOcean, Botcraft::FrozenOcean, Botcraft::LukewarmOcean, Botcraft::PaleGarden, Botcraft::Swamp, and Botcraft::WarmOcean.
Referenced by Botcraft::Renderer::WorldRenderer::GetColorModifier().
|
private |
Definition at line 49 of file Biome.hpp.
Referenced by Biome(), GetColorMultiplier(), and GetWaterColorMultiplier().
|
private |
Definition at line 47 of file Biome.hpp.
Referenced by Biome(), and GetColorMultiplier().
|
private |
Definition at line 48 of file Biome.hpp.
Referenced by Biome(), and GetColorMultiplier().
|
private |
|
private |
Definition at line 46 of file Biome.hpp.
Referenced by Biome(), and ComputeColorTriangle().
|
private |
Definition at line 45 of file Biome.hpp.
Referenced by Biome(), and ComputeColorTriangle().