StackWithBonuses.h 611 B

1234567891011121314151617181920212223
  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,
  19. const CBonusSystemNode *root = nullptr, const std::string &cachingStr = "") const override;
  20. };