Adjust print statements

This commit is contained in:
Felix Koppe
2024-12-08 13:54:39 +01:00
parent bca02bfe4b
commit ee94d901f4
2 changed files with 3 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ public void setState(GameStates newState){
if(this.state != null){ if(this.state != null){
this.state.exit(); this.state.exit();
} }
System.out.println("jetziger State:"+this.state + " new State:"+newState); System.out.println("CLIENT STATE old:" + this.state + " new:" + newState);
newState.enter(); newState.enter();
state = newState; state = newState;
} }

View File

@@ -207,6 +207,8 @@ public CeremonyState getCeremonyState() {
* @param state as the new currentState attribute as a ServerState object. * @param state as the new currentState attribute as a ServerState object.
*/ */
public void setCurrentState(ServerState state) { public void setCurrentState(ServerState state) {
System.out.println("SERVER STATE old:" + this.currentState + " new:" + state);
if (this.currentState != null) { if (this.currentState != null) {
this.currentState.exit(); this.currentState.exit();
} }