예제 #1
0
        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();
        }
예제 #2
0
        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;
        }
예제 #3
0
파일: Hud.cs 프로젝트: ggilbert108/ProjectR
 public Hud(Hero hero)
 {
     _hero = hero;
 }