BVB Source Codes

CRYENGINE Show VehicleSeatActionMovement.h Source code

Return Download CRYENGINE: download VehicleSeatActionMovement.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 which handle the vehicle movement
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 20:10:2006: Created by Mathieu Pinard
  12.  
  13. *************************************************************************/
  14. #ifndef __VEHICLESEATACTIONMOVEMENT_H__
  15. #define __VEHICLESEATACTIONMOVEMENT_H__
  16.  
  17. class CVehicleSeatActionMovement
  18.         : public IVehicleSeatAction
  19. {
  20.         IMPLEMENT_VEHICLEOBJECT
  21. public:
  22.  
  23.         CVehicleSeatActionMovement();
  24.         ~CVehicleSeatActionMovement();
  25.  
  26.         // IVehicleSeatAction
  27.         virtual bool Init(IVehicle* pVehicle, IVehicleSeat* pSeat, const CVehicleParams& table) override;
  28.         virtual bool Init(IVehicle* pVehicle, IVehicleSeat* pSeat);
  29.         virtual void Reset() override;
  30.         virtual void Release() override { delete this; }
  31.  
  32.         virtual void StartUsing(EntityId passengerId) override;
  33.         virtual void ForceUsage() override {}
  34.         virtual void StopUsing() override;
  35.         virtual void OnAction(const TVehicleActionId actionId, int activationMode, float value) override;
  36.         virtual void OnVehicleEvent(EVehicleEvent event, const SVehicleEventParams& params) override {}
  37.  
  38.         virtual void Serialize(TSerialize ser, EEntityAspects aspects) override                      {}
  39.         virtual void PostSerialize() override                                                        {}
  40.         virtual void Update(const float deltaTime) override;
  41.  
  42.         virtual void GetMemoryUsage(ICrySizer* s) const override { s->Add(*this); }
  43.         // ~IVehicleSeatAction
  44.  
  45. protected:
  46.  
  47.         IVehicle*     m_pVehicle;
  48.         IVehicleSeat* m_pSeat;
  49.  
  50.         float         m_actionForward;
  51.         float         m_delayedStop;
  52. };
  53.  
  54. #endif
  55.  
downloadVehicleSeatActionMovement.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