예제 #1
0
        public CommonBattleView()
        {
            _frontRowFrames    = new List <ICharBattleFrame>();
            _partyMinionFrames = new List <ICharBattleFrame>();
            _enemyFrames       = new List <ICharBattleFrame>();
            _enemyMinionFrames = new List <ICharBattleFrame>();

            _logDrawer = new BattleLogDrawer();
            _logDrawer.SetPosition(80, 35);

            for (var i = 0; i < 4; ++i)
            {
                _frontRowFrames.Add(CharBattleFrame.CreateFrameForPlayerChar());
                _frontRowFrames[i].SetPosition(FrontRowStart.X + FrameOffset * i, FrontRowStart.Y);

                _enemyFrames.Add(CharBattleFrame.CreateFrameForEnemyChar());
                _enemyFrames[i].SetPosition(EnemyStart.X + FrameOffset * i, EnemyStart.Y);

                if (i > 2)
                {
                    continue;
                }

                _partyMinionFrames.Add(CharBattleFrame.CreateFrameForPlayerChar());
                _partyMinionFrames[i].SetPosition(PartyMinionStart.X + FrameOffset * i, PartyMinionStart.Y);

                _enemyMinionFrames.Add(CharBattleFrame.CreateFrameForEnemyChar());
                _enemyMinionFrames[i].SetPosition(EnemyMinionStart.X + FrameOffset * i, EnemyMinionStart.Y);
            }
        }
예제 #2
0
        public override void InitializeImpl()
        {
            _root = RConsole.RootConsole;
            for (var i = 0; i < 8; ++i)
            {
                var x = StartX + ColOffset * (i % 4);
                var y = StartY + (i < 4 ? 0 : RowOffset);

                _frames.Add(CharBattleFrame.CreateFrameForPlayerChar());
                _frames[i].SetPosition(x, y);
            }
        }