Config.hpp 482 B

123456789101112131415161718192021222324252627282930
  1. #ifndef PARTICLE_CONFIG
  2. #define PARTICLE_CONFIG
  3. #include <stddef.h>
  4. #include <vector>
  5. #include <iostream>
  6. #include <fstream>
  7. #include <sstream>
  8. struct Config
  9. {
  10. int map_width{};
  11. int map_height{};
  12. size_t population{};
  13. float increase{};
  14. float decay{};
  15. float diffusion{};
  16. float speed{};
  17. float steering{};
  18. float sensing_distance{};
  19. float sensing_angle{};
  20. };
  21. bool load_config(std::string filename, Config *config);
  22. #endif // PARTICLE_CONFIG