ManipulatorRequestBus.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/EBus/EBus.h>
  10. #include <AzCore/Math/Vector3.h>
  11. #include <AzCore/RTTI/BehaviorContext.h>
  12. namespace AppleKraken
  13. {
  14. class ManipulatorRequest : public AZ::EBusTraits
  15. {
  16. public:
  17. static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
  18. static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::ById;
  19. // Messages are addressed by EntityId.
  20. using BusIdType = AZ::EntityId;
  21. virtual void PickApple(const AZ::Vector3 position) = 0;
  22. virtual AZ::Vector3 GetPosition() = 0;
  23. virtual void Retrieve() = 0;
  24. virtual void ResetApple() = 0;
  25. virtual void RetrieveNose() = 0;
  26. virtual int GetStatus() = 0;
  27. virtual bool IsNoseRetreived() = 0;
  28. virtual AZ::EntityId GetEffectorEntity() = 0;
  29. virtual AZ::EntityId GetRestEntity() = 0;
  30. };
  31. using ManipulatorRequestBus = AZ::EBus<ManipulatorRequest>;
  32. } // namespace AppleKraken