示例#1
0
        public List <Pair <MTile, int> > GetAoETilesWithDistance(int dist)
        {
            var logic     = new HexTileLogic();
            var pairs     = logic.GetAoETilesWithDistance(dist, this);
            var distTiles = new List <Pair <MTile, int> >();

            foreach (var kvp in pairs)
            {
                distTiles.Add(new Pair <MTile, int>(this.ConvertIHexToMTile(kvp.X), kvp.Y));
            }
            return(distTiles);
        }