2 #ifndef WORLDSIM_STATIC_FLORA_HPP 3 #define WORLDSIM_STATIC_FLORA_HPP 123 #include <Container/Table/TableInterface.hpp> 124 #include <Container/WordList/WordList.hpp> 141 WordList wListEffects;
146 wListEffects.add(
"Death");
147 wListEffects.add(
"Poison");
148 wListEffects.add(
"Health");
149 wListEffects.add(
"Magic");
154 auto effect =
new Effect(wListEffects.getRandom());
163 #include <File/FileManager.hpp> 176 wListIngredient.loadString(FileManager::getFileAsString(
"raw/wordlists/ingredient.txt"));
182 auto ingredient =
new Ingredient(wListIngredient.getRandom());
199 #include <Graphics/Colour/Colour.hpp> 209 unsigned char easyFood, mediumFood, hardFood;
222 Flora(
const std::string _name =
"Flora",
const unsigned short int _spawnWeight=1);
224 void increment(
unsigned short int );
225 void setFoodValues(
unsigned char ,
unsigned char ,
unsigned char );
226 void allowBiome(
unsigned char );
228 std::string getColour();
230 virtual Texture* currentTexture()
override;
232 std::string getName()
override;
235 std::string getColumn(std::string _column)
override;
237 std::string getColumnType(std::string _column)
override;
EffectGenerator()
Definition: Static_Flora.hpp:144
RandomLehmer SEEDER
Definition: Driver_GlobalObjects.hpp:9
Texture * currentTexture() override
Definition: Static_Flora.hpp:269
Definition: Static_Flora.hpp:139
Texture TEX_OBJECT_STUMP
Definition: Driver_TextureList.hpp:217
Definition: Static.hpp:24
Definition: Static_Flora.hpp:128
Texture TEX_WORLD_TERRAIN_FOREST_TREE
Definition: Driver_TextureList.hpp:127
Ingredient * generateIngredient()
Definition: Static_Flora.hpp:180
Definition: World_Biome.hpp:46
Texture TEX_WORLD_TERRAIN_FOREST_SAPLING
Definition: Driver_TextureList.hpp:130
IngredientGenerator()
Definition: Static_Flora.hpp:172
IngredientGenerator ingredientGenerator
Definition: Static_Flora.hpp:193
World_Biome * biome
Definition: Static_Flora.hpp:215
Effect(std::string _name)
Definition: Static_Flora.hpp:133
Definition: Ingredient.hpp:20
Ingredient * ingredient
Definition: Static_Flora.hpp:214
ColourRGB< unsigned char > colour
Definition: Static_Flora.hpp:220
Definition: Static_Flora.hpp:201
RandomLehmer RNG_TEST
Definition: Driver_GlobalObjects.hpp:12
Definition: Static_FloraGenerator.hpp:17
FloraGenerator floraGenerator
Definition: Static_Flora.hpp:286
WordList wListIngredient
Definition: Static_Flora.hpp:170
std::string name
Definition: Static_Flora.hpp:131
std::string name
Definition: Static_Flora.hpp:168
EffectGenerator effectGenerator
Definition: Static_Flora.hpp:158
Effect * generate()
Definition: Static_Flora.hpp:152
Definition: Static_Flora.hpp:245
unsigned short int spawnWeight
Definition: Static_Flora.hpp:217
int chopAmount
Definition: Static_Flora.hpp:249
Static_Tree(int _growth=100)
Definition: Static_Flora.hpp:252
Definition: Static_Flora.hpp:165
int growth
Definition: Static_Flora.hpp:250