ObjectVisitStarted.h 898 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * ObjectVisitStarted.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/ObjectVisitStarted.h>
  12. #include "../GameConstants.h"
  13. VCMI_LIB_NAMESPACE_BEGIN
  14. namespace events
  15. {
  16. class DLL_LINKAGE CObjectVisitStarted : public ObjectVisitStarted
  17. {
  18. public:
  19. CObjectVisitStarted(const PlayerColor & player_, const ObjectInstanceID & heroId_, const ObjectInstanceID & objId_);
  20. PlayerColor getPlayer() const override;
  21. ObjectInstanceID getHero() const override;
  22. ObjectInstanceID getObject() const override;
  23. bool isEnabled() const override;
  24. void setEnabled(bool enable) override;
  25. private:
  26. PlayerColor player;
  27. ObjectInstanceID heroId;
  28. ObjectInstanceID objId;
  29. bool enabled;
  30. };
  31. }
  32. VCMI_LIB_NAMESPACE_END