示例#1
0
        protected override void Initialize()
        {
            _spriteBatch = new SpriteBatch(GraphicsDevice);
            Services.AddService(typeof(SpriteBatch), _spriteBatch);

            _map = new Map(7, 7, 90, this);
            _aStar = new AStar(_map);

            Components.Add(_map);

            base.Initialize();
        }
示例#2
0
 public AStarPathFinder(Map map)
 {
     _map = map;
 }
示例#3
0
 public AStar(Map map)
 {
     _map = map;
 }