Exemple #1
0
        public override void AddLogic()
        {
            PlayerInterfaces player = new PlayerInterfaces("Locke Cole");
            string           name   = player.GetName();

            player.GainExperience(150);
            int current_level = player.GetLevel();

            int current_attack = player.GetWeapon().GetAttackPower();

            Weapon wpn = new Weapon("Lightbringer", 255);

            player.SetWeapon(wpn);
            string current_weapon = player.GetWeapon().GetName();

            current_attack = player.GetWeapon().GetAttackPower();

            player.GainExperience(300);
            current_level = player.GetLevel();
            this.ReturnsAnswer(current_attack.ToString());
            System.Console.WriteLine(this.ReturnCorrect());
        }