BVB Source Codes

CRYENGINE Show VehicleSeatActionSound.h Source code

Return Download CRYENGINE: download VehicleSeatActionSound.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 a seat action for sounds (ie: honk on trucks)
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 16:11:2005: Created by Mathieu Pinard
  12.  
  13. *************************************************************************/
  14.  
  15. #ifndef __VEHICLESEATACTIONSOUND_H__
  16. #define __VEHICLESEATACTIONSOUND_H__
  17.  
  18. class CVehicleSeatActionSound
  19.         : public IVehicleSeatAction
  20. {
  21.         IMPLEMENT_VEHICLEOBJECT
  22. public:
  23.  
  24.         CVehicleSeatActionSound();
  25.  
  26.         virtual bool Init(IVehicle* pVehicle, IVehicleSeat* pSeat, const CVehicleParams& table) override;
  27.         virtual void Reset() override                          {}
  28.         virtual void Release() override                        { delete this; }
  29.  
  30.         virtual void StartUsing(EntityId passengerId) override {}
  31.         virtual void ForceUsage() override                     {}
  32.         virtual void StopUsing() override;
  33.         virtual void OnAction(const TVehicleActionId actionId, int activationMode, float value) override;
  34.  
  35.         virtual void Serialize(TSerialize ser, EEntityAspects aspects) override;
  36.         virtual void PostSerialize() override               {}
  37.         virtual void Update(const float deltaTime) override {}
  38.  
  39.         virtual void ExecuteTrigger(const AudioControlId& controlID);
  40.         virtual void StopTrigger();
  41.  
  42.         virtual void OnVehicleEvent(EVehicleEvent event, const SVehicleEventParams& params) override {}
  43.  
  44.         virtual void GetMemoryUsage(ICrySizer* s) const override;
  45.  
  46. protected:
  47.  
  48.         IVehicle*       m_pVehicle;
  49.         IVehicleHelper* m_pHelper;
  50.         CVehicleSeat*   m_pSeat;
  51.  
  52.         bool            m_enabled;
  53.  
  54.         AudioControlId  m_audioTriggerStartId;
  55.         AudioControlId  m_audioTriggerStopId;
  56. };
  57.  
  58. #endif
  59.  
downloadVehicleSeatActionSound.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