示例#1
0
        public override void Draw(MonoGameRenderer renderer)
        {
            //// draw backdround
            renderer.DrawBattleBackground();
            renderer.DrawBattleMenu();
            renderer.DrawBattleStateButtons();
            renderer.DrawHeroMenuText();
            renderer.DrawEnemyMenuText();

            for (int i = 0; i < renderer.ShieldsCasted.Count; i++)
            {
                if (renderer.ShieldsCasted[i].IsVisible)
                {
                    renderer.ShieldsCasted[i].Draw(EntryPoint.Game.SpriteBatch);
                }
                else
                {
                    renderer.ShieldsCasted.Remove(renderer.ShieldsCasted[i]);
                }
            }

            foreach (var spell in renderer.SpellsCasted)
            {
                spell.Draw(EntryPoint.Game.SpriteBatch);
                spell.Update(renderer.GameTime);
            }

            renderer.DrawHero();
            renderer.DrawEnemyHero();

            renderer.MainHero.Update(renderer);
            renderer.EnemyHero.Update(renderer);

            renderer.DrawSpellInfoWindow();
        }