Exemple #1
0
        static void Main(string[] args)
        {
            //set in another part of the game
            Trainer player1 = new Trainer();
            Trainer player2 = new Trainer();

            PokeBase pika      = new Pikachu();
            PokeBase bulbasaur = new Bulbasaur();

            player1.SelectCard(pika);


            PokeBase[] cardsToAdd = { pika, bulbasaur };

            player2.SelectCard(cardsToAdd);


            player1.ChoosePokeForBattle(pika);
            player2.ChoosePokeForBattle(bulbasaur);

            //////////////////////////////////////
            //////////////////////////////////////

            Console.WriteLine("The Battle Begins!");
            PokeArena pokeArena = new PokeArena(player1, player2);

            Console.WriteLine(pokeArena.Battle());
            Console.ReadLine();
        }
Exemple #2
0
        static void Main()
        {
            var charmander = new Charmander();
            var bulbasaur  = new Bulbasaur();

            charmander.attack(bulbasaur);
            bulbasaur.attack(charmander);

            Console.ReadLine();
        }
Exemple #3
0
        static void Main(string[] args)
        {
            ConfigurationManager.AppSettings["PokemonName"];
            Pokemon 妙蛙種子 = new Bulbasaur();

            妙蛙種子.飛行();
            妙蛙種子.裝備(new 老鷹果實());
            妙蛙種子.飛行();
            妙蛙種子.脫下裝備();
            妙蛙種子.飛行();
        }
Exemple #4
0
        public static PokemonEngine.Model.Unique.ITrainer ConstructTrainer(String name, int level, int numBulbasaurs)
        {
            List <PokemonEngine.Model.Unique.IPokemon> list = new List <PokemonEngine.Model.Unique.IPokemon>(numBulbasaurs);

            for (int i = 0; i < numBulbasaurs; i++)
            {
                list.Add(Bulbasaur.ConstructSimple(level));
            }
            Party party = new Party(list);

            return(new PokemonEngine.Model.Unique.Trainer(name, party));
        }
Exemple #5
0
    // for player from input , for enemy random
    public Pokemon ChooseStarterPokemon(int _choice)
    {
        PokemonType chosenPokemonType = Choose(/*PokemonType.NonValid,*/ PokemonType.Pikachu, PokemonType.Charmander, PokemonType.Bulbasaur, PokemonType.Squirtle, _choice);

        switch (chosenPokemonType)
        {
        case PokemonType.Bulbasaur:
            Bulbasaur newBulbasaur = new Bulbasaur(20, 100);
            return(newBulbasaur);

        case PokemonType.Charmander:
            Charmander newCharmender = new Charmander(20, 100);
            return(newCharmender);

        case PokemonType.Pikachu:
            Pikachu newPikachu = new Pikachu(20, 100);
            return(newPikachu);

        case PokemonType.Squirtle:
        default:
            Squirtle newSquirtle = new Squirtle(20, 100);
            return(newSquirtle);
        }
    }