Squad.h 904 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. class ISquadBase // inheritted by IZoneSquad
  2. {
  3. public:
  4. enum Rank
  5. {
  6. RANK_START = 0,
  7. RANK_COTTON = 0,
  8. RANK_COPPER,
  9. RANK_BRONZE,
  10. RANK_SILVER,
  11. RANK_GOLD,
  12. RANK_PLATINUM,
  13. RANK_DOUBLE_PLATINUM,
  14. RANK_DIAMOND,
  15. RANK_DOUBLE_DIAMOND,
  16. RANK_TRIPLE_DIAMOND,
  17. RANK_MAX,
  18. RANK_UNKNOWN,
  19. };
  20. static IsRankValid(Rank rank)
  21. {
  22. return rank >= RANK_COTTON && rank < RANK_MAX;
  23. }
  24. static const char * Rank2String (Rank rank)
  25. {
  26. static char * s_szRank[] = {
  27. "Cotton",
  28. "Copper",
  29. "Bronze",
  30. "Silver",
  31. "Gold",
  32. "Platinum",
  33. "Double Platinum",
  34. "Diamond",
  35. "Double Diamond",
  36. "Triple Diamond",
  37. "Max",
  38. "Unknown"
  39. };
  40. return s_szRank[rank];
  41. }
  42. };
  43. enum SQUAD_SORT_COLUMN
  44. {
  45. SSC_UNKNOWN = 0,
  46. SSC_NAME,
  47. SSC_SCORE,
  48. SSC_WINS,
  49. SSC_LOSSES,
  50. SSC_HOURS,
  51. SSC_MAX,
  52. };