PlanetDef.h 616 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // Created by jovian on 18/08/17.
  3. //
  4. #ifndef SPACEEXPANSION_PLANETDEF_H
  5. #define SPACEEXPANSION_PLANETDEF_H
  6. #include <string>
  7. #include "../Maths/b2_math.h"
  8. #include "Stock.h"
  9. enum PlanetState {
  10. EMPTY, INHABITED, MINOR, RESEARCH, FARMER, INDUSTRIAL
  11. };
  12. struct PlanetDef {
  13. PlanetDef() : stock(), level(0), nuclearPlants(0),
  14. militaryPower(0), state(EMPTY), pos(), name("---"), size(1.0f) {};
  15. Stock stock;
  16. int level;
  17. int nuclearPlants;
  18. int militaryPower;
  19. PlanetState state;
  20. b2Vec2 pos;
  21. std::string name;
  22. float size;
  23. };
  24. #endif //SPACEEXPANSION_PLANETDEF_H