Пример #1
0
        /// <summary>
        ///  method called on economy crises
        /// </summary>
        private void OnEconomyCrises()
        {
            // check if game over dialog exist
            if (this._gameOverDialog == null)
            {
                // create game over dialog
                this._gameOverDialog = new GameOver(this._game);

                // show dialog
                this._gameOverDialog.Show();

                // hide current window
                this.Hide();
            }

            // set economy crises information
            this._gameOverDialog.SetInformationEconomyCrises();
        }
Пример #2
0
        /// <summary>
        ///  method called on attack
        /// </summary>
        private void OnAttack()
        {
            // check if game over dialog exist
            if (this._gameOverDialog == null)
            {
                // create game over dialog
                this._gameOverDialog = new GameOver(this._game);

                // show dialog
                this._gameOverDialog.Show();

                // hide current window
                this.Hide();
            }

            // set attack information
            this._gameOverDialog.SetInformationAttack();
        }