}
@Override
public List<CardValue> getCardValues(Hand hand) {
List<CardValue> listCardValues = null;
CardValue cardValue;
Card plCard;
CardFace cface = getMaxValue();
for (int q = 0; q<2 ; q++){
plCard = hand.getHandCards()[q];
if (cface.equals(plCard.getFace())){
if (listCardValues == null) listCardValues = new ArrayList<CardValue>();
cardValue = new CardValue();
cardValue.setCard(plCard);
cardValue.setCardPosition(0);
cardValue.setCardRange(CardRangeInComb.TOP);
listCardValues.add(cardValue);
}
}
cface = getMinValue();
for (int q = 0; q<2 ; q++){
plCard = hand.getHandCards()[q];
if (cface.equals(plCard.getFace())){
if (listCardValues == null) listCardValues = new ArrayList<CardValue>();
cardValue = new CardValue();
cardValue.setCard(plCard);
cardValue.setCardPosition(1);
cardValue.setCardRange(CardRangeInComb.LOW);
listCardValues.add(cardValue);
}
}
return listCardValues;