SThievesGuildInfo.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * SThievesGuildInfo.h, 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. #pragma once
  11. #include "../GameConstants.h"
  12. #include "InfoAboutArmy.h"
  13. VCMI_LIB_NAMESPACE_BEGIN
  14. struct DLL_LINKAGE SThievesGuildInfo
  15. {
  16. std::vector<PlayerColor> playerColors; //colors of players that are in-game
  17. std::vector< std::vector< PlayerColor > > numOfTowns, numOfHeroes, gold, woodOre, mercSulfCrystGems, obelisks, artifacts, army, income; // [place] -> [colours of players]
  18. std::map<PlayerColor, InfoAboutHero> colorToBestHero; //maps player's color to his best hero's
  19. std::map<PlayerColor, EAiTactic> personality; // color to personality // ai tactic
  20. std::map<PlayerColor, CreatureID> bestCreature; // color to ID // id or -1 if not known
  21. // template <typename Handler> void serialize(Handler &h)
  22. // {
  23. // h & playerColors;
  24. // h & numOfTowns;
  25. // h & numOfHeroes;
  26. // h & gold;
  27. // h & woodOre;
  28. // h & mercSulfCrystGems;
  29. // h & obelisks;
  30. // h & artifacts;
  31. // h & army;
  32. // h & income;
  33. // h & colorToBestHero;
  34. // h & personality;
  35. // h & bestCreature;
  36. // }
  37. };
  38. VCMI_LIB_NAMESPACE_END