Exemplo n.º 1
0
        public virtual void OLDSetEdgeDepths(Positions position, int depth)
        {
            int       depthDelta    = Edge.DepthDelta;
            Locations loc           = label.GetLocation(0, position);
            Positions oppositePos   = Position.Opposite(position);
            Locations oppositeLoc   = label.GetLocation(0, oppositePos);
            int       delta         = Math.Abs(depthDelta) * DirectedEdge.DepthFactor(loc, oppositeLoc);
            int       oppositeDepth = depth + delta;

            SetDepth(position, depth);
            SetDepth(oppositePos, oppositeDepth);
        }