💿🐜 Antkeeper source code https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.9 KiB

  1. /*
  2. * Copyright (C) 2023 Christopher J. Howard
  3. *
  4. * This file is part of Antkeeper source code.
  5. *
  6. * Antkeeper source code is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * Antkeeper source code is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with Antkeeper source code. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef ANTKEEPER_GAME_ANT_GENE_POOL_HPP
  20. #define ANTKEEPER_GAME_ANT_GENE_POOL_HPP
  21. #include "game/ant/gene-frequency-table.hpp"
  22. #include "game/ant/gene/antennae.hpp"
  23. #include "game/ant/gene/body-size.hpp"
  24. #include "game/ant/gene/cocoon.hpp"
  25. #include "game/ant/gene/diet.hpp"
  26. #include "game/ant/gene/egg.hpp"
  27. #include "game/ant/gene/eyes.hpp"
  28. #include "game/ant/gene/foraging-time.hpp"
  29. #include "game/ant/gene/founding-mode.hpp"
  30. #include "game/ant/gene/gaster.hpp"
  31. #include "game/ant/gene/head.hpp"
  32. #include "game/ant/gene/larva.hpp"
  33. #include "game/ant/gene/legs.hpp"
  34. #include "game/ant/gene/mandibles.hpp"
  35. #include "game/ant/gene/mesosoma.hpp"
  36. #include "game/ant/gene/nest-site.hpp"
  37. #include "game/ant/gene/ocelli.hpp"
  38. #include "game/ant/gene/pigmentation.hpp"
  39. #include "game/ant/gene/pilosity.hpp"
  40. #include "game/ant/gene/sculpturing.hpp"
  41. #include "game/ant/gene/sting.hpp"
  42. #include "game/ant/gene/waist.hpp"
  43. #include "game/ant/gene/wings.hpp"
  44. namespace game {
  45. namespace ant {
  46. /**
  47. * Pool of genes from which ant genomes can be generated.
  48. */
  49. struct gene_pool
  50. {
  51. /// Gene pool name.
  52. std::string name;
  53. gene_frequency_table<gene::antennae> antennae;
  54. gene_frequency_table<gene::body_size> body_size;
  55. gene_frequency_table<gene::cocoon> cocoon;
  56. gene_frequency_table<gene::diet> diet;
  57. gene_frequency_table<gene::egg> egg;
  58. gene_frequency_table<gene::eyes> eyes;
  59. gene_frequency_table<gene::foraging_time> foraging_time;
  60. gene_frequency_table<gene::founding_mode> founding_mode;
  61. gene_frequency_table<gene::gaster> gaster;
  62. gene_frequency_table<gene::head> head;
  63. gene_frequency_table<gene::larva> larva;
  64. gene_frequency_table<gene::legs> legs;
  65. gene_frequency_table<gene::mandibles> mandibles;
  66. gene_frequency_table<gene::mesosoma> mesosoma;
  67. gene_frequency_table<gene::nest_site> nest_site;
  68. gene_frequency_table<gene::ocelli> ocelli;
  69. gene_frequency_table<gene::pigmentation> pigmentation;
  70. gene_frequency_table<gene::pilosity> pilosity;
  71. gene_frequency_table<gene::sculpturing> sculpturing;
  72. gene_frequency_table<gene::sting> sting;
  73. gene_frequency_table<gene::waist> waist;
  74. gene_frequency_table<gene::wings> wings;
  75. };
  76. } // namespace ant
  77. } // namespace game
  78. #endif // ANTKEEPER_GAME_ANT_GENE_POOL_HPP