BVB Source Codes

CRYENGINE Show PipeManager.h Source code

Return Download CRYENGINE: download PipeManager.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:   PipeManager.h
  6.    $Id$
  7.    Description:
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 8:6:2005   14:17 : Created by Kirill Bulatsev
  12.  
  13.  *********************************************************************/
  14. #ifndef __PipeManager_H__
  15. #define __PipeManager_H__
  16.  
  17. #if _MSC_VER > 1000
  18.         #pragma once
  19. #endif
  20.  
  21. #include <map>
  22. #include <CryAISystem/IAgent.h>
  23.  
  24. class CGoalPipe;
  25. class CAISystem;
  26. typedef std::map<string, CGoalPipe*> GoalMap;
  27.  
  28. class CPipeManager
  29. {
  30.         friend class CAISystem;
  31. public:
  32.         enum ActionToTakeWhenDuplicateFound
  33.         {
  34.                 SilentlyReplaceDuplicate,
  35.                 ReplaceDuplicateAndReportError,
  36.         };
  37.  
  38.         CPipeManager(void);
  39.         ~CPipeManager(void);
  40.  
  41.         void       ClearAllGoalPipes();
  42.         IGoalPipe* CreateGoalPipe(const char* pName,
  43.                                   const ActionToTakeWhenDuplicateFound actionToTakeWhenDuplicateFound);
  44.         IGoalPipe* OpenGoalPipe(const char* pName);
  45.         CGoalPipe* IsGoalPipe(const char* pName);
  46.         void       Serialize(TSerialize ser);
  47.  
  48.         /// For debug. Checks the script files for created and used goalpipes and
  49.         /// dumps the unused goalpipes into console. Does not actually use the loaded pipes.
  50.         void CheckGoalpipes();
  51.  
  52. private:
  53.  
  54.         // keeps all possible goal pipes that the agents can use
  55.         GoalMap m_mapGoals;
  56.         bool    m_bDynamicGoalPipes;  // to indicate if goalpipe is created after AISystem initialization, loading of \aiconfig.lua
  57. };
  58.  
  59. #endif // __PipeManager_H__
  60.  
downloadPipeManager.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