Exemple #1
0
        //functions


        public void GeneratePlayerStarterPokemon(int UserInput, Trainer Player)
        {
            Pokemon Starter;// = new Pokemon();

            while (UserInput == 1 || UserInput == 2 || UserInput == 3)
            {
                if (UserInput == 1)
                {
                    Starter   = new Bulbasaur();
                    UserInput = 0;
                }
                else if (UserInput == 2)
                {
                    Starter   = new Charmander();
                    UserInput = 0;
                }
                else
                {
                    Starter   = new Squirtle();
                    UserInput = 0;
                }
                Starter.level               = 5;
                Starter.maxHealthPoints     = Starter.level * 5;
                Starter.currentHealthPoints = Starter.maxHealthPoints;
                Player.partyList.Add(Starter);
            }
            //return Starter;
        }
Exemple #2
0
 //functions
 public void RivalStarterSelectionLogic(List <Pokemon> PlayerPartyList, Pokemon Starter)
 {
     if (PlayerPartyList[0].species.Equals("Bulbasaur"))
     {
         Starter = new Charmander();
     }
     else if (PlayerPartyList[0].species.Equals("Charmander"))
     {
         Starter = new Squirtle();
     }
     else
     {
         Starter = new Bulbasaur();
     }
 }
Exemple #3
0
 public void GenerateRivalStarterPokemon(List <Pokemon> PlayerPartyList, Pokemon Starter, Trainer Rival)
 {
     if (PlayerPartyList[0].species.Equals("Bulbasaur"))
     {
         Starter = new Charmander();
     }
     else if (PlayerPartyList[0].species.Equals("Charmander"))
     {
         Starter = new Squirtle();
     }
     else
     {
         Starter = new Bulbasaur();
     }
     Starter.level               = 5;
     Starter.maxHealthPoints     = Starter.level * 5;
     Starter.currentHealthPoints = Starter.maxHealthPoints;
     Rival.partyList.Add(Starter);
 }