public Window() { _hero = new Hero(); _level = new Level(_hero, true); _levelView = new LevelView(_level); _hud = new Hud(_hero); DungeonGenerator.generateDungeon(_level, 200, 200); _level.setHeroInLevel(false); _effectView = new EffectView(); _inputManager = new InputManager(); }
public Level(Hero hero, bool isTopLevel) { _tiles = new Dictionary<Location, Tile>(); _actors = new List<Actor>(); _items = new Dictionary<Location, Item>(); _walkables = new Dictionary<Location, Entity>(); _effectQueue = new LinkedList<EffectDescription>(); _actorLocations = new HashSet<Location>(); curActor = 0; upLevel = null; downLevel = null; levelChange = LevelChange.None; _isTopLevel = isTopLevel; _hero = hero; }
public Hud(Hero hero) { _hero = hero; }