NewTurnProcessor.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * NewTurnProcessor.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 "../../lib/constants/EntityIdentifiers.h"
  12. #include "../../lib/constants/Enumerations.h"
  13. #include "../../lib/gameState/RumorState.h"
  14. VCMI_LIB_NAMESPACE_BEGIN
  15. class CGTownInstance;
  16. class ResourceSet;
  17. struct SetAvailableCreatures;
  18. struct SetMovePoints;
  19. struct SetMana;
  20. VCMI_LIB_NAMESPACE_END
  21. class CGameHandler;
  22. class NewTurnProcessor : boost::noncopyable
  23. {
  24. CGameHandler * gameHandler;
  25. public:
  26. NewTurnProcessor(CGameHandler * gameHandler);
  27. std::vector<SetMana> updateHeroesManaPoints();
  28. std::vector<SetMovePoints> updateHeroesMovementPoints();
  29. ResourceSet generatePlayerIncome(PlayerColor playerID, bool newWeek);
  30. SetAvailableCreatures generateTownGrowth(const CGTownInstance * town, EWeekType weekType, CreatureID creatureWeek, bool firstDay);
  31. RumorState pickNewRumor();
  32. std::tuple<EWeekType, CreatureID> pickWeekType(bool newMonth);
  33. void onPlayerTurnStarted(PlayerColor color);
  34. void onPlayerTurnEnded(PlayerColor color);
  35. };