PlayerGotTurn.h 675 B

123456789101112131415161718192021222324252627282930313233343536
  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. namespace events
  14. {
  15. class DLL_LINKAGE CPlayerGotTurn : public PlayerGotTurn
  16. {
  17. public:
  18. CPlayerGotTurn();
  19. bool isEnabled() const override;
  20. PlayerColor getPlayer() const override;
  21. void setPlayer(const PlayerColor & value) override;
  22. int32_t getPlayerIndex() const override;
  23. void setPlayerIndex(int32_t value) override;
  24. private:
  25. PlayerColor player;
  26. };
  27. }