IOwnableObject.h 760 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * IOwnableObject.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. VCMI_LIB_NAMESPACE_BEGIN
  12. class ResourceSet;
  13. class CreatureID;
  14. class DLL_LINKAGE IOwnableObject
  15. {
  16. public:
  17. /// Fixed daily income of this object
  18. /// May not include random or periodical (e.g. weekly) income sources
  19. virtual ResourceSet dailyIncome() const = 0;
  20. /// List of creatures that are provided by this building
  21. /// For use in town dwellings growth bonus and for portal of summoning
  22. virtual std::vector<CreatureID> providedCreatures() const = 0;
  23. virtual ~IOwnableObject() = default;
  24. };
  25. VCMI_LIB_NAMESPACE_END