Esempio n. 1
0
        public void OnNewTurn()
        {
            if (this.InvokeRequired)
            {
                postDelayedEvent(this.OnNewTurn);
                return;
            }

            this.currentPlayerIndex = 0;
            this.galaxyRenderer.SwitchPlayer(this.currentPlayer);

            if (this.currentRenderer == this.combatRenderer || this.currentRenderer == this.bombardRenderer)
            {
                this.nextRenderer = this.galaxyRenderer;

                abilityList.Visible   = false;
                returnButton.Visible  = false;
                unitInfoPanel.Visible = false;
            }

            if (galaxyRenderer != null)
            {
                galaxyRenderer.OnNewTurn();
            }
            if (systemRenderer != null)
            {
                systemRenderer.OnNewTurn();
            }
        }
Esempio n. 2
0
        public void OnNewTurn()
        {
            if (this.InvokeRequired)
            {
                postDelayedEvent(this.OnNewTurn);
                return;
            }

            this.currentPlayerIndex = 0;
            this.galaxyRenderer.SwitchPlayer(this.currentPlayer);

            if (this.currentRenderer == this.combatRenderer || this.currentRenderer == this.bombardRenderer)
            {
                this.nextRenderer = this.galaxyRenderer;
            }

            if (galaxyRenderer != null)
            {
                galaxyRenderer.OnNewTurn();
            }
            if (systemRenderer != null)
            {
                systemRenderer.OnNewTurn();
            }
        }