Adjust print statements
This commit is contained in:
@@ -56,7 +56,7 @@ public void setState(GameStates newState){
|
||||
if(this.state != null){
|
||||
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();
|
||||
state = newState;
|
||||
}
|
||||
|
||||
@@ -207,6 +207,8 @@ public CeremonyState getCeremonyState() {
|
||||
* @param state as the new currentState attribute as a ServerState object.
|
||||
*/
|
||||
public void setCurrentState(ServerState state) {
|
||||
System.out.println("SERVER STATE old:" + this.currentState + " new:" + state);
|
||||
|
||||
if (this.currentState != null) {
|
||||
this.currentState.exit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user