CZonePlacer.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 "float3.h"
  13. #include "../int3.h"
  14. class CZoneGraph;
  15. class CMap;
  16. class CRandomGenerator;
  17. class CRmgTemplateZone;
  18. class CMapGenerator;
  19. class CPlacedZone
  20. {
  21. public:
  22. explicit CPlacedZone(const CRmgTemplateZone * Zone);
  23. private:
  24. //const CRmgTemplateZone * zone;
  25. //TODO exact outline data of zone
  26. //TODO perhaps further zone data, guards, obstacles, etc...
  27. };
  28. class CZonePlacer
  29. {
  30. public:
  31. explicit CZonePlacer(CMapGenerator * gen);
  32. int3 cords (const float3 f) const;
  33. float metric (const int3 &a, const int3 &b) const;
  34. ~CZonePlacer();
  35. void placeZones(const CMapGenOptions * mapGenOptions, CRandomGenerator * rand);
  36. void assignZones(const CMapGenOptions * mapGenOptions);
  37. private:
  38. //metric coefiicients
  39. float scaleX;
  40. float scaleY;
  41. //float a1, b1, c1, a2, b2, c2;
  42. //CMap * map;
  43. //unique_ptr<CZoneGraph> graph;
  44. CMapGenerator * gen;
  45. };