anchor.diff:      function VertexUsageCompatible(const LocFrom, LocTo: TKMPoint): Boolean;
       function GetVertexUsageType(const LocFrom, LocTo: TKMPoint): TKMVertexUsage;
   
  -    function CoordsWithinMap(X, Y: Single; aInset: Byte = 0): Boolean;
  -    function PointFInMapCoords(const aPointF: TKMPointF; aInset: Byte = 0): Boolean;
  -    function TileInMapCoords(X, Y: Integer; Inset: Byte = 0): Boolean; overload;
  -    function TileInMapCoords(const aCell: TKMPoint; Inset: Byte = 0): Boolean; overload;
  -    function TileInMapCoords(X,Y: Integer; InsetRect: TKMRect): Boolean; overload;
  -    function VerticeInMapCoords(X, Y: Integer; Inset: Byte = 0): Boolean; overload;
  -    function VerticeInMapCoords(const aCell: TKMPoint; Inset: Byte = 0): Boolean; overload;
  -    procedure EnsureCoordsWithinMap(var X, Y: Single; aInset: Byte = 0);
  -    function EnsureTilesRectWithinMap(const aRectF: TKMRectF; aInset: Single = 0): TKMRectF;
  -    function EnsureVerticesRectWithinMap(const aRectF: TKMRectF; aInset: Single = 0): TKMRectF;
  -    function EnsureTileInMapCoords(X, Y: Integer; aInset: Byte = 0): TKMPoint; overload;
  -    function EnsureTileInMapCoords(const aLoc: TKMPoint; aInset: Byte = 0): TKMPoint; overload;
  +    function CoordsWithinMap(X, Y: Single; aInset: Byte = 0): Boolean; inline;
  +    function PointFInMapCoords(const aPointF: TKMPointF; aInset: Byte = 0): Boolean; inline;
  +    function TileInMapCoords(X, Y: Integer; Inset: Byte = 0): Boolean; overload; inline;
  +    function TileInMapCoords(const aCell: TKMPoint; Inset: Byte = 0): Boolean; overload; inline;
  +    function TileInMapCoords(X,Y: Integer; InsetRect: TKMRect): Boolean; overload; inline;
  +    function VerticeInMapCoords(X, Y: Integer; Inset: Byte = 0): Boolean; overload; inline;
  +    function VerticeInMapCoords(const aCell: TKMPoint; Inset: Byte = 0): Boolean; overload; inline;
  +    procedure EnsureCoordsWithinMap(var X, Y: Single; aInset: Byte = 0); inline;
  +    function EnsureTilesRectWithinMap(const aRectF: TKMRectF; aInset: Single = 0): TKMRectF; inline;
  +    function EnsureVerticesRectWithinMap(const aRectF: TKMRectF; aInset: Single = 0): TKMRectF; inline;
  +    function EnsureTileInMapCoords(X, Y: Integer; aInset: Byte = 0): TKMPoint; overload; inline;
  +    function EnsureTileInMapCoords(const aLoc: TKMPoint; aInset: Byte = 0): TKMPoint; overload; inline;
   
       function TileGoodForIronMine(X, Y: Word): Boolean;
       function TileGoodForGoldmine(X, Y: Word): Boolean;
       function TileGoodForField(X, Y: Word): Boolean;
       function TileGoodToPlantTree(X, Y: Word): Boolean;
  -    function TileIsWater(const Loc: TKMPoint): Boolean; overload;
  -    function TileIsWater(X, Y: Word): Boolean; overload;
  -    function TileIsStone(X, Y: Word): Byte;
  -    function TileIsSnow(X, Y: Word): Boolean;
  -    function TileIsCoal(X, Y: Word): Byte;
  -    function TileIsIron(X, Y: Word): Byte;
  -    function TileIsGold(X, Y: Word): Byte;
  +    function TileIsWater(const Loc: TKMPoint): Boolean; overload; inline;
  +    function TileIsWater(X, Y: Word): Boolean; overload; inline;
  +    function TileIsStone(X, Y: Word): Byte; inline;
  +    function TileIsSnow(X, Y: Word): Boolean; inline;
  +    function TileIsCoal(X, Y: Word): Byte; inline;
  +    function TileIsIron(X, Y: Word): Byte; inline;
  +    function TileIsGold(X, Y: Word): Byte; inline;
       function TileIsCornField(const Loc: TKMPoint): Boolean;
       function TileIsWineField(const Loc: TKMPoint): Boolean;
       function TileIsWalkableRoad(const Loc: TKMPoint): Boolean;
       function TileIsLocked(const aLoc: TKMPoint): Boolean;
       function TileIsGoodToCutTree(const aLoc: TKMPoint): Boolean;
   
  -    function TileHasStone(X, Y: Word): Boolean;
  -    function TileHasCoal(X, Y: Word): Boolean;
  -    function TileHasIron(X, Y: Word): Boolean;
  -    function TileHasGold(X, Y: Word): Boolean;
  +    function TileHasStone(X, Y: Word): Boolean; inline;
  +    function TileHasCoal(X, Y: Word): Boolean; inline;
  +    function TileHasIron(X, Y: Word): Boolean; inline;
  +    function TileHasGold(X, Y: Word): Boolean; inline;
   
       function TileHasTerrainKindPart(X, Y: Word; aTerKind: TKMTerrainKind): Boolean; overload;
       function TileHasTerrainKindPart(X, Y: Word; aTerKind: TKMTerrainKind; aDir: TKMDirection): Boolean; overload;
  
positive.code: 
      procedure GetVerticeTerKinds(const aLoc: TKMPoint; out aVerticeTerKinds: TKMTerrainKindCorners);
  
      function TileHasRoad(const Loc: TKMPoint): Boolean; overload;
      function TileHasRoad(X,Y: Integer): Boolean; overload;
  
      function UnitsHitTest(X, Y: Word): Pointer;
      function UnitsHitTestF(const aLoc: TKMPointF): Pointer;
  
negative.code: 
      function TileTryGetTerKind(X, Y: Word; var aTerKind: TKMTerrainKind): Boolean;
  
      function TileIsSand(const Loc: TKMPoint): Boolean; inline;
      function TileIsSoil(X,Y: Word): Boolean; overload; inline;
      function TileIsSoil(const Loc: TKMPoint): Boolean; overload; inline;
      function TileIsIce(X, Y: Word): Boolean; inline;
      function TileHasWater(X, Y: Word): Boolean; inline;
      function VerticeIsFactorable(const Loc: TKMPoint): Boolean;
      function TileIsWalkable(const Loc: TKMPoint): Boolean; inline;
      function TileIsRoadable(const Loc: TKMPoint): Boolean; inline;
  
      function TileCornerTerrain(aX, aY: Word; aCorner: Byte): Word;
      function TileCornersTerrains(aX, aY: Word): TKMWordArray;
  