public final class TimeSettings
extends java.lang.Object
| Constructor and Description |
|---|
TimeSettings(long totalTime)
Construct with total time for game.
|
TimeSettings(long preByoyomi,
long byoyomi,
int byoyomiMoves)
Construct with base time and overtime.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object) |
long |
getByoyomi()
Get time for overtime period.
|
int |
getByoyomiMoves()
Get number of moves per overtime period.
|
long |
getPreByoyomi()
Get base time for game.
|
boolean |
getUseByoyomi()
Check if overtime periods are used.
|
int |
hashCode()
Hash code dummy function (don't use).
|
static TimeSettings |
parse(java.lang.String s)
Parse time settings from a string.
|
java.lang.String |
toString() |
public TimeSettings(long totalTime)
totalTime - Total time for game in milliseconds.public TimeSettings(long preByoyomi,
long byoyomi,
int byoyomiMoves)
preByoyomi - Base time for game in milliseconds.byoyomi - Time for overtime period in milliseconds.byoyomiMoves - Number of moves per overtime period.public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic long getByoyomi()
public int getByoyomiMoves()
public long getPreByoyomi()
public boolean getUseByoyomi()
public int hashCode()
hashCode in class java.lang.Objectpublic static TimeSettings parse(java.lang.String s) throws ErrorMessage
s - The string.ErrorMessage - On syntax error or invalid values.public java.lang.String toString()
toString in class java.lang.Object