Exemplo n.º 1
0
        private List <HexSpriteTileInfo> CalculateTileIndexes()
        {
            int xPos = this.X;
            int yPos = this.Y;

            bool n  = this.NeighborActive_N;
            bool ne = this.NeighborActive_NE;
            bool se = this.NeighborActive_SE;
            bool s  = this.NeighborActive_S;
            bool sw = this.NeighborActive_SW;
            bool nw = this.NeighborActive_NW;

            return(_owner.CalculateHexTiles(
                       n, ne, se, s, sw, nw,
                       hexTileSet
                       ));
        }
Exemplo n.º 2
0
        public List <HexSpriteTileInfo> CalculateCornerIndexes()
        {
            int xPos = this.X;
            int yPos = this.Y;

            var n = this.NeighborActive_N;

            var ne = this.NeighborActive_NE;
            var se = this.NeighborActive_SE;

            var s  = this.NeighborActive_S;
            var sw = this.NeighborActive_SW;

            var nw = this.NeighborActive_NW;

            return(_owner.CalculateHexTiles(
                       n, ne, se, s, sw, nw,
                       hexTileSet
                       ));
        }