(**************************************************************************************************
  TLegendMap(λPathFind.pas)÷
  1FLegendMap:=TLegendMap.Create;
     FLegendMap.LoadMap('mapfile')صͼTMapData
     FLegendMap.SetStartPos(StartX, StartY,PathSpace)
     Path:=FLegendMap.FindPath(StopX, StopY)
  2FLegendMap:=TLegendMap.Create;
     FLegendMap.LoadMap('mapfile')صͼTMapData
     Path:=FLegendMap.FindPath(StartX,StartY,StopX, StopY,PathSpace)

     
     PathΪTPath = array of TPoint Ϊnilʱʾܵ
     һֵΪ㣬һֵΪյ

     PathSpaceΪ뿪ϰٸ
**************************************************************************************************)

(**************************************************************************************************
  TPathMapص
  1ҪݵͼݣʡڴƵ
  2ԶۺԼҪͬ·

  TPathMap÷
  1ۺMovingCost(X, Y, Direction: Integer)
     ֻԶĵͼʽд)
  2FPathMap:=TPathMap.Create;
     FPathMap.MakePathMap(MapHeader.width, MapHeader.height, StartX, StartY,MovingCost);
     Path:=FPathMap.FindPathOnMap( EndX, EndY)
     PathΪTPath = array of TPoint;

  ϲTPathMapⲿۺɼ̳TPathMap
  ͼݵĶȡ͹ۺװһʹá
****************************************************************************************************)
