Added:(Network) Totem Choice first implementation

This commit is contained in:
rubenpirreram
2026-05-13 16:55:12 +02:00
parent 0f92696cbd
commit 110526d836
13 changed files with 58 additions and 25 deletions
@@ -239,4 +239,17 @@ public class ClientController {
}
}
//TODO
public void totemChoice(String playerUsername,int pos) {
if(!Objects.equals(playerUsername, miniModel.currentState.getCurrentPlayer().getUserName()))
view.showError("It's not your turn!");
else {
try {
client.totemChoice(playerUsername, String.valueOf(miniModel.availableTotems.get(pos)));
} catch (RemoteException e) {
throw new RuntimeException(e);
}
}
}
}