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

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

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

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

            return(coords);
        }
Example #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));
     }
 }
Example #4
0
 public override BoardCoord[] GetMovablePositions(Piece self)
 {
     return(move.GetCoordinations(self));
 }
Example #5
0
 public override BoardCoord[] GetAttackablePositions(Piece self)
 {
     return(attack.GetCoordinations(self));
 }