Implements the ball search procedure.
Ball search controller.
Initialise ball search.
Cancel the current ballsearch and mark the ball as missing.
Disable ball search.
Will stop the ball search if it is running.
Enable but do not start ball search.
Ball search is started by a timeout. Enable also resets that timer.
Give up the ball search.
Did not find the missing ball. Execute the failed action which either adds a replacement ball or ends the game.
Register a callback for sequential ballsearch.
Callbacks are called by priority. Ball search only waits if the callback returns true.
- priority – priority of this callback in the ball search procedure
- callback – callback to call. ball search will wait before the next callback, if it returns true
Method registered for the request_to_start_game event.
Returns false if the ball search is running.
Reset the start timer.
Called by playfield.
Run one iteration of the ball search.
Will schedule itself for the next run.
Actually start ball search.