private void Init() { PlayerOne = new Player("AlphaGamer", "john", "doe"); PlayerTwo = new Player("noob69", "brice", "deNice"); PlayerThree = new Player("RandomPlayer", "rogers", "smith"); sharedArmory = new Armory(); }
static void Main(string[] args) { Console.WriteLine("PUYGRENIER Solann - le 4/10/20"); Console.WriteLine("======================"); SpaceInvaders TheBestGame = new SpaceInvaders(); TheBestGame.Main(); TheBestGame.ShowPlayer(); TheBestGame.ShowArmory(); TheBestGame.ShowAllBattleShip(); //Test exception Armory ArmoryForTest = new Armory(); Weapon WeaponForTest = new Weapon(); Console.WriteLine("\nStatement :\n ArmoryForTest.AddWeapon(WeaponForTest)\n ArmoryForTest.AddWeapon(WeaponForTest)"); ArmoryForTest.AddWeapon(WeaponForTest); ArmoryForTest.AddWeapon(WeaponForTest); Console.ReadLine(); }