Clone of PhatAC @ https://github.com/floaterxk/PhatAC

TurbineXPTable.h 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #pragma once
  2. #include "TurbineObject.h"
  3. typedef DWORD EXPVAL, LEVELVAL;
  4. typedef std::map<EXPVAL, LEVELVAL> XPMAP;
  5. class TurbineXPTable : public TurbineObject
  6. {
  7. public:
  8. TurbineXPTable(DWORD dwID);
  9. ~TurbineXPTable();
  10. void Clear();
  11. void Initialize(BYTE *pbData, DWORD dwLength);
  12. DWORD *InitializeTable(XPMAP *pMap, DWORD *data, DWORD entries);
  13. LEVELVAL GetAttributeLevel(EXPVAL XP);
  14. EXPVAL GetAttributeXP(LEVELVAL Level);
  15. LEVELVAL GetAttributeMax();
  16. EXPVAL GetAttributeMaxXP();
  17. LEVELVAL GetVitalLevel(EXPVAL XP);
  18. EXPVAL GetVitalXP(LEVELVAL Level);
  19. LEVELVAL GetVitalMax();
  20. EXPVAL GetVitalMaxXP();
  21. LEVELVAL GetTrainedLevel(EXPVAL XP);
  22. EXPVAL GetTrainedXP(LEVELVAL Level);
  23. LEVELVAL GetTrainedMax();
  24. EXPVAL GetTrainedMaxXP();
  25. LEVELVAL GetSpecializedLevel(EXPVAL XP);
  26. EXPVAL GetSpecializedXP(LEVELVAL Level);
  27. LEVELVAL GetSpecializedMax();
  28. EXPVAL GetSpecializedMaxXP();
  29. LEVELVAL GetLevel(EXPVAL XP);
  30. EXPVAL GetLevelXP(LEVELVAL Level);
  31. private:
  32. XPMAP m_mAttributes;
  33. XPMAP m_mVitals;
  34. XPMAP m_mTrained;
  35. XPMAP m_mSpecialized;
  36. XPMAP m_mLevels;
  37. };
  38. typedef TurbineXPTable XPTABLE;