public Quest Gen_Quest() { ArrayList AllCo = Make_quests.Gen_GPSCoordinates(); ArrayList Allinfo = Make_quests.Gen_quest_info(); int Xp = Gen_xp.Xp_gen(); int Level = Gen_level.Level_gen(); int coord = rand.Next(((11 - 0) + 1)); int info = rand.Next(((6 - 0) + 1)); Quest_info qi = (Quest_info)Allinfo[info]; GPSCoordinate gps = (GPSCoordinate)AllCo[coord]; Quest AQuest = new Quest(qi, Xp, Level, null, gps); return(AQuest); }