Faction.h 632 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Faction.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 "Entity.h"
  12. VCMI_LIB_NAMESPACE_BEGIN
  13. class FactionID;
  14. enum class ETerrainId;
  15. enum class EAlignment : uint8_t;
  16. template<typename T> class Identifier;
  17. class DLL_LINKAGE Faction : public EntityT<FactionID>
  18. {
  19. public:
  20. virtual bool hasTown() const = 0;
  21. virtual Identifier<ETerrainId> getNativeTerrain() const = 0;
  22. virtual EAlignment getAlignment() const = 0;
  23. };
  24. VCMI_LIB_NAMESPACE_END