Show / Hide Table of Contents

Class TimeControl

Class reprsenting time control settings of a game

Inheritance
System.Object
TimeControl
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: PonzianiComponents.Chesslib
Assembly: PonzianiComponents.dll
Syntax
public class TimeControl

Constructors

| Improve this Doc View Source

TimeControl(String)

Creates a time control object

Declaration
public TimeControl(string tc = "")
Parameters
Type Name Description
System.String tc

Time Control represented as PGN TimeControl Tag-Value

Fields

| Improve this Doc View Source

Controls

List of Time Controls

Declaration
public List<TimeControl.Entry> Controls
Field Value
Type Description
System.Collections.Generic.List<TimeControl.Entry>

Methods

| Improve this Doc View Source

AddThinkTimes(Game)

Enhances Think Times, if only Clock values are available

Declaration
public void AddThinkTimes(Game game)
Parameters
Type Name Description
Game game

Game which will be enhanced

| Improve this Doc View Source

TotalAvailableTime(Int32)

Calculates the total available think time for all moves so far

Declaration
public TimeSpan TotalAvailableTime(int movenumber)
Parameters
Type Name Description
System.Int32 movenumber

Move number for which the total available time shall be calculated

Returns
Type Description
System.TimeSpan
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX