Player.h 563 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Player.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 PlayerColor;
  14. class TeamID;
  15. class IBonusBearer;
  16. class DLL_LINKAGE Player : public EntityWithBonuses<PlayerColor>
  17. {
  18. public:
  19. virtual TeamID getTeam() const = 0;
  20. virtual bool isHuman() const = 0;
  21. virtual int getResourceAmount(int type) const = 0;
  22. };
  23. VCMI_LIB_NAMESPACE_END