1
using System;
2
using System.Collections.Generic;
3
using System.Text;
4
using System.Drawing;
5
using System.Collections;
6
using Zephyr.WorldModel;
7
using Zephyr.DebugTools;
8
9
namespace Zephyr.Utility
10
这并不是完整的代码,但是通过看以上代码足以了解AStar算法的实现思想。2
3
4
5
6
7
8
9
10
如果你对AStar算法不熟悉,参考一下的网址。适合初学者。
http://www.policyalmanac.org/games/aStarTutorial.htm
同时有中文翻译版:http://blog.csdn.net/johncools/archive/2006/03/13/623076.aspx