BVB Source Codes

CRYENGINE Show RangeSignaling.h Source code

Return Download CRYENGINE: download RangeSignaling.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:   RangeSignaling.h
  6.    $Id$
  7.    $DateTime$
  8.    Description: Signal entities based on ranges from other entities
  9.    ---------------------------------------------------------------------
  10.    History:
  11.    - 09:04:2007 : Created by Ricardo Pillosu
  12.  
  13.  *********************************************************************/
  14. #ifndef _RANGE_SIGNALING_H_
  15. #define _RANGE_SIGNALING_H_
  16.  
  17. #include "IRangeSignaling.h"
  18.  
  19. class CPersonalRangeSignaling;
  20.  
  21. class CRangeSignaling : public IRangeSignaling
  22. {
  23.  
  24. public:
  25.  
  26.         /*$1- Singleton Stuff ----------------------------------------------------*/
  27.         static CRangeSignaling& ref();
  28.         static bool             Create();
  29.         static void             Shutdown();
  30.         void                    Reset();
  31.  
  32.         /*$1- IEditorSetGameModeListener -----------------------------------------*/
  33.         void OnEditorSetGameMode(bool bGameMode);
  34.         void OnProxyReset(EntityId IdEntity);
  35.  
  36.         /*$1- Basics -------------------------------------------------------------*/
  37.         void Init();
  38.         bool Update(float fElapsedTime);
  39.  
  40.         /*$1- Utils --------------------------------------------------------------*/
  41.         bool AddRangeSignal(EntityId IdEntity, float fRadius, float fBoundary, const char* sSignal, IAISignalExtraData* pData = NULL);
  42.         bool AddTargetRangeSignal(EntityId IdEntity, EntityId IdTarget, float fRadius, float fBoundary, const char* sSignal, IAISignalExtraData* pData = NULL);
  43.         bool AddAngleSignal(EntityId IdEntity, float fAngle, float fBoundary, const char* sSignal, IAISignalExtraData* pData = NULL);
  44.         bool DestroyPersonalRangeSignaling(EntityId IdEntity);
  45.         void ResetPersonalRangeSignaling(EntityId IdEntity);
  46.         void EnablePersonalRangeSignaling(EntityId IdEntity, bool bEnable);
  47.         void SetDebug(bool bDebug);
  48.         bool GetDebug() const;
  49.  
  50. protected:
  51.  
  52.         /*$1- Creation and destruction via singleton -----------------------------*/
  53.         CRangeSignaling();
  54.         virtual ~CRangeSignaling();
  55.  
  56.         /*$1- Utils --------------------------------------------------------------*/
  57.         CPersonalRangeSignaling* GetPersonalRangeSignaling(EntityId IdEntity) const;
  58.         CPersonalRangeSignaling* CreatePersonalRangeSignaling(EntityId IdEntity);
  59.  
  60. private:
  61.         typedef std::map<EntityId, CPersonalRangeSignaling*> MapPersonals;
  62.  
  63.         /*$1- Members ------------------------------------------------------------*/
  64.         bool                    m_bInit;
  65.         bool                    m_bDebug;
  66.         static CRangeSignaling* m_pInstance;
  67.         MapPersonals            m_Personals;
  68. };
  69. #endif // _RANGE_SIGNALING_H_
  70.  
downloadRangeSignaling.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