Пример #1
0
 internal PathToPlayer( Player player, IMap map, Texture2D sprite )
 {
     _player = player;
      _map = map;
      _sprite = sprite;
      _pathFinder = new PathFinder( map );
 }
Пример #2
0
        public MovementSystem(IEngine engine) : base(engine)
        {
            _pathfinder = new RogueSharp.PathFinder(_map, 1);
            var tm = _engine.GetTileManager();

            _nsOpenDoorGlyph = tm.GetGlyphNumByName("open door NS");
            _ewOpenDoorGlyph = tm.GetGlyphNumByName("open door EW");
        }
Пример #3
0
 private Level(GameWorld world, IMap map, Tilemap tilemap)
 {
     _world = world;
     _map = map;
     Tilemap = tilemap;
     _gameObjects = new List<uint>();
     Width = map.Width;
     Height = map.Height;
     PathFinder = new PathFinder(map);
 }
Пример #4
0
 public PathToPlayer(Player player, IMap map)
 {
     _player = player;
     _map = map;
     _pathFinder = new PathFinder(map);
 }
Пример #5
0
 public MovementSystem(IEngine engine) : base(engine)
 {
     _pathfinder = new RogueSharp.PathFinder(_map, 1);
 }