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); } }
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); } }
public AIShipStatRecorder(ShipAI me) : base(me) { }
public UserAI(string connectionID, ShipAI ship) : base(connectionID, ship, new RegisteredClient("", ship.Name, ship.Name, "/Images/Page/SignalRLogoIdea.png")) { Viewport = new Size(1280, 600); ReadyForPayloads = true; }