BVB Source Codes

CRYENGINE Show MovementBlock_FollowPath.h Source code

Return Download CRYENGINE: download MovementBlock_FollowPath.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #pragma once
  4.  
  5. #ifndef MovementBlock_FollowPath_h
  6.         #define MovementBlock_FollowPath_h
  7.  
  8.         #include "MovementPlan.h"
  9.         #include <CryAISystem/MovementStyle.h>
  10.         #include "MovementHelpers.h"
  11.  
  12. namespace Movement
  13. {
  14. namespace MovementBlocks
  15. {
  16. class FollowPath : public Movement::Block
  17. {
  18. public:
  19.         FollowPath(const CNavPath& path, const float endDistance, const MovementStyle& style, const bool endsInCover);
  20.         virtual bool                    InterruptibleNow() const { return true; }
  21.         virtual void                    Begin(IMovementActor& actor);
  22.         virtual void                    End(IMovementActor& actor);
  23.         virtual Movement::Block::Status Update(const MovementUpdateContext& context);
  24.  
  25.         void                            UpdateLooking(const MovementUpdateContext& context, const bool targetReachable, const float pathDistanceToEnd, const Vec3& followTargetPosition);
  26.         virtual const char*             GetName() const { return "FollowPath"; }
  27.  
  28. private:
  29.         void UpdateCoverLocations(CPipeUser& pipeUser);
  30.  
  31. private:
  32.         CNavPath                         m_path;
  33.         MovementStyle                    m_style;
  34.         Movement::Helpers::StuckDetector m_stuckDetector;
  35.         std::shared_ptr<Vec3>            m_lookTarget;
  36.         float                            m_finishBlockEndDistance;
  37.         float                            m_accumulatedPathFollowerFailureTime;
  38.         bool                             m_endsInCover;
  39. };
  40. }
  41. }
  42.  
  43. #endif // MovementBlock_FollowPath_h
  44.  
downloadMovementBlock_FollowPath.h Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top