Odds2_Profit.h 547 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include <map>
  3. struct Odds2_ProfitData
  4. {
  5. //盈利(10000)
  6. int mProfit;
  7. //RAND区间的下限(10000)
  8. int mRandLower;
  9. //RAND区间的上限(10000)
  10. int mRandUpper;
  11. };
  12. class Odds2_Profit
  13. {
  14. public:
  15. private:
  16. static std::auto_ptr<Odds2_Profit> msSingleton;
  17. public:
  18. int GetCount();
  19. const Odds2_ProfitData* GetData(int Profit);
  20. const std::map<int, Odds2_ProfitData>& GetMapData();
  21. void Load();
  22. void LoadLua();
  23. void Reload();
  24. static Odds2_Profit* GetSingleton();
  25. static void Release();
  26. private:
  27. std::map<int, Odds2_ProfitData> mMapData;
  28. };