BVB Source Codes

CRYENGINE Show SignalTimers.h Source code

Return Download CRYENGINE: download SignalTimers.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:   SignalTimer.h
  6.    $Id$
  7.    $DateTime$
  8.    Description: Signal entities based on configurable timers
  9.    ---------------------------------------------------------------------
  10.    History:
  11.    - 16:04:2007 : Created by Ricardo Pillosu
  12.  
  13.  *********************************************************************/
  14. #ifndef _SIGNAL_TIMER_H_
  15. #define _SIGNAL_TIMER_H_
  16.  
  17. class CPersonalSignalTimer;
  18.  
  19. class CSignalTimer
  20. {
  21.  
  22. public:
  23.  
  24.         /*$1- Singleton Stuff ----------------------------------------------------*/
  25.         static CSignalTimer& ref();
  26.         static bool          Create();
  27.         static void          Shutdown();
  28.         void                 Reset();
  29.  
  30.         /*$1- IEditorSetGameModeListener -----------------------------------------*/
  31.         void OnEditorSetGameMode(bool bGameMode);
  32.         void OnProxyReset(EntityId IdEntity);
  33.  
  34.         /*$1- Basics -------------------------------------------------------------*/
  35.         void Init();
  36.         bool Update(float fElapsedTime);
  37.  
  38.         /*$1- Utils --------------------------------------------------------------*/
  39.         bool EnablePersonalManager(EntityId IdEntity, const char* sSignal);
  40.         bool DisablePersonalSignalTimer(EntityId IdEntity, const char* sSignal);
  41.         bool ResetPersonalTimer(EntityId IdEntity, const char* sSignal);
  42.         bool EnableAllPersonalManagers(EntityId IdEntity);
  43.         bool DisablePersonalSignalTimers(EntityId IdEntity);
  44.         bool ResetPersonalTimers(EntityId IdEntity);
  45.         bool SetTurnRate(EntityId IdEntity, const char* sSignal, float fTime, float fTimeMax = -1.0f);
  46.         void SetDebug(bool bDebug);
  47.         bool GetDebug() const;
  48.  
  49. protected:
  50.  
  51.         /*$1- Creation and destruction via singleton -----------------------------*/
  52.         CSignalTimer();
  53.         virtual ~CSignalTimer();
  54.  
  55.         /*$1- Utils --------------------------------------------------------------*/
  56.         CPersonalSignalTimer* GetPersonalSignalTimer(EntityId IdEntity, const char* sSignal) const;
  57.         CPersonalSignalTimer* CreatePersonalSignalTimer(EntityId IdEntity, const char* sSignal);
  58.  
  59. private:
  60.  
  61.         /*$1- Members ------------------------------------------------------------*/
  62.         bool                               m_bInit;
  63.         bool                               m_bDebug;
  64.         static CSignalTimer*               m_pInstance;
  65.         std::vector<CPersonalSignalTimer*> m_vecPersonalSignalTimers;
  66. };
  67. #endif // _SIGNAL_TIMER_H_
  68.  
downloadSignalTimers.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