BVB Source Codes

CRYENGINE Show VehicleSeatActionPassengerIK.h Source code

Return Download CRYENGINE: download VehicleSeatActionPassengerIK.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 to handle IK on the passenger body
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 10:01:2006: Created by Mathieu Pinard
  12.  
  13. *************************************************************************/
  14. #ifndef __VEHICLESEATACTIONPASSENGERIK_H__
  15. #define __VEHICLESEATACTIONPASSENGERIK_H__
  16.  
  17. class CVehicleSeatActionPassengerIK
  18.         : public IVehicleSeatAction
  19. {
  20.         IMPLEMENT_VEHICLEOBJECT
  21. public:
  22.  
  23.         virtual bool Init(IVehicle* pVehicle, IVehicleSeat* pSeat, const CVehicleParams& table) override;
  24.         virtual void Reset() override;
  25.         virtual void Release() override { delete this; }
  26.  
  27.         virtual void StartUsing(EntityId passengerId) override;
  28.         virtual void ForceUsage() override                                                               {}
  29.         virtual void StopUsing() override;
  30.         virtual void OnAction(const TVehicleActionId actionId, int activationMode, float value) override {}
  31.  
  32.         virtual void Serialize(TSerialize ser, EEntityAspects aspects) override                          {}
  33.         virtual void PostSerialize() override                                                            {}
  34.         virtual void Update(const float deltaTime) override;
  35.  
  36.         virtual void OnVehicleEvent(EVehicleEvent event, const SVehicleEventParams& params) override {}
  37.  
  38.         virtual void GetMemoryUsage(ICrySizer* s) const override;
  39.  
  40. protected:
  41.  
  42.         IVehicle* m_pVehicle;
  43.         EntityId  m_passengerId;
  44.  
  45.         struct SIKLimb
  46.         {
  47.                 string          limbName;
  48.                 IVehicleHelper* pHelper;
  49.                 void            GetMemoryUsage(ICrySizer* pSizer) const
  50.                 {
  51.                         pSizer->AddObject(limbName);
  52.                 }
  53.         };
  54.  
  55.         typedef std::vector<SIKLimb> TIKLimbVector;
  56.         TIKLimbVector m_ikLimbs;
  57.  
  58.         bool          m_waitShortlyBeforeStarting;
  59. };
  60.  
  61. #endif
  62.  
downloadVehicleSeatActionPassengerIK.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