BVB Source Codes

CRYENGINE Show GoalOp_G04.h Source code

Return Download CRYENGINE: download GoalOp_G04.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #if 0
  4. // deprecated and won't compile at all...
  5. /********************************************************************
  6.    -------------------------------------------------------------------------
  7.    File name:   GoalOp_G04.h
  8.    Description: Game 04 goalops
  9.              These should move into GameDLL when interfaces allow!
  10.    -------------------------------------------------------------------------
  11.    History:
  12.    - 21:02:2008 - Created by Matthew Jack
  13.    - 2 Mar 2009 - Evgeny Adamenkov: Removed IRenderer
  14.  *********************************************************************/
  15.  
  16. #ifndef __GoalOp_G04_H__
  17.         #define __GoalOp_G04_H__
  18.  
  19.         #pragma once
  20.  
  21.         #include "GoalOp.h"
  22.         #include "GoalOpFactory.h"
  23.  
  24. // Forward declarations
  25. class COPPathFind;
  26. class COPTrace;
  27.  
  28. /**
  29.  * Factory for G04 goalops
  30.  *
  31.  */
  32. class CGoalOpFactoryG04 : public IGoalOpFactory
  33. {
  34.         IGoalOp* GetGoalOp(const char* sGoalOpName, IFunctionHandler* pH, int nFirstParam, GoalParameters& params) const;
  35.         IGoalOp* GetGoalOp(EGoalOperations op, GoalParameters& params) const;
  36. };
  37.  
  38. ////////////////////////////////////////////////////////////////////////////
  39. //
  40. //                              G4APPROACH - makes agent approach a target using his environment
  41. //
  42. ////////////////////////////////////////////////////////////////////////////
  43.  
  44. class COPG4Approach : public CGoalOp
  45. {
  46.         enum EOPG4AMode { EOPG4AS_Evaluate, EOPG4AS_GoNearHidepoint, EOPG4AS_GoToHidepoint, EOPG4AS_Direct };
  47.  
  48.         EOPG4AMode            m_eApproachMode;
  49.         EAIRegister           m_nReg; // Register from which to derive the target
  50.         float                 m_fLastDistance;
  51.         float                 m_fMinEndDistance, m_fMaxEndDistance;
  52.         float                 m_fEndAccuracy;
  53.         bool                  m_bNeedHidespot;
  54.         bool                  m_bForceDirect;
  55.         float                 m_fNotMovingTime;
  56.         CTimeValue            m_fLastTime;
  57.         int                   m_iApproachQueryID, m_iRegenerateCurrentQueryID;
  58.  
  59.         CStrongRef<CAIObject> m_refHideTarget;
  60.         COPTrace*             m_pTraceDirective;
  61.         COPPathFind*          m_pPathfindDirective;
  62. public:
  63.         // fEndDistance - goalpipe finishes at this range
  64.         COPG4Approach(float fMinEndDistance, float MaxEndDistance, bool bForceDirect, EAIRegister nReg);
  65.         COPG4Approach(const XmlNodeRef& node);
  66.         COPG4Approach(const COPG4Approach& rhs);
  67.         virtual ~COPG4Approach();
  68.  
  69.         EGoalOpResult Execute(CPipeUser* pOperand);
  70.         void          DebugDraw(CPipeUser* pOperand) const;
  71.         void          ExecuteDry(CPipeUser* pOperand);
  72.         void          Reset(CPipeUser* pOperand);
  73.         void          Serialize(TSerialize ser);
  74.  
  75. };
  76.  
  77. #endif // __GoalOp_G04_H__
  78. #endif // 0
  79.  
downloadGoalOp_G04.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