1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
vcmi/lib/rmg/CZonePlacer.h
beegee1 1ac328635a - Added handler classes CRmgTemplateStorage and CTerrainViewPatternConfig to LibClasses
- Re-organized CMapGenerator
- Created CZone and CTemplate objects in the heap and used pointers
- Added stub classes CZoneGraphGenerator and CZonePlacer (include warnings of unused variables, please ignore them)
- Fixed CRandomGenerator bug that always the same number was produced
- Better structure of Visual Studio project files with using filters
- Updated project files (VS, CMake)
- Excluded compiler warning mismatched-tags (false positive)
- Fixed a bug when compiling with unit tests enabled
2013-08-17 12:46:48 +00:00

46 lines
800 B
C++

/*
* CZonePlacer.h, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
#pragma once
class CZoneGraph;
class CMap;
class CRandomGenerator;
class CRmgTemplateZone;
class CPlacedZone
{
public:
CPlacedZone(CRmgTemplateZone * zone);
private:
CRmgTemplateZone * zone;
//TODO exact outline data of zone
//TODO perhaps further zone data, guards, obstacles, etc...
};
//TODO add voronoi helper classes(?), etc...
class CZonePlacer
{
public:
CZonePlacer();
~CZonePlacer();
void placeZones(CMap * map, unique_ptr<CZoneGraph> graph, CRandomGenerator * gen);
private:
CMap * map;
unique_ptr<CZoneGraph> graph;
CRandomGenerator * gen;
};