CZonePlacer.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * CZonePlacer.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "CMapGenerator.h"
  12. #include "../mapping/CMap.h"
  13. #include "float3.h"
  14. #include "../int3.h"
  15. class CZoneGraph;
  16. class CMap;
  17. class CRandomGenerator;
  18. class CRmgTemplateZone;
  19. class CMapGenerator;
  20. class CPlacedZone
  21. {
  22. public:
  23. explicit CPlacedZone(const CRmgTemplateZone * Zone);
  24. private:
  25. //const CRmgTemplateZone * zone;
  26. //TODO exact outline data of zone
  27. //TODO perhaps further zone data, guards, obstacles, etc...
  28. };
  29. class CZonePlacer
  30. {
  31. public:
  32. explicit CZonePlacer(CMapGenerator * gen);
  33. int3 cords (const float3 f) const;
  34. float metric (const int3 &a, const int3 &b) const;
  35. ~CZonePlacer();
  36. void placeZones(const CMapGenOptions * mapGenOptions, CRandomGenerator * rand);
  37. void assignZones(const CMapGenOptions * mapGenOptions);
  38. private:
  39. //metric coefiicients
  40. float scaleX;
  41. float scaleY;
  42. //float a1, b1, c1, a2, b2, c2;
  43. //CMap * map;
  44. //unique_ptr<CZoneGraph> graph;
  45. CMapGenerator * gen;
  46. };