BVB Source Codes

CRYENGINE Show Adapters.cpp Source code

Return Download CRYENGINE: download Adapters.cpp Source code - Download CRYENGINE Source code - Type:.cpp
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. // -------------------------------------------------------------------------
  4. //  File name:   Adapters.cpp
  5. //  Created:     02/02/2009 by Matthew
  6. //  Description: Implements adapters for AI objects from external interfaces to internal
  7. //               This is purely a translation layer without concrete instances
  8. //               They can have no state and must remain abstract
  9. // --------------------------------------------------------------------------------------
  10. //  History:
  11. //
  12. /////////////////////////////////////////////////////////////////////////////////////////
  13.  
  14. #include "StdAfx.h"
  15.  
  16. #include "Adapters.h"
  17.  
  18. CWeakRef<CAIObject> GetWeakRefSafe(IAIObject* pObj) { return (pObj ? GetWeakRef((CAIObject*)pObj) : NILREF); }
  19.  
  20. IAIObject*          CAIGroupAdapter::GetAttentionTarget(bool bHostileOnly, bool bLiveOnly) const
  21. {
  22.         CWeakRef<CAIObject> refTarget = GetAttentionTarget(bHostileOnly, bLiveOnly, NILREF);
  23.         return refTarget.GetIAIObject();
  24. }
  25.  
downloadAdapters.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