mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-20 20:23:03 +02:00
1ac328635a
- 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
35 lines
602 B
C++
35 lines
602 B
C++
|
|
/*
|
|
* CZoneGraphGenerator.cpp, 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
|
|
*
|
|
*/
|
|
|
|
#include "StdInc.h"
|
|
#include "CZoneGraphGenerator.h"
|
|
|
|
CZoneCell::CZoneCell(CRmgTemplateZone * zone) : zone(zone)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
CZoneGraph::CZoneGraph()
|
|
{
|
|
|
|
}
|
|
|
|
CZoneGraphGenerator::CZoneGraphGenerator() : gen(nullptr)
|
|
{
|
|
|
|
}
|
|
|
|
unique_ptr<CZoneGraph> CZoneGraphGenerator::generate(const CMapGenOptions & options, CRandomGenerator * gen)
|
|
{
|
|
return make_unique<CZoneGraph>();
|
|
}
|