2using System.Collections.Generic;
3using System.Runtime.InteropServices;
136 [DllImport(
"KERNEL32.DLL", EntryPoint =
"RtlZeroMemory")]
137 public unsafe
static extern bool ZeroMemory(
byte* destination,
int length);
157 if (path.
nodes.Count > 0)
165 if (path.
nodes.Count == 0)
171 path.nodeIndex = path.nodes.Count - 1;
192 Debug.Log(
"length over");
235 for (
int i = 0; i < (
Diagonals ? 8 : 4); i++)
340 int num5 = startPoint.x - destPoint.
x;
341 int num6 = startPoint.z - destPoint.
z;
342 int num7 = Math.Abs(num3 * num6 - num5 * num4);
343 mH = (int)((
double)
mH + (double)num7 * 0.001);
359 item.G = pathFinderNodeFast.
G;
360 item.PX = pathFinderNodeFast.
PX;
361 item.PZ = pathFinderNodeFast.
PZ;
362 item.X = destPoint.
x;
363 item.Z = destPoint.
z;
370 item.G = pathFinderNodeFast.
G;
371 item.PX = pathFinderNodeFast.
PX;
372 item.PZ = pathFinderNodeFast.
PZ;
ComparePFNodeMatrix(PathFinderNodeFast[] matrix)
int Compare(int a, int b)
PathFinderNodeFast[] mMatrix
void FindPath(PathProgress path)
HeuristicFormula mFormula
PathManager.MoveType moveType
PathFinderNodeFast[] mCalcGrid
PriorityQueueB< int > mOpen
void Init(IPathfindGrid _grid, WeightCell[,] _weightMap, int size)
bool PunishChangeDirection
static unsafe bool ZeroMemory(byte *destination, int length)
void _FindPath(PathProgress path)
PathManager.MoveType moveType
List< PathFinderNode > nodes
override string ToString()