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(); }
public AStarPathFinder(Map map) { _map = map; }
public AStar(Map map) { _map = map; }