AnimGraphTransitionConditionFixture.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 "SystemComponentFixture.h"
  10. #include <Tests/TestAssetCode/AnimGraphFactory.h>
  11. namespace EMotionFX
  12. {
  13. class Actor;
  14. class ActorInstance;
  15. class AnimGraph;
  16. class AnimGraphInstance;
  17. class AnimGraphMotionNode;
  18. class AnimGraphStateMachine;
  19. class AnimGraphStateTransition;
  20. class AnimGraphObject;
  21. class MotionSet;
  22. class AnimGraphTransitionConditionFixture
  23. : public SystemComponentFixture
  24. {
  25. public:
  26. void SetUp() override;
  27. void TearDown() override;
  28. virtual void AddNodesToAnimGraph()
  29. {
  30. }
  31. TwoMotionNodeAnimGraph* GetAnimGraph() const
  32. {
  33. return m_animGraph.get();
  34. }
  35. AnimGraphInstance* GetAnimGraphInstance() const
  36. {
  37. return m_animGraphInstance;
  38. }
  39. protected:
  40. AnimGraphStateMachine* m_stateMachine = nullptr;
  41. AnimGraphInstance* m_animGraphInstance = nullptr;
  42. AnimGraphMotionNode* m_motionNodeA = nullptr;
  43. AnimGraphMotionNode* m_motionNodeB = nullptr;
  44. AnimGraphStateTransition* m_transition = nullptr;
  45. AZStd::unique_ptr<Actor> m_actor;
  46. AZStd::unique_ptr<TwoMotionNodeAnimGraph> m_animGraph;
  47. MotionSet* m_motionSet = nullptr;
  48. ActorInstance* m_actorInstance = nullptr;
  49. };
  50. }