public void InitGame(BoatStats boatStats) { Score = 0; RepairsDone = 0; boat = new Boat(boatStats); GameWindow gameWindow = new GameWindow(); gameWindow.Show(); }
public BoatStats[] GetBoatStatsFromFile() { string[] boats = fileHandler.GetBoats(); BoatStats[] boatStats = new BoatStats[boats.Length]; for (int i = 0; i < boats.Length; i++) { string[] stats = fileHandler.GetBoatStas(boats[i]).Split(boatSplitChars, StringSplitOptions.RemoveEmptyEntries); boatStats[i] = new BoatStats(stats); } return(boatStats); }