/** * Sets whether the actor is in turn. * * @param isInTurn Whether the actor is in turn. */ private void setActorInTurn(boolean isInTurn) { if (actorName != null) { PlayerPanel playerPanel = playerPanels.get(actorName); if (playerPanel != null) { playerPanel.setInTurn(isInTurn); } } }