Beispiel #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to Hokeworld! ");

            Hokemon[]    ChallengerArray = new Hokemon[3];
            Battle_Arena firstArena      = new Battle_Arena(); //INSTANTIATED Battle_Arena

            Random rnd = new Random();

            bool   repeatGame;
            string result;

            Hokemon hokeObject01 = new Hokemon();

            hokeObject01.get_details();

            Console.WriteLine("\n*********\n");


            Halor haloHokemon01 = new Halor();

            haloHokemon01.get_details();
            haloHokemon01.about();

            Console.WriteLine("\n*********\n");

            Hystic hystHokemon01 = new Hystic();

            hystHokemon01.get_details();
            hystHokemon01.about();

            Console.WriteLine("\n*********\n");

            // NPC Hokemon

            for (int i = 0; i < ChallengerArray.Length; i++)
            {
                ChallengerArray[i] = new Hokemon(); // INSTATANTIATING Challenger Hokemon
            }


            Battle_Arena firstArena = new Battle_Arena();


            firstArena.Battle(hokeObject01, ChallengerArray[rnd.Next(0, ChallengerArray.Length)]);


            firstArena.ChallengeAccepted(hokeObject01, hystHokemon01); // Passing two objects into
                                                                       // the firstArena
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to the world of Hokemon!!!\n\n");
            Hokemon hoke1 = new Hokemon();

            hoke1.get_details();

            Hokemon hoke2 = new Hokemon();

            hoke2.get_details();

            Halor halor_hoke1 = new Halor();

            halor_hoke1.get_details();

            Hinstinct hinstinct_hoke1 = new Hinstinct();

            hinstinct_hoke1.get_details();

            Hystic hystic_hoke1 = new Hystic();

            hystic_hoke1.get_details();

            hoke1.about();
            halor_hoke1.about();
            hinstinct_hoke1.about();
            hystic_hoke1.about();

            battle_arena arena1 = new battle_arena(); // creating the object of the first arena

            arena1.challenge_request(hoke1);          //argument hoke1 passed into the first arena

            arena1.accept_battle(hoke1, hoke2);

            arena1.battle(hoke1, hoke2);
        }