BVB Source Codes

CRYENGINE Show BehaviorTreeGraft.h Source code

Return Download CRYENGINE: download BehaviorTreeGraft.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef BehaviorTreeGraft_h
  4. #define BehaviorTreeGraft_h
  5.  
  6. #pragma once
  7.  
  8. #include <CryAISystem/BehaviorTree/IBehaviorTreeGraft.h>
  9.  
  10. namespace BehaviorTree
  11. {
  12. class GraftManager
  13.         : public IGraftManager
  14. {
  15. public:
  16.  
  17.         GraftManager() {}
  18.         ~GraftManager() {}
  19.  
  20.         void Reset();
  21.  
  22.         void GraftNodeReady(EntityId entityId, IGraftNode* graftNode);
  23.         void GraftNodeTerminated(EntityId entityId);
  24.         void GraftBehaviorComplete(EntityId entityId);
  25.  
  26.         // IGraftManager
  27.         virtual bool RunGraftBehavior(EntityId entityId, const char* behaviorName, XmlNodeRef behaviorXml, IGraftBehaviorListener* listener) override;
  28.         virtual bool RequestGraftMode(EntityId entityId, IGraftModeListener* listener) override;
  29.         virtual void CancelGraftMode(EntityId entityId) override;
  30.         // ~IGraftManager
  31.  
  32. private:
  33.  
  34.         typedef VectorMap<EntityId, IGraftModeListener*> GraftModeRequestsContainer;
  35.         GraftModeRequestsContainer m_graftModeRequests;
  36.  
  37.         typedef VectorMap<EntityId, IGraftBehaviorListener*> GraftBehaviorRequestsContainer;
  38.         GraftBehaviorRequestsContainer m_graftBehaviorRequests;
  39.  
  40.         typedef VectorMap<EntityId, IGraftNode*> ActiveGraftNodesContainer;
  41.         ActiveGraftNodesContainer m_activeGraftNodes;
  42. };
  43. }
  44.  
  45. #endif // BehaviorTreeGraft_h
  46.  
downloadBehaviorTreeGraft.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