@@ -68,8 +68,8 @@ RestaurantFarmer::~RestaurantFarmer(){
6868RestaurantFarmer::RestaurantFarmer ()
6969 : m_stop_after_current(false )
7070 , NUM_ROUNDS(
71- " <b>Number of Battles to Run:</b><br>"
72- " Zero will run until 'Stop after Current Battle ' is pressed or the program is manually stopped.</b>" ,
71+ " <b>Number of Rounds to Run:</b><br>"
72+ " Zero will run until 'Stop after Current Round ' is pressed or the program is manually stopped.</b>" ,
7373 LockMode::UNLOCK_WHILE_RUNNING,
7474 100 ,
7575 0
@@ -112,22 +112,22 @@ RestaurantFarmer::RestaurantFarmer()
112112
113113RestaurantFarmer::StopButton::StopButton ()
114114 : ButtonOption(
115- " <b>Stop after current battle :" ,
116- " Stop after current battle " ,
115+ " <b>Stop after current round :" ,
116+ " Stop after current round " ,
117117 0 , 16
118118 )
119119{}
120120void RestaurantFarmer::StopButton::set_idle (){
121121 this ->set_enabled (false );
122- this ->set_text (" Stop after Current Battle " );
122+ this ->set_text (" Stop after Current Round " );
123123}
124124void RestaurantFarmer::StopButton::set_ready (){
125125 this ->set_enabled (true );
126- this ->set_text (" Stop after Current Battle " );
126+ this ->set_text (" Stop after Current Round " );
127127}
128128void RestaurantFarmer::StopButton::set_pressed (){
129129 this ->set_enabled (false );
130- this ->set_text (" Program will stop after current battle ..." );
130+ this ->set_text (" Program will stop after current round ..." );
131131}
132132
133133
@@ -178,7 +178,7 @@ bool RestaurantFarmer::run_lobby(SingleSwitchProgramEnvironment& env, ProControl
178178 case 1 :
179179 env.log (" Detected selection arrow." );
180180 // This is when the restaurant receptionist is asking whether you want
181- // to start the battle
181+ // to start the round
182182 pbf_mash_button (context, BUTTON_A, 5000ms);
183183 return false ;
184184
@@ -208,7 +208,7 @@ bool RestaurantFarmer::run_lobby(SingleSwitchProgramEnvironment& env, ProControl
208208 }
209209 }
210210}
211- void RestaurantFarmer::run_battle (SingleSwitchProgramEnvironment& env, ProControllerContext& context){
211+ void RestaurantFarmer::run_round (SingleSwitchProgramEnvironment& env, ProControllerContext& context){
212212 RestaurantFarmer_Descriptor::Stats& stats = env.current_stats <RestaurantFarmer_Descriptor::Stats>();
213213
214214 WallClock start = current_time ();
@@ -246,9 +246,7 @@ void RestaurantFarmer::run_battle(SingleSwitchProgramEnvironment& env, ProContro
246246 env.log (" Detected selection arrow. (unexpected)" , COLOR_RED);
247247 dump_image (env.console .logger (), env.program_info (), env.console .video (), " UnexpectedSelectionArrow" );
248248 stats.errors ++;
249- // stats.battles++;
250249 env.update_stats ();
251- // return;
252250 continue ;
253251
254252 case 2 :
@@ -268,7 +266,7 @@ void RestaurantFarmer::run_battle(SingleSwitchProgramEnvironment& env, ProContro
268266 env.update_stats ();
269267 OperationFailedException::fire (
270268 ErrorReport::SEND_ERROR_REPORT,
271- " Battle took longer than 30 minutes." ,
269+ " Round took longer than 30 minutes." ,
272270 env.console
273271 );
274272 }
@@ -392,7 +390,7 @@ void RestaurantFarmer::program(SingleSwitchProgramEnvironment& env, ProControlle
392390 if (run_lobby (env, context)){
393391 break ;
394392 }
395- run_battle (env, context);
393+ run_round (env, context);
396394 }
397395
398396 send_program_finished_notification (env, NOTIFICATION_PROGRAM_FINISH);
0 commit comments