|
@@ -34,14 +34,14 @@
|
|
|
#include "../../lib/mapping/CMapDefines.h"
|
|
|
#include "../../lib/pathfinder/CGPathNode.h"
|
|
|
|
|
|
-struct neighbourTilesInfo
|
|
|
+struct NeighborTilesInfo
|
|
|
{
|
|
|
//567
|
|
|
//3 4
|
|
|
//012
|
|
|
std::bitset<8> d;
|
|
|
|
|
|
- neighbourTilesInfo(IMapRendererContext & context, const int3 & pos)
|
|
|
+ NeighborTilesInfo(IMapRendererContext & context, const int3 & pos)
|
|
|
{
|
|
|
auto checkTile = [&](int dx, int dy)
|
|
|
{
|
|
@@ -340,9 +340,9 @@ void MapRendererFow::renderTile(IMapRendererContext & context, Canvas & target,
|
|
|
{
|
|
|
assert(!context.isVisible(coordinates));
|
|
|
|
|
|
- const neighbourTilesInfo neighbourInfo(context, coordinates);
|
|
|
+ const NeighborTilesInfo neighborInfo(context, coordinates);
|
|
|
|
|
|
- int retBitmapID = neighbourInfo.getBitmapID(); // >=0 -> partial hide, <0 - full hide
|
|
|
+ int retBitmapID = neighborInfo.getBitmapID(); // >=0 -> partial hide, <0 - full hide
|
|
|
if(retBitmapID < 0)
|
|
|
{
|
|
|
// generate a number that is predefined for each tile,
|
|
@@ -367,8 +367,8 @@ uint8_t MapRendererFow::checksum(IMapRendererContext & context, const int3 & coo
|
|
|
if (context.showSpellRange(coordinates))
|
|
|
return 0xff - 2;
|
|
|
|
|
|
- const neighbourTilesInfo neighbourInfo(context, coordinates);
|
|
|
- int retBitmapID = neighbourInfo.getBitmapID();
|
|
|
+ const NeighborTilesInfo neighborInfo(context, coordinates);
|
|
|
+ int retBitmapID = neighborInfo.getBitmapID();
|
|
|
if(retBitmapID < 0)
|
|
|
return 0xff - 1;
|
|
|
return retBitmapID;
|
|
@@ -738,9 +738,9 @@ MapRenderer::TileChecksum MapRenderer::getTileChecksum(IMapRendererContext & con
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
- const neighbourTilesInfo neighbourInfo(context, coordinates);
|
|
|
+ const NeighborTilesInfo neighborInfo(context, coordinates);
|
|
|
|
|
|
- if(!context.isVisible(coordinates) && neighbourInfo.areAllHidden())
|
|
|
+ if(!context.isVisible(coordinates) && neighborInfo.areAllHidden())
|
|
|
{
|
|
|
result[7] = rendererFow.checksum(context, coordinates);
|
|
|
}
|
|
@@ -769,9 +769,9 @@ void MapRenderer::renderTile(IMapRendererContext & context, Canvas & target, con
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- const neighbourTilesInfo neighbourInfo(context, coordinates);
|
|
|
+ const NeighborTilesInfo neighborInfo(context, coordinates);
|
|
|
|
|
|
- if(!context.isVisible(coordinates) && neighbourInfo.areAllHidden())
|
|
|
+ if(!context.isVisible(coordinates) && neighborInfo.areAllHidden())
|
|
|
{
|
|
|
rendererFow.renderTile(context, target, coordinates);
|
|
|
}
|