BVB Source Codes

CRYENGINE Show VehiclePartParticleEffect.h Source code

Return Download CRYENGINE: download VehiclePartParticleEffect.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: Vehicle part class that spawns a particle effect and attaches it to the vehicle.
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 01:09:2010: Created by Paul Slinger
  12.  
  13. *************************************************************************/
  14.  
  15. #ifndef __VEHICLEPARTPARTICLEEFFECT_H__
  16. #define __VEHICLEPARTPARTICLEEFFECT_H__
  17.  
  18. #include "IGameObject.h"
  19. #include "VehiclePartBase.h"
  20.  
  21. class CVehiclePartParticleEffect : public CVehiclePartBase
  22. {
  23. public:
  24.  
  25.         IMPLEMENT_VEHICLEOBJECT
  26.  
  27.         CVehiclePartParticleEffect();
  28.  
  29.         ~CVehiclePartParticleEffect();
  30.  
  31.         virtual bool Init(IVehicle* pVehicle, const CVehicleParams& table, IVehiclePart* parent, CVehicle::SPartInitInfo& initInfo, int partType) override;
  32.         virtual void PostInit() override;
  33.         virtual void Reset() override;
  34.         virtual void Update(const float frameTime) override;
  35.         virtual void OnVehicleEvent(EVehicleEvent event, const SVehicleEventParams& params) override;
  36.         // PS - May need to implement SetLocalTM(), GetLocalTM(), GetWorldTM() and GetLocalBounds here, but that would require quite a lot of extra storage and calculations.
  37.         virtual void GetMemoryUsage(ICrySizer* pSizer) const override;
  38.  
  39.         IEntity*     GetPartEntity() const;
  40.  
  41. private:
  42.  
  43.         void ActivateParticleEffect(bool activate);
  44.  
  45.         int              m_id;
  46.  
  47.         string           m_particleEffectName, m_helperName;
  48.  
  49.         IParticleEffect* m_pParticleEffect;
  50.  
  51.         IVehicleHelper*  m_pHelper;
  52. };
  53.  
  54. #endif //__VEHICLEPARTPARTICLEEFFECT_H__
  55.  
downloadVehiclePartParticleEffect.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