Adjust print statements

This commit is contained in:
Felix Koppe
2024-12-08 14:25:38 +01:00
parent f9f381ac2d
commit f5b0481d3c
4 changed files with 3 additions and 4 deletions

View File

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

View File

@@ -160,7 +160,6 @@ public boolean equals(Object obj) {
if (obj instanceof Piece) {
Piece piece = (Piece) obj;
System.out.println("own UUID: " + this.uuid + ". Other UUID: " + piece.uuid);
return uuid.toString().equals(piece.uuid.toString());
}

View File

@@ -207,7 +207,7 @@ 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);
System.out.println("SERVER STATE old: " + this.currentState + " new: " + state);
if (this.currentState != null) {
this.currentState.exit();

View File

@@ -93,7 +93,7 @@ private boolean canHomeMove(Piece piece, int moveIndex){
protected int calculateTargetIndex(Piece piece){
int steps = logic.getGame().getDiceModifier() * logic.getGame().getDiceEyes();
LOGGER.log(System.Logger.Level.INFO, "Calculating target index for piece: " + piece.getUuid() + " with steps: " + steps + "start index: " + logic.getGame().getBoard().getInfieldIndexOfPiece(piece));
return (logic.getGame().getBoard().getInfieldIndexOfPiece(piece) + steps) % logic.getGame().getBoard().getInfield().length;
}
}