CAltarWindow.h 825 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * CAltarWindow.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 "../widgets/CWindowWithArtifacts.h"
  12. #include "../widgets/markets/CAltarArtifacts.h"
  13. #include "../widgets/markets/CAltarCreatures.h"
  14. class CExperienceAltar;
  15. class CAltarWindow : public CWindowWithArtifacts, public IGarrisonHolder
  16. {
  17. public:
  18. void updateExpToLevel();
  19. void updateGarrisons() override;
  20. bool holdsGarrison(const CArmedInstance * army) override;
  21. virtual const CGHeroInstance * getHero() const = 0;
  22. void artifactMoved(const ArtifactLocation & srcLoc, const ArtifactLocation & destLoc, bool withRedraw) override;
  23. std::shared_ptr<CExperienceAltar> altar;
  24. };