/** * C++ callback function. * * <p>Notifies the event listener that the game has terminated. * * <p>Note: this is always called after matchEnded(bool), and is meant as a way of notifying the * AI client to clear up state. */ private void gameEnded() { try { listener.gameEnded(); } catch (Error e) { e.printStackTrace(); } }