Пример #1
0
 public Bishop(UnitColor unitColor, HashSet <int> protectEnemyKingMoves, HashSet <int> protectAllyKingMoves, Dictionary <int, List <int> > coverKingMoves, HashSet <int> potentialMoves)
 {
     _iMoveDiagonal         = new MoveDiagonal();
     _allyCoord             = UnitColor.White == unitColor ? ChessPieces.WhiteChessPieces.Item2 : ChessPieces.BlackChessPieces.Item2;
     _enemyCoord            = UnitColor.White == unitColor ? ChessPieces.BlackChessPieces.Item2 : ChessPieces.WhiteChessPieces.Item2;
     _enemyKing             = UnitColor.White == unitColor ? ChessPieces.BlackChessPieces.Item3 : ChessPieces.WhiteChessPieces.Item3;
     _protectEnemyKingMoves = protectEnemyKingMoves;
     _protectAllyKingMoves  = protectAllyKingMoves;
     _coverKingMoves        = coverKingMoves;
     _potentialMoves        = potentialMoves;
 }