AStar寻路算法(有图形界面)

上传者: bloodhawk | 上传时间: 2019-12-21 19:29:11 | 文件大小: 82KB | 文件类型: zip
实现了A*寻路算法,用Win32 GDI绘制的图形界面进行展示。算法部分与界面展示部分进行了良好的分离,便于将算法应用到其它GUI框架上。 程序运行时鼠标左键双击设定目标点即开始寻路,并将结果动态展示出来。程序设定了全局的定时器,每25毫秒一刷新。 地图文件为bin\2.map,可自行编辑,0是空地,1表示障碍物。

文件下载

资源详情

[{"title":"( 26 个子文件 82KB ) AStar寻路算法(有图形界面)","children":[{"title":"bin","children":[{"title":"2.map <span style='color:#111;'> 15.78KB </span>","children":null,"spread":false},{"title":"AStarPath.exe <span style='color:#111;'> 107.00KB </span>","children":null,"spread":false},{"title":"AStarPathd.exe <span style='color:#111;'> 176.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"resource","children":[{"title":"small.ico <span style='color:#111;'> 23.01KB </span>","children":null,"spread":false},{"title":"AStarPath.rc <span style='color:#111;'> 7.24KB </span>","children":null,"spread":false},{"title":"AStarPath.ico <span style='color:#111;'> 23.01KB </span>","children":null,"spread":false}],"spread":true},{"title":"project","children":[{"title":"AStarPath.vcxproj <span style='color:#111;'> 5.49KB </span>","children":null,"spread":false},{"title":"AStarPath.vcxproj.filters <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false},{"title":"AStarPath.sln <span style='color:#111;'> 884B </span>","children":null,"spread":false},{"title":"AStarPath.vcxproj.user <span style='color:#111;'> 143B </span>","children":null,"spread":false}],"spread":true},{"title":"source","children":[{"title":"PerformaceTimer.cpp <span style='color:#111;'> 627B </span>","children":null,"spread":false},{"title":"AStarPath.cpp <span style='color:#111;'> 6.75KB </span>","children":null,"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 214B </span>","children":null,"spread":false},{"title":"PathFinder.h <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"Map.cpp <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"GameObject.cpp <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 529B </span>","children":null,"spread":false},{"title":"PathFinder.cpp <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 236B </span>","children":null,"spread":false},{"title":"Map.h <span style='color:#111;'> 614B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false},{"title":"GameObject.h <span style='color:#111;'> 560B </span>","children":null,"spread":false},{"title":"AStarPath.h <span style='color:#111;'> 39B </span>","children":null,"spread":false},{"title":"FFBinaryHeap.h <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"FFOpenList.h <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"PerformaceTimer.h <span style='color:#111;'> 303B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • anglegou :
    操作很方便,值得参考
    2015-05-12
  • 心不动不痛 :
    有参考价值
    2014-12-05

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明