1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

- Attempt to move zones away from map boundaries

- Tweaking algorithm parameters
- Refactorings
This commit is contained in:
DjWarmonger
2014-05-24 18:39:58 +02:00
parent 462514965c
commit b9de3875d9
4 changed files with 62 additions and 9 deletions

View File

@ -14,6 +14,17 @@
#include "CRmgTemplateZone.h"
#include "CZonePlacer.h"
void CMapGenerator::foreach_neighbour(const int3 &pos, std::function<void(const int3& pos)> foo)
{
//for(const int3 &dir : dirs)
//{
// const int3 n = pos + dir;
// if(map->isInTheMap(n))
// foo(pos+dir);
//}
}
CMapGenerator::CMapGenerator(shared_ptr<CMapGenOptions> mapGenOptions, int randomSeed /*= std::time(nullptr)*/) :
mapGenOptions(mapGenOptions), randomSeed(randomSeed)
{