flurischt/ch.bfh.advancedWeb.jass — Issue #1: Card.getFamilyOrder() not correct, change it to:
Author: steffstefferson
Created: 2012-01-03 07:55:51+00:00
State: open

/**
* the family order is defined as herz, kreuz, ecke, schaufel
* @param Family
* @return ordernumber
*/
public int getFamilyOrder() {
int ret = 0;
if (CardFamily.HERZ.equals(this.getFamily())) {
ret = 4;
} else if (CardFamily.KREUZ.equals(this.getFamily())) {
ret = 3;
} else if (CardFamily.ECKEN.equals(this.getFamily())) {
ret = 2;
} else if (CardFamily.SCHAUFEL.equals(this.getFamily())) {
ret = 1;
}
return ret;
}