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("CLIENT STATE old:" + this.state + " new:" + newState);
 | 
			
		||||
        System.out.println("CLIENT STATE old: " + this.state + " new: " + newState);
 | 
			
		||||
        newState.enter();
 | 
			
		||||
        state = newState;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -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());
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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();
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user