2using System.Collections.Generic;
3using System.Runtime.InteropServices;
138 [DllImport(
"KERNEL32.DLL", EntryPoint =
"RtlZeroMemory")]
139 public unsafe
static extern bool ZeroMemory(
byte* destination,
int length);
160 if (path.
nodes.Count > 0)
168 if (path.
nodes.Count == 0)
174 path.nodeIndex = path.nodes.Count - 1;
195 Debug.Log(
"length over");
238 for (
int i = 0; i < (
Diagonals ? 8 : 4); i++)
343 int num5 = startPoint.x - destPoint.
x;
344 int num6 = startPoint.z - destPoint.
z;
345 int num7 = Math.Abs(num3 * num6 - num5 * num4);
346 mH = (int)((
double)
mH + (double)num7 * 0.001);
362 item.G = pathFinderNodeFast.
G;
363 item.PX = pathFinderNodeFast.
PX;
364 item.PZ = pathFinderNodeFast.
PZ;
365 item.X = destPoint.
x;
366 item.Z = destPoint.
z;
373 item.G = pathFinderNodeFast.
G;
374 item.PX = pathFinderNodeFast.
PX;
375 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()