-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rid of Jackson databind & no more compilation errors
- Loading branch information
Showing
15 changed files
with
132 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/main/java/com/fathzer/jchess/settings/BasicClockSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.fathzer.jchess.settings; | ||
|
||
import com.fathzer.games.clock.ClockSettings; | ||
|
||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
/** A very simplified version of games-core clock settings. | ||
*/ | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class BasicClockSettings { | ||
/** Given number of seconds at the beginning of game. */ | ||
private int initialTime; | ||
/** Time increment in seconds. */ | ||
private int increment; | ||
/** Number of moves between increments. */ | ||
private int movesNumberBeforeIncrement; | ||
|
||
public ClockSettings toClockSettings() { | ||
final ClockSettings result = new ClockSettings(initialTime); | ||
if (increment>0) { | ||
result.withIncrement(increment, movesNumberBeforeIncrement<=0 ? 1 : movesNumberBeforeIncrement, true); | ||
} | ||
return result; | ||
} | ||
} |
79 changes: 0 additions & 79 deletions
79
src/main/java/com/fathzer/jchess/settings/ClockSettingsDeserializer.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.