示例#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();
        }