BVB Source Codes

CRYENGINE Show VehicleDamageBehaviorDisableSeatAction.h Source code

Return Download CRYENGINE: download VehicleDamageBehaviorDisableSeatAction.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __VEHICLEDAMAGEBEHAVIORDISABLESEATACTION_H__
  4. #define __VEHICLEDAMAGEBEHAVIORDISABLESEATACTION_H__
  5.  
  6. class CVehicle;
  7.  
  8. //! Disables all actions or a specific action on a seat.
  9. class CVehicleDamageBehaviorDisableSeatAction : public IVehicleDamageBehavior
  10. {
  11.         IMPLEMENT_VEHICLEOBJECT
  12. public:
  13.  
  14.         CVehicleDamageBehaviorDisableSeatAction();
  15.         virtual ~CVehicleDamageBehaviorDisableSeatAction() {}
  16.  
  17.         virtual bool Init(IVehicle* pVehicle, const CVehicleParams& table) override;
  18.         virtual void Reset() override;
  19.         virtual void Release() override                                         { delete this; }
  20.  
  21.         virtual void Serialize(TSerialize ser, EEntityAspects aspects) override {}
  22.         virtual void Update(const float deltaTime) override                     {}
  23.  
  24.         virtual void OnDamageEvent(EVehicleDamageBehaviorEvent event, const SVehicleDamageBehaviorEventParams& behaviorParams) override;
  25.         virtual void OnVehicleEvent(EVehicleEvent event, const SVehicleEventParams& params) override {}
  26.  
  27.         virtual void GetMemoryUsage(ICrySizer* s) const override;
  28.  
  29. protected:
  30.  
  31.         CVehicle* m_pVehicle;
  32.  
  33.         string    m_seatName;
  34.         string    m_seatActionName;
  35. };
  36.  
  37. #endif
  38.  
downloadVehicleDamageBehaviorDisableSeatAction.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