A
alunharford
I've just written the following code 'by hand', and there has to be an
easier way...
Any ideas?
class GameStarted
{
public int gameNumber;
public string whiteName;
public string blackName;
public Wild wildType;
public RatingType ratingType;
public bool rated;
public int whiteInitialTime;
public int whiteIncTime;
public int blackInitialTime;
public int blackIncTime;
public bool notExamining;
public int whiteRating;
public int blackRating;
public long gameID;
public bool irregularLegality;
public bool irregularSemantics;
public bool usesPlunkers;
public string fancyTimeControl;
public GameStarted(int gameNumber, string whiteName, string
blackName, Wild wildType,
RatingType ratingType, bool rated, int whiteInitialTime,
int whiteIncTime,
int blackInitialTime, int blackIncTime, bool notExamining,
int whiteRating,
int blackRating, long gameID, bool irregularLegality, bool
irregularSemantics,
bool usesPlunkers, string fancyTimeControl)
{
this.gameNumber = gameNumber;
this.whiteName = whiteName;
this.blackName = blackName;
this.wildType = wildType;
this.ratingType = ratingType;
this.rated = rated;
this.whiteInitialTime = whiteInitialTime;
this.whiteIncTime = whiteIncTime;
this.blackInitialTime = blackInitialTime;
this.blackIncTime = blackIncTime;
this.notExamining = notExamining;
this.whiteRating = whiteRating;
this.blackRating = blackRating;
this.gameID = gameID;
this.irregularLegality = irregularLegality;
this.irregularSemantics = irregularSemantics;
this.usesPlunkers = usesPlunkers;
this.fancyTimeControl = fancyTimeControl;
}
}
easier way...
Any ideas?
class GameStarted
{
public int gameNumber;
public string whiteName;
public string blackName;
public Wild wildType;
public RatingType ratingType;
public bool rated;
public int whiteInitialTime;
public int whiteIncTime;
public int blackInitialTime;
public int blackIncTime;
public bool notExamining;
public int whiteRating;
public int blackRating;
public long gameID;
public bool irregularLegality;
public bool irregularSemantics;
public bool usesPlunkers;
public string fancyTimeControl;
public GameStarted(int gameNumber, string whiteName, string
blackName, Wild wildType,
RatingType ratingType, bool rated, int whiteInitialTime,
int whiteIncTime,
int blackInitialTime, int blackIncTime, bool notExamining,
int whiteRating,
int blackRating, long gameID, bool irregularLegality, bool
irregularSemantics,
bool usesPlunkers, string fancyTimeControl)
{
this.gameNumber = gameNumber;
this.whiteName = whiteName;
this.blackName = blackName;
this.wildType = wildType;
this.ratingType = ratingType;
this.rated = rated;
this.whiteInitialTime = whiteInitialTime;
this.whiteIncTime = whiteIncTime;
this.blackInitialTime = blackInitialTime;
this.blackIncTime = blackIncTime;
this.notExamining = notExamining;
this.whiteRating = whiteRating;
this.blackRating = blackRating;
this.gameID = gameID;
this.irregularLegality = irregularLegality;
this.irregularSemantics = irregularSemantics;
this.usesPlunkers = usesPlunkers;
this.fancyTimeControl = fancyTimeControl;
}
}
