Ejemplo n.º 1
0
        public MovementPath FindPath(int FromCell, int ToCell)
        {
            SimpleCellInfo class3 = null;

            MapPoint_FromCell = new MapPoint(FromCell);
            MapPoint_ToCell   = new MapPoint(ToCell);
            var item = new SimpleCellInfo(MapPoint_FromCell);

            list_0.Add(item);
Label_00BF:
            class3 = method_0();
            if (class3 != null)
            {
                list_0.Remove(class3);
                list_1.Add(class3);
                if (class3.v_OriginPoint.CellId == ToCell)
                {
                    return(method_3(class3));
                }
                foreach (var point in class3.method_0(IsInFight))
                {
                    if (Convert.ToBoolean(method_2(point.CellId)))
                    {
                        method_1(new SimpleCellInfo(MapData, point, class3, MapPoint_ToCell));
                    }
                }
                goto Label_00BF;
            }
            return(null);
        }
Ejemplo n.º 2
0
        public MovementPath FindPath(int FromCell, int ToCell)
        {
            SimpleCellInfo class3 = null;

            MapPoint_FromCell = new MapPoint(FromCell);
            MapPoint_ToCell   = new MapPoint(ToCell);
            var item = new SimpleCellInfo(MapPoint_FromCell);

            list_0.Add(item);
Label_00BF:
            class3 = method_0();
            if (class3 != null)
            {
                list_0.Remove(class3);
                list_1.Add(class3);
                if (class3.v_OriginPoint.CellId == ToCell)
                {
                    return(method_3(class3));
                }
                //INSTANT C# NOTE: Commented this declaration since looping variables in 'foreach' loops are declared in the 'foreach' header in C#:
                //				MapPoint point = null;
                foreach (var point in class3.method_0(IsInFight))
                {
                    if (Convert.ToBoolean(method_2(point.CellId)))
                    {
                        method_1(new SimpleCellInfo(MapData, point, class3, MapPoint_ToCell));
                    }
                }
                goto Label_00BF;
            }
            return(null);
        }