ObjectVisitStarted.h 848 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. namespace events
  14. {
  15. class DLL_LINKAGE CObjectVisitStarted : public ObjectVisitStarted
  16. {
  17. public:
  18. CObjectVisitStarted(const PlayerColor & player_, const ObjectInstanceID & heroId_, const ObjectInstanceID & objId_);
  19. PlayerColor getPlayer() const override;
  20. ObjectInstanceID getHero() const override;
  21. ObjectInstanceID getObject() const override;
  22. bool isEnabled() const override;
  23. void setEnabled(bool enable) override;
  24. private:
  25. PlayerColor player;
  26. ObjectInstanceID heroId;
  27. ObjectInstanceID objId;
  28. bool enabled;
  29. };
  30. }