internal PathToPlayer( Player player, IMap map, Texture2D sprite ) { _player = player; _map = map; _sprite = sprite; _pathFinder = new PathFinder( map ); }
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"); }
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); }
public PathToPlayer(Player player, IMap map) { _player = player; _map = map; _pathFinder = new PathFinder(map); }
public MovementSystem(IEngine engine) : base(engine) { _pathfinder = new RogueSharp.PathFinder(_map, 1); }