public void afterAnimation() { if (stateToSetAfterAnimation.getLastMoveWasOppositeCapture()) graphics.oppositeCaptureSound(); state = stateToSetAfterAnimation.copyState(); updateBoard(); if (aiMatch) sendMoveToServerAI(lastMove, state); }
void setState(State state) { this.state = state; updateBoard(); }