Esempio n. 1
0
        /// <summary>
        /// ダメージ計算テスト
        /// </summary>
        public void DamageTest()
        {
            var damageCalculator = new DamageCalculator();

            damageCalculator
            .AttackPokemon(new PokemonInformation()
            {
                Name      = "ガブリアス",
                Level     = 50,
                Parameter = new ParameterData <int>()
                {
                    Attack = 182,
                },
                Ability = DataBaseService.DataBase.FindAbility("すながくれ"),
                Type1   = DataBaseService.DataBase.FindType("ドラゴン"),
                Type2   = DataBaseService.DataBase.FindType("じめん"),
            })
            .DefencePokemon(new PokemonInformation()
            {
                Level     = 50,
                Parameter = new ParameterData <int>()
                {
                    Defense = 189,
                },
                Ability = DataBaseService.DataBase.FindAbility("ふゆう"),
                Type1   = DataBaseService.DataBase.FindType("エスパー"),
            })
            .Weather(WeatherType.Rock)
            .Move(new MoveData()
            {
                Name  = "ストーンエッジ",
                Power = 100,
                Type  = "いわ",
            });

            var result = damageCalculator.Calc();
        }