CGameInfo.cpp 841 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * CGameInfo.cpp, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #include "StdInc.h"
  11. #include "CGameInfo.h"
  12. #include "../lib/CSkillHandler.h"
  13. #include "../lib/CGeneralTextHandler.h"
  14. #include "../lib/VCMI_Lib.h"
  15. const CGameInfo * CGI; //game info for general use
  16. CClientState * CCS = nullptr;
  17. CGameInfo::CGameInfo()
  18. {
  19. generaltexth = nullptr;
  20. mh = nullptr;
  21. townh = nullptr;
  22. }
  23. void CGameInfo::setFromLib()
  24. {
  25. modh = VLC->modh;
  26. generaltexth = VLC->generaltexth;
  27. arth = VLC->arth;
  28. creh = VLC->creh;
  29. townh = VLC->townh;
  30. heroh = VLC->heroh;
  31. objh = VLC->objh;
  32. spellh = VLC->spellh;
  33. skillh = VLC->skillh;
  34. objtypeh = VLC->objtypeh;
  35. }