BVB Source Codes

CRYENGINE Show PathfinderNavigationSystemUser.h Source code

Return Download CRYENGINE: download PathfinderNavigationSystemUser.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /********************************************************************
  4.    -------------------------------------------------------------------------
  5.    File name: PathfinderNavigationSystemUser.h
  6.    Description: This class acts as a shell to allow the mnm pathfinder to
  7.                correctly respects the safe update of the navigation
  8.                system.
  9.  *********************************************************************/
  10.  
  11. #ifndef PATHFINDERNAVIGATIONSYSTEMUSER_H
  12. #define PATHFINDERNAVIGATIONSYSTEMUSER_H
  13.  
  14. #include <CryAISystem/INavigationSystem.h>
  15. #include "MNMPathfinder.h"
  16.  
  17. namespace MNM
  18. {
  19. class PathfinderNavigationSystemUser : public INavigationSystemUser
  20. {
  21. public:
  22.         virtual ~PathfinderNavigationSystemUser() {}
  23.  
  24.         CMNMPathfinder* GetPathfinderImplementation() { return &m_pathfinder; }
  25.  
  26.         // INavigationSystemUser
  27.         virtual void Reset()                                              { m_pathfinder.Reset(); }
  28.         virtual void UpdateForSynchronousOrAsynchronousReadingOperation() { m_pathfinder.Update(); }
  29.         virtual void UpdateForSynchronousWritingOperations()              {};
  30.         virtual void CompleteRunningTasks()                               { m_pathfinder.WaitForJobsToFinish(); }
  31.         // ~INavigationSystemUser
  32.  
  33. private:
  34.         CMNMPathfinder m_pathfinder;
  35. };
  36. }
  37.  
  38. #endif // PATHFINDERNAVIGATIONSYSTEMUSER_H
  39.  
downloadPathfinderNavigationSystemUser.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