static void Main(string[] args) { Console.WriteLine("Let's play a Game in the Arena!"); Console.WriteLine(); Knight knight = new Knight(); Assassian assassian = new Assassian(); Monk monk = new Monk(); Warrior warrior = new Warrior(); Dwarf dwarf = new Dwarf(); GameEngine game = new GameEngine(); Print print = new Print(); game.PlayArena(knight, dwarf, print); Console.ReadKey(); }
static void Main(string[] args) { Console.WriteLine("Let's play a Game in the Arena!"); Console.WriteLine(); var gameEngine = new GameEngine(); var printGame = new Service.PrintGame(); Assassian assassian = new Assassian(); Knight knight = new Knight(); Dwarf dwarf = new Dwarf(); gameEngine.GameStart += printGame.PrintStart; gameEngine.AttackAvoided += printGame.AttackAvoided; gameEngine.AttackAbsorbed += printGame.AttackAbsorbed; gameEngine.RoundResult += printGame.RoundResult; gameEngine.DeadHero += printGame.DeadResult; gameEngine.GameEnd += printGame.PrintEnd; gameEngine.PlayArena(knight, dwarf); Console.ReadKey(); }