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