Пример #1
0
        public void DrawUpdate()
        {
            _map.PrintMap();
            _map.GetVillage.DrawCastle();
            _map.GetVillage.DrawBuilding();
            _map.GetVillage.WallRenderer();

            if (_map.BarbCount > 0)
            {
                for (int i = 0; i < _map.BarbCount; i++)
                {
                    _map.BarList[i].Update();
                }
            }

            if (_map.BuildCount > 0)
            {
                for (int i = 0; i < _map.BuildCount; i++)
                {
                    _map.BuildList[i].Update();
                }
            }

            _map.ZoneReveal();
            _map.PrintMist();
            _window.PrintCursor();
            _event.Update();
            //UI
            if (_turn == "PlayerTurn")
            {
                if (_menu.IsOpen)
                {
                    _menu.UpdateList();
                    _menu.DrawMenu();
                }
                else
                {
                    _menu.MenuDesc();
                }
                _menu.UpdateTopBar();
            }
            if (_animationSwitch == true && _turn == "WaveTurn")
            {
                _manager.Play("I", "Dracula Turn", new Color(235, 7, 7));
                _animationSwitch = false;
                _sprites.Music(1).Play();
                _isPlayMusic = true;
            }
            if (!_pause)
            {
                _map.SamouraïDeCoke();
                if (_menuSaveOpen)
                {
                    _stopMenu.Update(_menuSaveOpen);
                }
                else
                {
                    _stopMenu.Update(_menuSaveOpen);
                }
                // Draw menu
            }
        }