283284285286287288289290291292293
if (bPiece == null) { continue; } Teams team = bPiece.getTeam(); PieceDef pDef = PieceDef.get(bPiece.getType()); PieceMoveSet moves = pDef.getMoves(getType());