BVB Source Codes

CRYENGINE Show MovementBlock_UseExactPositioning.h Source code

Return Download CRYENGINE: download MovementBlock_UseExactPositioning.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_UseExactPositioning_h
  6.         #define MovementBlock_UseExactPositioning_h
  7.  
  8.         #include "MovementBlock_UseExactPositioningBase.h"
  9.  
  10. namespace Movement
  11. {
  12. namespace MovementBlocks
  13. {
  14. // This block has two responsibilities but the logic was so closely
  15. // mapped that I decided to combine them into one.
  16. //
  17. // The two parts are 'Prepare' and 'Traverse'.
  18. //
  19. // If the exact positioning fails to position the character it reports the
  20. // error through the bubbles and teleports to the position, and then
  21. // proceeds with the plan.
  22.  
  23. class UseExactPositioning : public UseExactPositioningBase
  24. {
  25. public:
  26.         typedef UseExactPositioningBase Base;
  27.  
  28.         UseExactPositioning(const CNavPath& path, const MovementStyle& style);
  29.         virtual const char* GetName() const override          { return "UseExactPositioning"; }
  30.         virtual bool        InterruptibleNow() const override { return true; }
  31.  
  32. private:
  33.         virtual UseExactPositioningBase::TryRequestingExactPositioningResult TryRequestingExactPositioning(const MovementUpdateContext& context) override;
  34.         virtual void                                                         HandleExactPositioningError(const MovementUpdateContext& context) override;
  35. };
  36. }
  37. }
  38.  
  39. #endif // MovementBlock_UseExactPositioning_h
  40.  
downloadMovementBlock_UseExactPositioning.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