Esempio n. 1
0
        /*
         * Gets the original pieces moves then filters them through the filter event which can be handled by any client
         */
        public MoveList getMoves(Location startLocation)
        {
            if (!pieceAtLocation(startLocation))
            {
                return(null);
            }

            AbstractPiece piece = getPiece(startLocation);

            return(OnFilterMoves(piece, piece.getMoves(this)));
        }
Esempio n. 2
0
 public MoveList getMoves(AbstractPiece piece)
 {
     return(OnFilterMoves(piece, piece.getMoves(this)));
 }