Ejemplo n.º 1
0
 private TurnRecord(MoveRecord move, MoveRecord secondaryMove, CaptureRecord capture, PromotionRecord promotion)
 {
     Move          = move;
     SecondaryMove = secondaryMove;
     Capture       = capture;
     Promotion     = promotion;
 }
Ejemplo n.º 2
0
 internal void UpdatePieceCaptured(MoveRecord captureMove, IGameState gameStateBefore)
 {
     PieceCaptured = gameStateBefore.GetPieceAt(captureMove.To);
 }
Ejemplo n.º 3
0
 internal TurnRecord(MoveRecord move, CaptureRecord capture, PromotionRecord promotion) : this(move, null, capture, promotion)
 {
 }
Ejemplo n.º 4
0
 internal TurnRecord(MoveRecord move, MoveRecord secondaryMove) : this(move, secondaryMove, null, null)
 {
 }
Ejemplo n.º 5
0
 internal TurnRecord(MoveRecord move, PromotionRecord promotion) : this(move, null, null, promotion)
 {
 }
Ejemplo n.º 6
0
 internal TurnRecord(MoveRecord move, CaptureRecord capture) : this(move, null, capture, null)
 {
 }
Ejemplo n.º 7
0
 internal TurnRecord(MoveRecord move) : this(move, null, null, null)
 {
 }
Ejemplo n.º 8
0
 internal void UpdatePiecePromoted(MoveRecord promoteMove, IGameState gameStateBefore)
 {
     PiecePromoted   = gameStateBefore.GetPieceAt(promoteMove.From);
     OldCapabilities = PiecePromoted.Capabilities;
 }