Esempio n. 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();
        }
Esempio n. 2
0
 public AStarPathFinder(Map map)
 {
     _map = map;
 }
Esempio n. 3
0
 public AStar(Map map)
 {
     _map = map;
 }