예제 #1
0
        public virtual List <BoardCoord> GetTargetCoordinations(Piece self)
        {
            List <BoardCoord> coords = new List <BoardCoord>();

            coords = layer.GetCoordinations(self).ToList();

            return(coords);
        }
예제 #2
0
        public virtual List <BoardCoord> GetTargetCoordinations()
        {
            List <BoardCoord> coords = new List <BoardCoord>();

            coords = layer.GetCoordinations(GetCurrentKing()).ToList();

            return(coords);
        }
예제 #3
0
 public override BoardCoord[] GetMovablePositions(Piece self)
 {
     if ((self.GetStatus() & Piece.StatusFlag.Moved) == Piece.StatusFlag.Moved)
     {
         return(move.GetCoordinations(self));
     }
     else
     {
         return(moveFirst.GetCoordinations(self));
     }
 }
예제 #4
0
 public override BoardCoord[] GetMovablePositions(Piece self)
 {
     return(move.GetCoordinations(self));
 }
예제 #5
0
 public override BoardCoord[] GetAttackablePositions(Piece self)
 {
     return(attack.GetCoordinations(self));
 }