BVB Source Codes

CRYENGINE Show VehiclePartPulsingLight.h Source code

Return Download CRYENGINE: download VehiclePartPulsingLight.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. // -------------------------------------------------------------------------
  4. //  File name:   VehiclePartPulsingLight.h
  5. //  Version:     v1.00
  6. //  Created:     03/14/2011
  7. //  Compilers:   Visual Studio.NET
  8. //  Description: A vehicle light which pulses over time
  9. // -------------------------------------------------------------------------
  10. //  History:
  11. //
  12. ////////////////////////////////////////////////////////////////////////////
  13.  
  14. #ifndef __VEHICLEPARTPULSINGLIGHT_H__
  15. #define __VEHICLEPARTPULSINGLIGHT_H__
  16.  
  17. #include "VehiclePartLight.h"
  18.  
  19. class CVehiclePartPulsingLight
  20.         : public CVehiclePartLight
  21. {
  22.         IMPLEMENT_VEHICLEOBJECT
  23. public:
  24.  
  25.         CVehiclePartPulsingLight();
  26.  
  27.         // IVehiclePart
  28.         virtual bool Init(IVehicle* pVehicle, const CVehicleParams& table, IVehiclePart* parent, CVehicle::SPartInitInfo& initInfo, int partType) override;
  29.         virtual void OnEvent(const SVehiclePartEvent& event) override;
  30.         // ~IVehiclePart
  31.  
  32.         virtual void ToggleLight(bool enable) override;
  33.  
  34. protected:
  35.  
  36.         virtual void UpdateLight(const float frameTime) override;
  37.  
  38.         float m_colorMult;
  39.         float m_minColorMult;
  40.         float m_currentColorMultSpeed;
  41.  
  42.         //Data from XML
  43.         float m_colorMultSpeed;
  44.         float m_toggleOnMinDamageRatio;
  45.  
  46.         float m_colorMultSpeedStageTwo;
  47.         float m_toggleStageTwoMinDamageRatio;
  48.  
  49.         float m_colorChangeTimer;
  50. };
  51.  
  52. #endif //__VEHICLEPARTPULSINGLIGHT_H__
  53.  
downloadVehiclePartPulsingLight.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