/**
* @param pledgeType the Id of the pledge type.
* @return the maximum number of members allowed for a given {@code pledgeType}.
*/
public int getMaxNrOfMembers(int pledgeType)
{
int limit = 2;
switch (pledgeType)
{
case 0:
switch (getLevel())
{
case 3:
limit = 2;
break;
case 2:
limit = 2;
break;
case 1:
limit = 2;
break;
case 0:
limit = 2;
break;
default:
limit = 2;
break;
}
break;
case -1:
limit = 2;
break;
case 100:
case 200:
switch (getLevel())
{
case 11:
limit = 2;
break;
default:
limit = 2;
break;
}
break;
case 1001:
case 1002:
case 2001:
case 2002:
switch (getLevel())
{
case 9:
case 10:
case 11:
limit = 2;
break;
default:
limit = 2;
break;
}
break;
default:
break;
}
return limit;
}
Get the maximum opportunities, income, and profit with our verification.
We help you pass verification on the services and applications you need, opening access to full functionality and scaling.
Fast. Reliable. Secure.
Minimal risks — predictable results.
Bonus for new clients:
Pay for the first verification and get a 10% discount on the next one.
Learn more — Go to
Question
Amanda55
Where i make max 2 clan members
/** * @param pledgeType the Id of the pledge type. * @return the maximum number of members allowed for a given {@code pledgeType}. */ public int getMaxNrOfMembers(int pledgeType) { int limit = 2; switch (pledgeType) { case 0: switch (getLevel()) { case 3: limit = 2; break; case 2: limit = 2; break; case 1: limit = 2; break; case 0: limit = 2; break; default: limit = 2; break; } break; case -1: limit = 2; break; case 100: case 200: switch (getLevel()) { case 11: limit = 2; break; default: limit = 2; break; } break; case 1001: case 1002: case 2001: case 2002: switch (getLevel()) { case 9: case 10: case 11: limit = 2; break; default: limit = 2; break; } break; default: break; } return limit; }Don't work
ty for help
15 answers to this question
Recommended Posts