BVB Source Codes

CRYENGINE Show AngleAlert.h Source code

Return Download CRYENGINE: download AngleAlert.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:   AngleAlert.h
  6.    $Id$
  7.    $DateTime$
  8.    Description: Single Range donut
  9.    ---------------------------------------------------------------------
  10.    History:
  11.    - 11:09:2007 : Created by Ricardo Pillosu
  12.  
  13.  *********************************************************************/
  14. #ifndef _ANGLE_ALERT_H_
  15. #define _ANGLE_ALERT_H_
  16.  
  17. class CPersonalRangeSignaling;
  18.  
  19. class CAngleAlert
  20. {
  21.  
  22. public:
  23.         // Base ----------------------------------------------------------
  24.         CAngleAlert(CPersonalRangeSignaling* pPersonal);
  25.         virtual ~CAngleAlert();
  26.         void Init(float fAngle, float fBoundary, const char* sSignal, IAISignalExtraData* pData = NULL);
  27.  
  28.         // Utils ---------------------------------------------------------
  29.         bool  Check(const Vec3& vPos) const;
  30.         bool  CheckPlusBoundary(const Vec3& vPos) const;
  31.         float GetAngleTo(const Vec3& vPos) const;
  32.  
  33.         bool  operator<(const CAngleAlert& AngleAlert) const
  34.         {
  35.                 return(m_fAngle < AngleAlert.m_fAngle);
  36.         }
  37.  
  38.         bool Check(float fAngle) const
  39.         {
  40.                 return(fAngle < m_fAngle);
  41.         }
  42.  
  43.         bool CheckPlusBoundary(float fAngle) const
  44.         {
  45.                 return(fAngle < m_fBoundary);
  46.         }
  47.  
  48.         const string& GetSignal() const
  49.         {
  50.                 return(m_sSignal);
  51.         }
  52.  
  53.         IAISignalExtraData* GetSignalData() const
  54.         {
  55.                 return(m_pSignalData);
  56.         }
  57.  
  58. private:
  59.         CPersonalRangeSignaling* m_pPersonal;
  60.         IAISignalExtraData*      m_pSignalData;
  61.         float                    m_fAngle;
  62.         float                    m_fBoundary;
  63.         string                   m_sSignal;
  64. };
  65. #endif // _ANGLE_ALERT_H_
  66.  
downloadAngleAlert.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