예제 #1
0
 /// <summary>
 /// Метод создает оружие в награду за убийство монстра
 /// </summary>
 /// <param name="game"></param>
 /// <returns></returns>
 public Weapon CastLoot(Game game)
 {
     return new WeaponSelector().Generate("Any", game);
 }
예제 #2
0
파일: Form1.cs 프로젝트: Vaysman/Nightmare
        /// <summary>
        /// Создание новой игры, ввод и распределение параметров персонажа
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button14_Click(object sender, EventArgs e)
        {
            var newGame = new NewGame(this);
            newGame.Show();

            newGame.Closing += (o, args) => {
                character = new Character();
                character.Player = MainStatistic;

                textBox1.Text = character.Player.Stats[0].ToString();
                textBox2.Text = character.Player.Stats[1].ToString();
                textBox3.Text = character.Player.Stats[2].ToString();
                textBox4.Text = character.Player.Stats[3].ToString();
                textBox5.Text = character.Player.Stats[4].ToString();
                textBox6.Text = character.Player.Stats[5].ToString();
                textBox7.Text = character.Player.Stats[6].ToString();

                PlayerClass.Text = character.Player.Class;

                game = new Game();
                game.LevelUp(character, this);
            };
        }