예제 #1
0
파일: TimeControl.cs 프로젝트: landon/Chess
        TimeControl(TimeControlTypes type)
        {
            _Type = type;

            _Timer          = new System.Timers.Timer();
            _Timer.Interval = 100;
            _Timer.Elapsed += new System.Timers.ElapsedEventHandler(_Timer_Elapsed);

            _LastMoveTimeUsed = 0;
        }
예제 #2
0
파일: TimeControl.cs 프로젝트: landon/Chess
 public TimeControl(TimeControlTypes type, int baseTime, int increment)
     : this(type)
 {
     _BaseTime  = baseTime;
     _Increment = increment;
 }
예제 #3
0
파일: TimeControl.cs 프로젝트: landon/Chess
 public TimeControl(TimeControlTypes type, double secondsPerMove)
     : this(type)
 {
     _SecondsPerMove = secondsPerMove;
 }