2
0

PlayerGotTurn.h 725 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * PlayerGotTurn.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 <vcmi/events/PlayerGotTurn.h>
  12. #include "../GameConstants.h"
  13. VCMI_LIB_NAMESPACE_BEGIN
  14. namespace events
  15. {
  16. class DLL_LINKAGE CPlayerGotTurn : public PlayerGotTurn
  17. {
  18. public:
  19. CPlayerGotTurn();
  20. bool isEnabled() const override;
  21. PlayerColor getPlayer() const override;
  22. void setPlayer(const PlayerColor & value) override;
  23. int32_t getPlayerIndex() const override;
  24. void setPlayerIndex(int32_t value) override;
  25. private:
  26. PlayerColor player;
  27. };
  28. }
  29. VCMI_LIB_NAMESPACE_END