BVB Source Codes

CRYENGINE Show VehiclePartWaterRipplesGenerator.h Source code

Return Download CRYENGINE: download VehiclePartWaterRipplesGenerator.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /*************************************************************************
  4.    -------------------------------------------------------------------------
  5.    $Id$
  6.    $DateTime$
  7.    Description: Implements water ripple generation for boats and similar vehicles
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 04:06:2012: Created by Benito G.R.
  12.  
  13. *************************************************************************/
  14. #ifndef __VEHICLEPAR_RIPPLEGENERATOR_H__
  15. #define __VEHICLEPAR_RIPPLEGENERATOR_H__
  16.  
  17. #include "VehiclePartBase.h"
  18.  
  19. class CVehicle;
  20.  
  21. class CVehiclePartWaterRipplesGenerator
  22.         : public CVehiclePartBase
  23. {
  24.         IMPLEMENT_VEHICLEOBJECT
  25.  
  26. public:
  27.  
  28.         CVehiclePartWaterRipplesGenerator();
  29.         virtual ~CVehiclePartWaterRipplesGenerator();
  30.  
  31.         // IVehiclePart
  32.         virtual bool Init(IVehicle* pVehicle, const CVehicleParams& table, IVehiclePart* parent, CVehicle::SPartInitInfo& initInfo, int partType) override;
  33.         virtual void PostInit() override;
  34.         virtual void Update(const float frameTime) override;
  35.  
  36.         virtual void GetMemoryUsage(ICrySizer* s) const override
  37.         {
  38.                 s->Add(*this);
  39.                 CVehiclePartBase::GetMemoryUsageInternal(s);
  40.         }
  41.         // ~IVehiclePart
  42.  
  43. private:
  44.  
  45.         Vec3      m_localOffset;
  46.         float     m_waterRipplesScale;
  47.         float     m_waterRipplesStrength;
  48.         float     m_minMovementSpeed;
  49.         bool      m_onlyMovingForward;
  50. };
  51.  
  52. #endif //__VEHICLEPAR_RIPPLEGENERATOR_H__
  53.  
downloadVehiclePartWaterRipplesGenerator.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