public class GameInfo extends java.lang.Object implements ConstGameInfo
| Constructor and Description |
|---|
GameInfo() |
GameInfo(ConstGameInfo info) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(ConstGameInfo info) |
boolean |
equals(java.lang.Object object) |
java.lang.String |
get(StringInfo type) |
java.lang.String |
get(StringInfoColor type,
GoColor c) |
int |
getHandicap() |
Komi |
getKomi()
Get komi.
|
TimeSettings |
getTimeSettings() |
int |
hashCode()
Hash code dummy function (don't use).
|
boolean |
isEmpty() |
Score.ScoringMethod |
parseRules()
Try to parse rules.
|
void |
set(StringInfoColor type,
GoColor c,
java.lang.String value) |
void |
set(StringInfo type,
java.lang.String value) |
void |
setHandicap(int handicap) |
void |
setKomi(Komi komi) |
void |
setTimeSettings(TimeSettings timeSettings)
Set time settings.
|
java.lang.String |
suggestGameName()
Suggest a game name from the player names.
|
public GameInfo()
public GameInfo(ConstGameInfo info)
public final void copyFrom(ConstGameInfo info)
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic java.lang.String get(StringInfo type)
get in interface ConstGameInfopublic java.lang.String get(StringInfoColor type, GoColor c)
get in interface ConstGameInfopublic int getHandicap()
getHandicap in interface ConstGameInfopublic Komi getKomi()
getKomi in interface ConstGameInfopublic TimeSettings getTimeSettings()
getTimeSettings in interface ConstGameInfopublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isEmpty()
public Score.ScoringMethod parseRules()
parseRules in interface ConstGameInfopublic void set(StringInfo type, java.lang.String value)
public void set(StringInfoColor type, GoColor c, java.lang.String value)
public void setHandicap(int handicap)
public void setKomi(Komi komi)
public void setTimeSettings(TimeSettings timeSettings)
public java.lang.String suggestGameName()
suggestGameName in interface ConstGameInfo