/// <summary> /// Inserts ship into the world's dictionary of ships /// </summary> /// <param name="id"></param> /// <param name="name"></param> /// <param name="score"></param> public static void InsertShip(int id, string name, int score) { Ship ship = new Ship(); ship.SetID(id); ship.SetName(name); ship.SetScore(score); lock (TheWorld) { //Spawn ship randomizes location and sets direction SpawnShip(ship); //Adds ship to dictionary TheWorld.AddShipAll(ship); } }