Ejemplo n.º 1
0
 public void SpawnAIShips(int number)
 {
     for (int i = 0; i < number; i++)
     {
         string connectionidAI = Guid.NewGuid().ToString();
         ShipAI shipAI         = new ShipAI(RespawnManager.GetRandomStartPosition(), GameHandler.BulletManager, this);
         UserAI userAI         = new UserAI(connectionidAI, shipAI)
         {
             Controller = false
         };
         UserHandler.AddUser(userAI);
         GameHandler.AddShipToGame(shipAI);
     }
 }
Ejemplo n.º 2
0
 public void SpawnAIShips(int number)
 {
     for (int i = 0; i < number; i++)
     {
         string connectionidAI = Guid.NewGuid().ToString();
         ShipAI shipAI = new ShipAI(RespawnManager.GetRandomStartPosition(), GameHandler.BulletManager);
         UserAI userAI = new UserAI(connectionidAI, shipAI) { Controller = false };
         UserHandler.AddUser(userAI);
         GameHandler.AddShipToGame(shipAI);
     }
 }