StackWithBonuses.h 608 B

12345678910111213141516171819202122
  1. /*
  2. * StackWithBonuses.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/HeroBonus.h"
  12. class CStack;
  13. class StackWithBonuses : public IBonusBearer
  14. {
  15. public:
  16. const CStack * stack;
  17. mutable std::vector<Bonus> bonusesToAdd;
  18. virtual const TBonusListPtr getAllBonuses(const CSelector & selector, const CSelector & limit, const CBonusSystemNode * root = nullptr, const std::string & cachingStr = "") const override;
  19. };