2013-08-17 15:46:48 +03:00
/*
* CZonePlacer . 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"
2014-05-24 13:42:06 +03:00
# include "../CRandomGenerator.h"
2013-08-17 15:46:48 +03:00
# include "CZonePlacer.h"
2014-05-24 13:42:06 +03:00
# include "CRmgTemplateZone.h"
2015-12-02 21:05:10 +02:00
# include "../mapping/CMap.h"
2013-08-17 15:46:48 +03:00
# include "CZoneGraphGenerator.h"
2014-05-24 13:42:06 +03:00
class CRandomGenerator ;
2014-08-04 21:36:00 +03:00
CPlacedZone : : CPlacedZone ( const CRmgTemplateZone * zone )
2013-08-17 15:46:48 +03:00
{
}
2014-05-24 13:42:06 +03:00
CZonePlacer : : CZonePlacer ( CMapGenerator * Gen ) : gen ( Gen )
2013-08-17 15:46:48 +03:00
{
}
CZonePlacer : : ~ CZonePlacer ( )
{
}
2014-05-25 12:02:15 +03:00
int3 CZonePlacer : : cords ( const float3 f ) const
2014-05-24 13:42:06 +03:00
{
2014-05-24 23:10:46 +03:00
return int3 ( std : : max ( 0.f , ( f . x * gen - > map - > width ) - 1 ) , std : : max ( 0.f , ( f . y * gen - > map - > height - 1 ) ) , f . z ) ;
2014-05-24 13:42:06 +03:00
}
2014-07-27 14:59:53 +03:00
void CZonePlacer : : placeZones ( const CMapGenOptions * mapGenOptions , CRandomGenerator * rand )
2013-08-17 15:46:48 +03:00
{
2014-05-24 13:42:06 +03:00
logGlobal - > infoStream ( ) < < " Starting zone placement " ;
int width = mapGenOptions - > getWidth ( ) ;
int height = mapGenOptions - > getHeight ( ) ;
auto zones = gen - > getZones ( ) ;
2014-07-03 13:28:51 +03:00
bool underground = mapGenOptions - > getHasTwoLevels ( ) ;
2014-05-24 13:42:06 +03:00
2014-12-23 19:16:53 +02:00
//gravity-based algorithm
const float gravityConstant = 4e-3 ;
const float stiffnessConstant = 4e-3 ;
float zoneScale = 1.0f / std : : sqrt ( zones . size ( ) ) ; //zones starts small and then inflate. placing more zones is more difficult
const float inflateModifier = 1.02 ;
2014-05-24 23:10:46 +03:00
/*
let ' s assume we try to fit N circular zones with radius = size on a map
formula : sum ( ( prescaler * n ) ^ 2 ) * pi = WH
prescaler = sqrt ( ( WH ) / ( sum ( n ^ 2 ) * pi ) )
*/
2014-07-06 11:43:30 +03:00
std : : vector < std : : pair < TRmgTemplateZoneId , CRmgTemplateZone * > > zonesVector ( zones . begin ( ) , zones . end ( ) ) ;
assert ( zonesVector . size ( ) ) ;
RandomGeneratorUtil : : randomShuffle ( zonesVector , * rand ) ;
TRmgTemplateZoneId firstZone = zones . begin ( ) - > first ; //we want lowest ID here
bool undergroundFlag = false ;
2014-10-31 14:37:23 +02:00
std : : vector < float > totalSize = { 0 , 0 } ; //make sure that sum of zone sizes on surface and uderground match size of the map
2014-12-23 14:49:07 +02:00
const float radius = 0.4f ;
const float pi2 = 6.28f ;
2014-07-06 11:43:30 +03:00
for ( auto zone : zonesVector )
2014-05-24 13:42:06 +03:00
{
2014-07-06 11:43:30 +03:00
//even distribution for surface / underground zones. Surface zones always have priority.
2014-07-03 13:28:51 +03:00
int level = 0 ;
2014-07-06 11:43:30 +03:00
if ( underground ) //only then consider underground zones
{
if ( zone . first = = firstZone )
{
level = 0 ;
}
else
{
level = undergroundFlag ;
undergroundFlag = ! undergroundFlag ; //toggle underground on/off
}
}
2014-07-03 13:28:51 +03:00
2014-10-31 14:37:23 +02:00
totalSize [ level ] + = ( zone . second - > getSize ( ) * zone . second - > getSize ( ) ) ;
2014-12-23 14:49:07 +02:00
float randomAngle = rand - > nextDouble ( 0 , pi2 ) ;
zone . second - > setCenter ( float3 ( 0.5f + std : : sin ( randomAngle ) * radius , 0.5f + std : : cos ( randomAngle ) * radius , level ) ) ; //place zones around circle
2014-05-24 13:42:06 +03:00
}
//prescale zones
2014-10-31 14:37:23 +02:00
std : : vector < float > prescaler = { 0 , 0 } ;
for ( int i = 0 ; i < 2 ; i + + )
prescaler [ i ] = sqrt ( ( width * height ) / ( totalSize [ i ] * 3.14f ) ) ;
2014-05-24 13:42:06 +03:00
float mapSize = sqrt ( width * height ) ;
for ( auto zone : zones )
{
2014-10-31 14:37:23 +02:00
zone . second - > setSize ( zone . second - > getSize ( ) * prescaler [ zone . second - > getCenter ( ) . z ] ) ;
2014-05-24 13:42:06 +03:00
}
2014-05-24 23:10:46 +03:00
//gravity-based algorithm. connected zones attract, intersceting zones and map boundaries push back
2014-12-22 22:33:37 +02:00
//remember best solution
float bestTotalDistance = 1e10 ;
2014-12-23 00:35:19 +02:00
float bestTotalOverlap = 1e10 ;
//float bestRatio = 1e10;
2014-12-22 22:33:37 +02:00
std : : map < CRmgTemplateZone * , float3 > bestSolution ;
2014-12-23 00:35:19 +02:00
const int maxDistanceMovementRatio = zones . size ( ) * zones . size ( ) ; //experimental - the more zones, the greater total distance expected
2014-05-24 23:10:46 +03:00
auto getDistance = [ ] ( float distance ) - > float
{
return ( distance ? distance * distance : 1e-6 ) ;
} ;
std : : map < CRmgTemplateZone * , float3 > forces ;
2014-10-31 13:58:55 +02:00
std : : map < CRmgTemplateZone * , float > distances ;
2014-12-23 00:35:19 +02:00
std : : map < CRmgTemplateZone * , float > overlaps ;
2014-07-26 11:02:33 +03:00
while ( zoneScale < 1 ) //until zones reach their desired size and fill the map tightly
2014-05-24 13:42:06 +03:00
{
for ( auto zone : zones )
{
2014-05-24 23:10:46 +03:00
float3 forceVector ( 0 , 0 , 0 ) ;
float3 pos = zone . second - > getCenter ( ) ;
2014-10-31 13:58:55 +02:00
float totalDistance = 0 ;
2014-05-24 23:10:46 +03:00
2014-05-24 13:42:06 +03:00
//attract connected zones
for ( auto con : zone . second - > getConnections ( ) )
{
auto otherZone = zones [ con ] ;
2014-07-04 10:54:55 +03:00
float3 otherZoneCenter = otherZone - > getCenter ( ) ;
float distance = pos . dist2d ( otherZoneCenter ) ;
2014-07-26 11:02:33 +03:00
float minDistance = ( zone . second - > getSize ( ) + otherZone - > getSize ( ) ) / mapSize * zoneScale ; //scale down to (0,1) coordinates
2014-05-24 13:42:06 +03:00
if ( distance > minDistance )
{
2014-07-04 19:50:29 +03:00
//WARNING: compiler used to 'optimize' that line so it never actually worked
2014-12-23 14:49:07 +02:00
forceVector + = ( ( ( otherZoneCenter - pos ) * ( pos . z = = otherZoneCenter . z ? ( minDistance / distance ) : 1 ) / getDistance ( distance ) ) ) * gravityConstant ; //positive value
2014-12-23 00:35:19 +02:00
totalDistance + = ( distance - minDistance ) ;
2014-05-24 13:42:06 +03:00
}
}
2014-10-31 13:58:55 +02:00
distances [ zone . second ] = totalDistance ;
2014-12-23 00:35:19 +02:00
float totalOverlap = 0 ;
2014-05-24 13:42:06 +03:00
//separate overlaping zones
for ( auto otherZone : zones )
{
2014-07-04 10:54:55 +03:00
float3 otherZoneCenter = otherZone . second - > getCenter ( ) ;
2014-07-03 13:28:51 +03:00
//zones on different levels don't push away
2014-07-04 10:54:55 +03:00
if ( zone = = otherZone | | pos . z ! = otherZoneCenter . z )
2014-05-24 13:42:06 +03:00
continue ;
2013-08-17 15:46:48 +03:00
2014-07-04 10:54:55 +03:00
float distance = pos . dist2d ( otherZoneCenter ) ;
2014-07-26 11:02:33 +03:00
float minDistance = ( zone . second - > getSize ( ) + otherZone . second - > getSize ( ) ) / mapSize * zoneScale ;
2014-05-24 13:42:06 +03:00
if ( distance < minDistance )
{
2014-12-23 14:49:07 +02:00
forceVector - = ( ( ( otherZoneCenter - pos ) * ( minDistance / ( distance ? distance : 1e-3 ) ) ) / getDistance ( distance ) ) * stiffnessConstant ; //negative value
2014-12-23 19:16:53 +02:00
totalOverlap + = ( minDistance - distance ) / ( zoneScale * zoneScale ) ; //overlapping of small zones hurts us more
2014-05-24 13:42:06 +03:00
}
}
2014-05-24 23:10:46 +03:00
2014-05-24 19:39:58 +03:00
//move zones away from boundaries
2014-07-26 11:02:33 +03:00
//do not scale boundary distance - zones tend to get squashed
2014-05-24 19:39:58 +03:00
float size = zone . second - > getSize ( ) / mapSize ;
2014-07-04 19:50:29 +03:00
2014-12-23 19:16:53 +02:00
auto pushAwayFromBoundary = [ & forceVector , pos , & getDistance , size , stiffnessConstant , & totalOverlap ] ( float x , float y )
2014-05-24 19:39:58 +03:00
{
2014-07-04 19:50:29 +03:00
float3 boundary = float3 ( x , y , pos . z ) ;
2014-05-24 23:10:46 +03:00
float distance = pos . dist2d ( boundary ) ;
2014-12-23 19:16:53 +02:00
totalOverlap + = distance ; //overlapping map boundaries is wrong as well
2014-12-23 14:49:07 +02:00
forceVector - = ( boundary - pos ) * ( size - distance ) / getDistance ( distance ) * stiffnessConstant ; //negative value
2014-07-04 19:50:29 +03:00
} ;
if ( pos . x < size )
{
pushAwayFromBoundary ( 0 , pos . y ) ;
2014-05-24 19:39:58 +03:00
}
2014-05-24 23:10:46 +03:00
if ( pos . x > 1 - size )
2014-05-24 19:39:58 +03:00
{
2014-07-04 19:50:29 +03:00
pushAwayFromBoundary ( 1 , pos . y ) ;
2014-05-24 19:39:58 +03:00
}
2014-05-24 23:10:46 +03:00
if ( pos . y < size )
2014-05-24 19:39:58 +03:00
{
2014-07-04 19:50:29 +03:00
pushAwayFromBoundary ( pos . x , 0 ) ;
2014-05-24 19:39:58 +03:00
}
2014-05-24 23:10:46 +03:00
if ( pos . y > 1 - size )
2014-05-24 19:39:58 +03:00
{
2014-07-04 19:50:29 +03:00
pushAwayFromBoundary ( pos . x , 1 ) ;
2014-05-24 19:39:58 +03:00
}
2014-12-23 19:16:53 +02:00
overlaps [ zone . second ] = totalOverlap ;
2014-07-03 13:28:51 +03:00
forceVector . z = 0 ; //operator - doesn't preserve z coordinate :/
2014-12-23 14:49:07 +02:00
forces [ zone . second ] = forceVector ;
2014-05-24 23:10:46 +03:00
}
//update positions
for ( auto zone : forces )
{
2014-07-04 19:50:29 +03:00
zone . first - > setCenter ( zone . first - > getCenter ( ) + zone . second ) ;
2014-05-24 19:39:58 +03:00
}
2014-10-31 13:58:55 +02:00
//now perform drastic movement of zone that is completely not linked
float maxRatio = 0 ;
2014-12-23 12:39:41 +02:00
CRmgTemplateZone * misplacedZone = nullptr ;
2014-10-31 13:58:55 +02:00
float totalDistance = 0 ;
2014-12-23 00:35:19 +02:00
float totalOverlap = 0 ;
2014-10-31 13:58:55 +02:00
for ( auto zone : distances ) //find most misplaced zone
{
totalDistance + = zone . second ;
2014-12-23 11:42:01 +02:00
float overlap = overlaps [ zone . first ] ;
2014-12-23 00:35:19 +02:00
totalOverlap + = overlap ;
float ratio = ( zone . second + overlap ) / forces [ zone . first ] . mag ( ) ; //if distance to actual movement is long, the zone is misplaced
2014-10-31 13:58:55 +02:00
if ( ratio > maxRatio )
{
maxRatio = ratio ;
2014-12-23 12:39:41 +02:00
misplacedZone = zone . first ;
2014-10-31 13:58:55 +02:00
}
}
2014-12-23 00:35:19 +02:00
logGlobal - > traceStream ( ) < < boost : : format ( " Total distance between zones in this iteration: %2.4f, Total overlap: %2.4f, Worst misplacement/movement ratio: %3.2f " ) % totalDistance % totalOverlap % maxRatio ;
2014-12-22 22:47:19 +02:00
//save best solution before drastic jump
2014-12-23 12:39:41 +02:00
if ( totalDistance + totalOverlap < bestTotalDistance + bestTotalOverlap )
2014-12-22 22:47:19 +02:00
{
bestTotalDistance = totalDistance ;
2014-12-23 00:35:19 +02:00
bestTotalOverlap = totalOverlap ;
//if (maxRatio < bestRatio)
//{
// bestRatio = maxRatio;
2014-12-22 22:47:19 +02:00
for ( auto zone : zones )
bestSolution [ zone . second ] = zone . second - > getCenter ( ) ;
}
2014-10-31 13:58:55 +02:00
2014-12-23 00:35:19 +02:00
if ( maxRatio > maxDistanceMovementRatio )
2014-10-31 13:58:55 +02:00
{
CRmgTemplateZone * targetZone = nullptr ;
2014-12-23 12:39:41 +02:00
float3 ourCenter = misplacedZone - > getCenter ( ) ;
if ( totalDistance > totalOverlap )
2014-10-31 13:58:55 +02:00
{
2014-12-23 12:39:41 +02:00
//find most distant zone that should be attracted and move inside it
float maxDistance = 0 ;
for ( auto con : misplacedZone - > getConnections ( ) )
2014-10-31 13:58:55 +02:00
{
2014-12-23 12:39:41 +02:00
auto otherZone = zones [ con ] ;
float distance = otherZone - > getCenter ( ) . dist2dSQ ( ourCenter ) ;
if ( distance > maxDistance )
{
maxDistance = distance ;
targetZone = otherZone ;
}
2014-10-31 13:58:55 +02:00
}
2014-12-23 12:39:41 +02:00
float3 vec = targetZone - > getCenter ( ) - ourCenter ;
float newDistanceBetweenZones = ( std : : max ( misplacedZone - > getSize ( ) , targetZone - > getSize ( ) ) ) * zoneScale / mapSize ;
logGlobal - > traceStream ( ) < < boost : : format ( " Trying to move zone %d %s towards %d %s. Old distance %f " ) %
misplacedZone - > getId ( ) % ourCenter ( ) % targetZone - > getId ( ) % targetZone - > getCenter ( ) ( ) % maxDistance ;
logGlobal - > traceStream ( ) < < boost : : format ( " direction is %s " ) % vec ( ) ;
misplacedZone - > setCenter ( targetZone - > getCenter ( ) - vec . unitVector ( ) * newDistanceBetweenZones ) ; //zones should now overlap by half size
logGlobal - > traceStream ( ) < < boost : : format ( " New distance %f " ) % targetZone - > getCenter ( ) . dist2d ( misplacedZone - > getCenter ( ) ) ;
2014-10-31 13:58:55 +02:00
}
2014-12-23 12:39:41 +02:00
else
{
float maxOverlap = 0 ;
for ( auto otherZone : zones )
{
float3 otherZoneCenter = otherZone . second - > getCenter ( ) ;
2014-10-31 13:58:55 +02:00
2014-12-23 12:39:41 +02:00
if ( otherZone . second = = misplacedZone | | otherZoneCenter . z ! = ourCenter . z )
continue ;
2014-12-23 00:35:19 +02:00
2014-12-23 12:39:41 +02:00
float distance = otherZoneCenter . dist2dSQ ( ourCenter ) ;
if ( distance > maxOverlap )
{
maxOverlap = distance ;
targetZone = otherZone . second ;
}
}
float3 vec = ourCenter - targetZone - > getCenter ( ) ;
float newDistanceBetweenZones = ( misplacedZone - > getSize ( ) + targetZone - > getSize ( ) ) * zoneScale / mapSize ;
logGlobal - > traceStream ( ) < < boost : : format ( " Trying to move zone %d %s away from %d %s. Old distance %f " ) %
misplacedZone - > getId ( ) % ourCenter ( ) % targetZone - > getId ( ) % targetZone - > getCenter ( ) ( ) % maxOverlap ;
logGlobal - > traceStream ( ) < < boost : : format ( " direction is %s " ) % vec ( ) ;
misplacedZone - > setCenter ( targetZone - > getCenter ( ) + vec . unitVector ( ) * newDistanceBetweenZones ) ; //zones should now be just separated
logGlobal - > traceStream ( ) < < boost : : format ( " New distance %f " ) % targetZone - > getCenter ( ) . dist2d ( misplacedZone - > getCenter ( ) ) ;
}
2014-10-31 13:58:55 +02:00
}
zoneScale * = inflateModifier ; //increase size of zones so they
2014-05-24 13:42:06 +03:00
}
2014-12-23 00:35:19 +02:00
logGlobal - > traceStream ( ) < < boost : : format ( " Best fitness reached: total distance %2.4f, total overlap %2.4f " ) % bestTotalDistance % bestTotalOverlap ;
2014-05-24 13:42:06 +03:00
for ( auto zone : zones ) //finalize zone positions
{
2014-12-22 22:33:37 +02:00
zone . second - > setPos ( cords ( bestSolution [ zone . second ] ) ) ;
2014-11-01 10:52:56 +02:00
logGlobal - > traceStream ( ) < < boost : : format ( " Placed zone %d at relative position %s and coordinates %s " ) % zone . first % zone . second - > getCenter ( ) % zone . second - > getPos ( ) ;
2014-05-24 13:42:06 +03:00
}
2013-08-17 15:46:48 +03:00
}
2014-05-24 15:06:08 +03:00
2014-05-25 12:02:15 +03:00
float CZonePlacer : : metric ( const int3 & A , const int3 & B ) const
2014-05-24 15:06:08 +03:00
{
/*
Matlab code
dx = abs ( A ( 1 ) - B ( 1 ) ) ; % distance must be symmetric
dy = abs ( A ( 2 ) - B ( 2 ) ) ;
2014-05-25 14:30:47 +03:00
d = 0.01 * dx ^ 3 - 0.1618 * dx ^ 2 + 1 * dx + . . .
0.01618 * dy ^ 3 + 0.1 * dy ^ 2 + 0.168 * dy ;
2014-05-24 15:06:08 +03:00
*/
float dx = abs ( A . x - B . x ) * scaleX ;
float dy = abs ( A . y - B . y ) * scaleY ;
//Horner scheme
2014-05-28 22:11:10 +03:00
return dx * ( 1 + dx * ( 0.1 + dx * 0.01 ) ) + dy * ( 1.618 + dy * ( - 0.1618 + dy * 0.01618 ) ) ;
2014-05-24 15:06:08 +03:00
}
2014-07-27 14:59:53 +03:00
void CZonePlacer : : assignZones ( const CMapGenOptions * mapGenOptions )
2014-05-24 15:06:08 +03:00
{
2015-01-16 20:28:27 +02:00
logGlobal - > infoStream ( ) < < " Starting zone colouring " ;
2014-05-24 19:39:58 +03:00
2014-05-24 15:06:08 +03:00
auto width = mapGenOptions - > getWidth ( ) ;
auto height = mapGenOptions - > getHeight ( ) ;
//scale to Medium map to ensure smooth results
scaleX = 72.f / width ;
scaleY = 72.f / height ;
auto zones = gen - > getZones ( ) ;
typedef std : : pair < CRmgTemplateZone * , float > Dpair ;
std : : vector < Dpair > distances ;
distances . reserve ( zones . size ( ) ) ;
2015-01-16 20:28:27 +02:00
//now place zones correctly and assign tiles to each zone
2014-05-24 15:06:08 +03:00
auto compareByDistance = [ ] ( const Dpair & lhs , const Dpair & rhs ) - > bool
{
return lhs . second < rhs . second ;
} ;
2015-01-16 20:28:27 +02:00
auto moveZoneToCenterOfMass = [ ] ( CRmgTemplateZone * zone ) - > void
{
int3 total ( 0 , 0 , 0 ) ;
auto tiles = zone - > getTileInfo ( ) ;
for ( auto tile : tiles )
{
total + = tile ;
}
int size = tiles . size ( ) ;
assert ( size ) ;
zone - > setPos ( int3 ( total . x / size , total . y / size , total . z / size ) ) ;
} ;
2014-05-24 15:06:08 +03:00
int levels = gen - > map - > twoLevel ? 2 : 1 ;
2015-01-16 20:28:27 +02:00
/*
1. Create Voronoi diagram
2. find current center of mass for each zone . Move zone to that center to balance zones sizes
*/
for ( int i = 0 ; i < width ; i + + )
{
for ( int j = 0 ; j < height ; j + + )
{
for ( int k = 0 ; k < levels ; k + + )
{
distances . clear ( ) ;
int3 pos ( i , j , k ) ;
for ( auto zone : zones )
{
if ( zone . second - > getPos ( ) . z = = k )
distances . push_back ( std : : make_pair ( zone . second , pos . dist2dSQ ( zone . second - > getPos ( ) ) ) ) ;
else
distances . push_back ( std : : make_pair ( zone . second , std : : numeric_limits < float > : : max ( ) ) ) ;
}
boost : : sort ( distances , compareByDistance ) ;
distances . front ( ) . first - > addTile ( pos ) ; //closest tile belongs to zone
}
}
}
for ( auto zone : zones )
moveZoneToCenterOfMass ( zone . second ) ;
//assign actual tiles to each zone using nonlinear norm for fine edges
for ( auto zone : zones )
zone . second - > clearTiles ( ) ; //now populate them again
2014-05-24 15:06:08 +03:00
for ( int i = 0 ; i < width ; i + + )
{
for ( int j = 0 ; j < height ; j + + )
{
for ( int k = 0 ; k < levels ; k + + )
{
distances . clear ( ) ;
int3 pos ( i , j , k ) ;
for ( auto zone : zones )
{
2014-07-03 13:28:51 +03:00
if ( zone . second - > getPos ( ) . z = = k )
distances . push_back ( std : : make_pair ( zone . second , metric ( pos , zone . second - > getPos ( ) ) ) ) ;
else
distances . push_back ( std : : make_pair ( zone . second , std : : numeric_limits < float > : : max ( ) ) ) ;
2014-05-24 15:06:08 +03:00
}
boost : : sort ( distances , compareByDistance ) ;
distances . front ( ) . first - > addTile ( pos ) ; //closest tile belongs to zone
}
}
}
2015-01-16 20:28:27 +02:00
//set position (town position) to center of mass of irregular zone
2014-06-01 22:01:18 +03:00
for ( auto zone : zones )
{
2015-01-16 20:28:27 +02:00
moveZoneToCenterOfMass ( zone . second ) ;
2014-07-03 13:28:51 +03:00
//TODO: similiar for islands
2014-10-31 19:47:10 +02:00
# define CREATE_FULL_UNDERGROUND true //consider linking this with water amount
2014-07-03 13:28:51 +03:00
if ( zone . second - > getPos ( ) . z )
2014-07-03 18:24:28 +03:00
{
2014-10-31 19:47:10 +02:00
if ( ! CREATE_FULL_UNDERGROUND )
zone . second - > discardDistantTiles ( gen , zone . second - > getSize ( ) + 1 ) ;
2014-07-03 18:24:28 +03:00
//make sure that terrain inside zone is not a rock
//FIXME: reorder actions?
zone . second - > paintZoneTerrain ( gen , ETerrainType : : SUBTERRANEAN ) ;
}
2014-06-01 22:01:18 +03:00
}
2014-05-24 19:39:58 +03:00
logGlobal - > infoStream ( ) < < " Finished zone colouring " ;
2014-05-24 15:06:08 +03:00
}