// // Restores all game options to their default values. // public void RestoreDefaults() { this.ShowValidMoves = true; this.AnimateMoves = true; this.PreviewMoves = false; this.BoardColor = SquareControl.NormalBackColorDefault; this.ValidMoveColor = SquareControl.ValidMoveBackColorDefault; this.ActiveSquareColor = SquareControl.ActiveSquareBackColorDefault; this.MoveIndicatorColor = SquareControl.MoveIndicatorColorDefault; this.FirstMove = Board.Black; this.ComputerPlaysBlack = false; this.ComputerPlaysWhite = true; this.Difficulty = ReversiForm.Difficulty.Intermediate; }
// // Restores all game options to their default values. // public void RestoreDefaults() { this.ShowValidMoves = true; this.AnimateMoves = true; this.PreviewMoves = false; this.BoardColor = SquareControl.NormalBackColorDefault; this.ValidMoveColor = SquareControl.ValidMoveBackColorDefault; this.ActiveSquareColor = SquareControl.ActiveSquareBackColorDefault; this.MoveIndicatorColor = SquareControl.MoveIndicatorColorDefault; this.FirstMove = Board.Black; this.ComputerPlaysBlack = false; this.ComputerPlaysWhite = true; this.Difficulty = ReversiForm.Difficulty.Intermediate; }
// // Creates a new Options object by copying an existing one. // public Options(Options options) { this.ShowValidMoves = options.ShowValidMoves; this.PreviewMoves = options.PreviewMoves; this.AnimateMoves = options.AnimateMoves; this.BoardColor = options.BoardColor; this.ValidMoveColor = options.ValidMoveColor; this.ActiveSquareColor = options.ActiveSquareColor; this.MoveIndicatorColor = options.MoveIndicatorColor; this.FirstMove = options.FirstMove; this.ComputerPlaysBlack = options.ComputerPlaysBlack; this.ComputerPlaysWhite = options.ComputerPlaysWhite; this.Difficulty = options.Difficulty; }
// // Creates a new Options object by copying an existing one. // public Options(Options options) { this.ShowValidMoves = options.ShowValidMoves; this.PreviewMoves = options.PreviewMoves; this.AnimateMoves = options.AnimateMoves; this.BoardColor = options.BoardColor; this.ValidMoveColor = options.ValidMoveColor; this.ActiveSquareColor = options.ActiveSquareColor; this.MoveIndicatorColor = options.MoveIndicatorColor; this.FirstMove = options.FirstMove; this.ComputerPlaysBlack = options.ComputerPlaysBlack; this.ComputerPlaysWhite = options.ComputerPlaysWhite; this.Difficulty = options.Difficulty; }