Пример #1
0
        public override void AddMainLogic()
        {
            System.Console.WriteLine(ReturnInfo());
            ReturnCode("./TheoreticalInfo/");
            //BA-1 RELATED
            Timer timerInstance = new Timer();

            timerInstance.AddLogic();

            //BA-2 RELATED
            AInstacte aInstance = new AInstacte();

            aInstance.AddLogic();

            //BA-4 RELATED
            DEV4_Int dev4_IntInstance = new DEV4_Int();

            dev4_IntInstance.AddLogic();

            //BA-5 RELATED
            Adventure adventureInstance = new Adventure();

            adventureInstance.AddLogic();

            //BA-6 RELATED
            SciFi scifiInstance = new SciFi();

            scifiInstance.AddLogic();

            //BA-7 RELATED
            PlayerInterfaces playerInterfacesInstance = new PlayerInterfaces();

            playerInterfacesInstance.AddLogic();

            //BA-8 RELATED
            PersonInterfaces2 personInterFaces2Instance = new PersonInterfaces2();

            personInterFaces2Instance.AddLogic();

            //BA-9 RELATED
            AccessModifiers accesModifiersInstance = new AccessModifiers();

            accesModifiersInstance.AddLogic();

            //BA-10 FCKING GOTIT
            Vector2Interfaces vector2InterfacesInstance = new Vector2Interfaces();

            vector2InterfacesInstance.AddLogic();
        }
Пример #2
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());
        }