private List<Sheep> sheepInPen(StendhalRPZone zone){
  List<Sheep> sheep=new LinkedList<Sheep>();
  Area pen=getPen(zone);
  for (  RPEntity entity : zone.getPlayerAndFriends()) {
    if (entity instanceof Sheep) {
      if (pen.contains(entity)) {
        sheep.add((Sheep)entity);
      }
    }
  }
  return sheep;
}

private List < Sheep > sheepInPen ( StendhalRPZone zone ) { List < Sheep > sheep = new LinkedList < Sheep > ( ) ; Area pen = getPen ( zone ) ; for ( RPEntity entity : zone . getPlayerAndFriends ( ) ) { if ( entity instanceof Sheep ) { if ( pen . contains ( entity ) ) { sheep . add ( ( Sheep ) entity ) ; } } } return sheep ; }
get a list of the sheep in the pen .
