// Set Per Level Information private void InitAllLevelSettings() { AllLevels = new List <LevelSettings>(); // Level 1 Information LevelSettings level1 = new LevelSettings() { Level = Constants.LVL_1, PlayerBeerSpeed = Constants.BOTTLE_SPEED, CustomerMoveSpeed = Constants.MOVE_SPEED_1, CustomerSlideSpeed = Constants.SLIDE_SPEED }; level1.SetCustomerMoveTimes(Constants.MOVE_MIN_1, Constants.MOVE_MAX_1); level1.SetCustomerStopTimes(Constants.STOP_MIN_1, Constants.STOP_MAX_1); level1.SetCustomerDrinkTimes(Constants.DRINK_MIN_1, Constants.DRINK_MAX_1); level1.SetCustomerSlideDistances(Constants.SLIDE_MIN, Constants.SLIDE_MAX); level1.AddCustomersToBarTap(Constants.BARTAP_1, new List <float>() { Constants.WAVE_1 }); level1.AddCustomersToBarTap(Constants.BARTAP_2, new List <float>() { Constants.WAVE_1 }); level1.AddCustomersToBarTap(Constants.BARTAP_3, new List <float>() { Constants.WAVE_1 }); level1.AddCustomersToBarTap(Constants.BARTAP_4, new List <float>() { Constants.WAVE_1 }); AllLevels.Add(level1); // Level 2 Information LevelSettings level2 = new LevelSettings() { Level = Constants.LVL_2, PlayerBeerSpeed = Constants.BOTTLE_SPEED, CustomerMoveSpeed = Constants.MOVE_SPEED_2, CustomerSlideSpeed = Constants.SLIDE_SPEED }; level2.SetCustomerMoveTimes(Constants.MOVE_MIN_2, Constants.MOVE_MAX_2); level2.SetCustomerStopTimes(Constants.STOP_MIN_1, Constants.STOP_MAX_2); level2.SetCustomerDrinkTimes(Constants.DRINK_MIN_1, Constants.DRINK_MAX_2); level2.SetCustomerSlideDistances(Constants.SLIDE_MIN, Constants.SLIDE_MAX); level2.AddCustomersToBarTap(Constants.BARTAP_1, new List <float>() { Constants.WAVE_1, Constants.WAVE_3 }); level2.AddCustomersToBarTap(Constants.BARTAP_2, new List <float>() { Constants.WAVE_1, Constants.WAVE_3 }); level2.AddCustomersToBarTap(Constants.BARTAP_3, new List <float>() { Constants.WAVE_1, Constants.WAVE_3 }); level2.AddCustomersToBarTap(Constants.BARTAP_4, new List <float>() { Constants.WAVE_1, Constants.WAVE_3 }); AllLevels.Add(level2); // Level 3 Information LevelSettings level3 = new LevelSettings() { Level = Constants.LVL_3, PlayerBeerSpeed = Constants.BOTTLE_SPEED, CustomerMoveSpeed = Constants.MOVE_SPEED_3, CustomerSlideSpeed = Constants.SLIDE_SPEED }; level3.SetCustomerMoveTimes(Constants.MOVE_MIN_3, Constants.MOVE_MAX_3); level3.SetCustomerStopTimes(Constants.STOP_MIN_2, Constants.STOP_MAX_3); level3.SetCustomerDrinkTimes(Constants.DRINK_MIN_2, Constants.DRINK_MAX_3); level3.SetCustomerSlideDistances(Constants.SLIDE_MIN, Constants.SLIDE_MAX); level3.AddCustomersToBarTap(Constants.BARTAP_1, new List <float>() { Constants.WAVE_2, Constants.WAVE_4, Constants.WAVE_5 }); level3.AddCustomersToBarTap(Constants.BARTAP_2, new List <float>() { Constants.WAVE_2, Constants.WAVE_4, Constants.WAVE_5 }); level3.AddCustomersToBarTap(Constants.BARTAP_3, new List <float>() { Constants.WAVE_2, Constants.WAVE_4, Constants.WAVE_5 }); level3.AddCustomersToBarTap(Constants.BARTAP_4, new List <float>() { Constants.WAVE_2, Constants.WAVE_4, Constants.WAVE_5 }); AllLevels.Add(level3); }
private void InitAllLevelSettings() { AllLevels = new List <LevelSettings>(); LevelSettings level1 = new LevelSettings() { Level = 1, PlayerBeerSpeed = 6.0f, CustomerMoveSpeed = 2f, CustomerSlideSpeed = 5 }; level1.SetCustomerMoveTimes(0.5f, 1.0f); level1.SetCustomerStopTimes(1.5f, 2f); level1.SetCustomerDrinkTimes(1.0f, 1.75f); level1.SetCustomerSlideDistances(6.0f, 7.0f); level1.AddCustomersToBarTap(1, new List <float>() { 0.25f }); level1.AddCustomersToBarTap(2, new List <float>() { 0.25f }); level1.AddCustomersToBarTap(3, new List <float>() { 0.25f }); level1.AddCustomersToBarTap(4, new List <float>() { 0.25f }); AllLevels.Add(level1); LevelSettings level2 = new LevelSettings() { Level = 2, PlayerBeerSpeed = 6.0f, CustomerMoveSpeed = 1.5f, CustomerSlideSpeed = 6 }; level2.SetCustomerMoveTimes(0.5f, 1.0f); level2.SetCustomerStopTimes(1f, 1.5f); level2.SetCustomerDrinkTimes(1.0f, 2.0f); level2.SetCustomerSlideDistances(6.0f, 8.0f); level2.AddCustomersToBarTap(1, new List <float>() { 0.25f, 1.25f }); level2.AddCustomersToBarTap(2, new List <float>() { 0.25f, 1.25f }); level2.AddCustomersToBarTap(3, new List <float>() { 0.25f, 1.25f }); level2.AddCustomersToBarTap(4, new List <float>() { 0.25f, 1.25f }); AllLevels.Add(level2); }