BVB Source Codes

CRYENGINE Show IslandConnectionsManager.cpp Source code

Return Download CRYENGINE: download IslandConnectionsManager.cpp Source code - Download CRYENGINE Source code - Type:.cpp
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #include "StdAfx.h"
  4. #include "IslandConnectionsManager.h"
  5.  
  6. IslandConnectionsManager::IslandConnectionsManager()
  7. {
  8. }
  9.  
  10. void IslandConnectionsManager::Reset()
  11. {
  12.         m_globalIslandConnections.Reset();
  13. }
  14.  
  15. MNM::IslandConnections& IslandConnectionsManager::GetIslandConnections()
  16. {
  17.         return m_globalIslandConnections;
  18. }
  19.  
  20. void IslandConnectionsManager::SetOneWayConnectionBetweenIsland(const MNM::GlobalIslandID fromIsland, const MNM::IslandConnections::Link& link)
  21. {
  22.         m_globalIslandConnections.SetOneWayConnectionBetweenIsland(fromIsland, link);
  23. }
  24.  
  25. bool IslandConnectionsManager::AreIslandsConnected(const IEntity* pEntityToTestOffGridLinks, const MNM::GlobalIslandID startIsland, const MNM::GlobalIslandID endIsland) const
  26. {
  27.         FUNCTION_PROFILER(gEnv->pSystem, PROFILE_AI);
  28.  
  29.         MNM::IslandConnections::TIslandsWay way;
  30.         return m_globalIslandConnections.CanNavigateBetweenIslands(pEntityToTestOffGridLinks, startIsland, endIsland, way);
  31. }
  32.  
  33. #ifdef CRYAISYSTEM_DEBUG
  34.  
  35. void IslandConnectionsManager::DebugDraw() const
  36. {
  37.         m_globalIslandConnections.DebugDraw();
  38. }
  39.  
  40. #endif
  41.  
downloadIslandConnectionsManager.cpp 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