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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user