/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or the license accompanying this file. Do not * remove or modify any license notices. This file is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ namespace EMotionFX { class TestRagdoll : public Physics::Ragdoll { public: AZ_RTTI(TestRagdoll, "{A8FCEA6D-DC28-4D7D-9284-D98AD771E944}", Physics::Ragdoll) MOCK_METHOD1(EnableSimulation, void(const Physics::RagdollState&)); MOCK_METHOD1(EnableSimulationQueued, void(const Physics::RagdollState&)); MOCK_METHOD0(DisableSimulation, void()); MOCK_METHOD0(DisableSimulationQueued, void()); MOCK_METHOD0(IsSimulated, bool()); MOCK_CONST_METHOD1(GetState, void(Physics::RagdollState&)); MOCK_METHOD1(SetState, void(const Physics::RagdollState&)); MOCK_METHOD1(SetStateQueued, void(const Physics::RagdollState&)); MOCK_CONST_METHOD2(GetNodeState, void(size_t, Physics::RagdollNodeState&)); MOCK_METHOD2(SetNodeState, void(size_t, const Physics::RagdollNodeState&)); MOCK_CONST_METHOD1(GetNode, Physics::RagdollNode*(size_t)); MOCK_CONST_METHOD0(GetNumNodes, size_t()); MOCK_CONST_METHOD0(GetWorldId, AZ::Crc32()); // WorldBody MOCK_CONST_METHOD0(GetEntityId, AZ::EntityId()); MOCK_CONST_METHOD0(GetWorld, Physics::World*()); MOCK_CONST_METHOD0(GetTransform, AZ::Transform()); MOCK_METHOD1(SetTransform, void(const AZ::Transform&)); MOCK_CONST_METHOD0(GetPosition, AZ::Vector3()); MOCK_CONST_METHOD0(GetOrientation, AZ::Quaternion()); MOCK_CONST_METHOD0(GetAabb, AZ::Aabb()); MOCK_METHOD1(RayCast, Physics::RayCastHit(const Physics::RayCastRequest&)); MOCK_CONST_METHOD0(GetNativeType, AZ::Crc32()); MOCK_CONST_METHOD0(GetNativePointer, void*()); MOCK_METHOD1(AddToWorld, void(Physics::World&)); MOCK_METHOD1(RemoveFromWorld, void(Physics::World&)); }; } // namespace EMotionFX