public void requestAction(GameModel model) { int currentPlayer = model.getState().getCurrentPlayer(); boolean declaringBausen = model.getState().isDeclaringBausen(); setActivePlayer(currentPlayer); if (model.getState().getCurrentPlayer() != 0 || Config.AUTOPLAY) { if (declaringBausen) simulator.howManyToDeclare(model, currentPlayer, getRestriction(model)); else simulator.whichCardToPlay(model, currentPlayer); } else { getSettings().doVibrate(ACTIVE_VIBRATION_LENGTH, ACTIVE_PLAYER_VIBRATION_DELAY); } }
private void cancelAI() { if (simulator != null) simulator.stop(); }