public void StartBattle() { Pikachu pika = new Pikachu("Pika"); Charmeleon charm = new Charmeleon("Charm"); //eerst valt pika charm aan label1.Text += "\r" + pika.name + " used " + pika.attacks[0].name + "\r" + charm.name + " health: " + charm.health; charm.Attacked(pika.attacks[0]); label1.Text += "\r" + charm.name + " health: " + charm.health; label1.Text += "\r" + charm.name + " used " + charm.attacks[1].name + "\r" + pika.name + " health: " + pika.health; pika.Attacked(charm.attacks[1]); label1.Text += "\r" + pika.name + " health: " + pika.health; }
public Starter() { InitializeComponent(); Pokemon Starter1 = new Pikachu("Pikachu"); SetStarters(Starter1, button1); Pokemon Starter2 = new Charmeleon("Charmeleon"); SetStarters(Starter2, button2); textBox1.Text = "player"; }
static void Main(string[] args) { // create my pokebag Pokebag myPokebag = new Pokebag(); // Create Carl the Pikachu, Charmeleon Hendrick the First etc Pikachu pikachu = new Pikachu("Carl"); Charmeleon charmeleon = new Charmeleon("Hendrick the First"); Charmeleon bro = new Charmeleon("Bro"); Pikachu pikachu2 = new Pikachu(); Console.WriteLine(Pokemon.GetPopulation()); Console.WriteLine(Pokemon.GetAverageHealth()); // yeah it all makes sense trust me Console.WriteLine( pikachu.Attack(pikachu.attacks[0], charmeleon) + charmeleon.Attack(charmeleon.attacks[0], pikachu) + pikachu2.Attack(pikachu2.attacks[0], charmeleon) + charmeleon.Attack(charmeleon.attacks[0], pikachu) + pikachu2.Attack(pikachu2.attacks[0], charmeleon) ); Console.WriteLine(Pokemon.GetPopulation()); Console.WriteLine(Pokemon.GetAverageHealth()); Console.WriteLine( myPokebag.AddPokemonToPokebag(pikachu) + myPokebag.AddPokemonToPokebag(charmeleon) + myPokebag.AddPokemonToPokebag(bro) + myPokebag.GetAllNamesFromPokebag() + myPokebag.RemoveOnePokemonFromPokebag("bro") + myPokebag.RemoveAllPokemonFromList() ); }