WorldSim  inDev
2D tile-based sandbox RPG with procedurally generated fantasy world simulator 🌏
Static_FloraManager.hpp
Go to the documentation of this file.
1 #pragma once
2 #ifndef WORLDSIM_STATIC_FLORA_MANAGER_HPP
3 #define WORLDSIM_STATIC_FLORA_MANAGER_HPP
4 
5 /* WorldSim: Static_FloraManager
6  #include "Static_FloraManager.hpp"
7 
8  Container class for Flora objects.
9 
10  Subfunctionality of Biome objects.
11 
12 */
13 
14 class Flora;
15 
17 {
18  public:
19 
21 
22  // All flora types in the biome (max 255 types)
23  Vector <Flora*> vFlora;
24 
25  RandomLehmer rng;
26 
27  // All abstracted flora in the map
28  //Vector <FloraAbstract*> vFloraAbstract;
29 
30  FloraManager();
31 
32  void generate (const int amount=1);
33 
34  // return a random flora from the weighted lists
35  Flora* get();
36 };
37 
38 #endif
int totalSpawnWeight
Definition: Static_FloraManager.hpp:20
void generate(const int amount=1)
Definition: Static_FloraManager.cpp:28
Vector< Flora * > vFlora
Definition: Static_FloraManager.hpp:23
RandomLehmer rng
Definition: Static_FloraManager.hpp:25
FloraManager()
Definition: Static_FloraManager.cpp:22
Definition: Static_Flora.hpp:201
Definition: Static_FloraManager.hpp:16