예제 #1
0
        public override void Run()
        {
            Clear();
            DrawBorder();
            PrintString(1, 16, MasteryDescription);
            PrintString(1, 38,
                        string.Format("Available points to distribute: {0}", Model.PreGameModel.AvailableMasteryPoints));
            RConsole.RootConsole.Blit(this, Bounds, 2, 3);
            var menu = Model.MenuModel.ActiveMenu;

            _menuDrawer.DrawMenuPart(menu, 0, 5, 3, 4, 1);
            _menuDrawer.DrawMenuPart(menu, 6, 14, 3, 43, 1);
            _menuDrawer.DrawMenuPart(menu, 15, 15, 3, 63);

            var character = Model.PreGameModel.Character;

            if (Model.PreGameModel.ShowStats)
            {
                _charDescDrawer.DrawSummary(character);
                _statScreenDrawer.DrawStats(character);
                _normAttackDrawer.DrawSpellDescription(character.Spells[0]);
                _afflictionLister.ListAfflictions(character, Model);
            }
            else
            {
                _spell1Drawer.DrawSpellDescription(character.Spells[2]);
                _spell2Drawer.DrawSpellDescription(character.Spells[3]);
                _spell3Drawer.DrawSpellDescription(character.Spells[4]);
                _spell4Drawer.DrawSpellDescription(character.Spells[5]);
            }
        }
예제 #2
0
        public override void Run()
        {
            _root.SetForegroundColour(TCODColor.white);
            _root.PrintString(22, 52, "Choose target for {0}", Model.BattleModel.TargetInfo.Spell.Name);

            var target = Model.BattleModel.TargetInfo.Target;

            if (Model.BattleModel.CharacterIsEnemy(target))
            {
                _descDrawer.DrawSummary(target);
            }
            else
            {
                _statDrawer.DrawStats(target);
            }

            _afflictionLister.ListAfflictions(target, Model);
        }