1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +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

@@ -29,6 +29,9 @@ typedef std::vector<JsonNode> JsonVector;
class CMapGenerator;
//static const int3 dirs[] = { int3(0,1,0),int3(0,-1,0),int3(-1,0,0),int3(+1,0,0),
// int3(1,1,0),int3(-1,1,0),int3(1,-1,0),int3(-1,-1,0) };
class rmgException : std::exception
{
std::string msg;
@@ -63,6 +66,7 @@ public:
CMapEditManager * editManager;
std::map<TRmgTemplateZoneId, CRmgTemplateZone*> getZones() const;
void foreach_neighbour(const int3 &pos, std::function<void(const int3& pos)> foo);
private:
std::map<TRmgTemplateZoneId, CRmgTemplateZone*> zones;