static void Main(string[] args) { Mage mage = new Mage(new Vector2D(0, 1), 4); Warrior warrior = new Warrior(new Vector2D(0, 1)); mage.FireStorm(warrior); warrior.BladeFurry(mage); Wolf wolf = new Wolf(new Vector2D(0, 0)); Console.WriteLine("Wolf spawned here: [{0}, {1}]", wolf.Position.X, wolf.Position.Y); wolf.Move(); Console.WriteLine("Wolf moved here: [{0}, {1}]", wolf.Position.X, wolf.Position.Y); Console.WriteLine("Stats of a mage before eating bonuses:"); Console.WriteLine("Speed: {0}", mage.Speed); Console.WriteLine("Health: {0}", mage.Health); Console.WriteLine("Spawning bonuses."); Bonus[] bonuses = { new Cherry(new Vector2D(3, 4), 10), new Cherry(new Vector2D(5, 5), 15), new Apple(new Vector2D(6, 6), 3), new Apple(new Vector2D(7, 7), 6) }; foreach (Bonus b in bonuses) { b.TakeBonus(mage); } Console.WriteLine("Stats of a mage after eating bonuses:"); Console.WriteLine("Speed: {0}", mage.Speed); Console.WriteLine("Health: {0}", mage.Health); }