BVB Source Codes

CRYENGINE Show VehicleUsableActionEnter.h Source code

Return Download CRYENGINE: download VehicleUsableActionEnter.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 usable action to enter a vehicle seat
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 19:01:2006: Created by Mathieu Pinard
  12.  
  13. *************************************************************************/
  14. #ifndef __VEHICLEUSABLEACTIONENTER_H__
  15. #define __VEHICLEUSABLEACTIONENTER_H__
  16.  
  17. class CVehicleUsableActionEnter
  18.         : public IVehicleAction
  19. {
  20.         IMPLEMENT_VEHICLEOBJECT
  21. public:
  22.  
  23.         CVehicleUsableActionEnter()
  24.                 : m_pVehicle(nullptr)
  25.         {
  26.         }
  27.  
  28.         ~CVehicleUsableActionEnter() {}
  29.  
  30.         // IVehicleAction
  31.         virtual bool Init(IVehicle* pVehicle, const CVehicleParams& table) override;
  32.         virtual void Reset() override   {}
  33.         virtual void Release() override { delete this; }
  34.  
  35.         virtual int  OnEvent(int eventType, SVehicleEventParams& eventParams) override;
  36.         void         GetMemoryStatistics(ICrySizer* s);
  37.         // ~IVehicleAction
  38.  
  39.         // IVehicleObject
  40.         virtual void Serialize(TSerialize ser, EEntityAspects aspects) override                      {}
  41.         virtual void Update(const float deltaTime) override                                          {}
  42.         virtual void OnVehicleEvent(EVehicleEvent event, const SVehicleEventParams& params) override {}
  43.         // ~IVehicleObject
  44.  
  45. protected:
  46.  
  47.         bool IsSeatAvailable(IVehicleSeat* pSeat, EntityId userId);
  48.  
  49.         CVehicle* m_pVehicle;
  50.  
  51.         typedef std::vector<TVehicleSeatId> TVehicleSeatIdVector;
  52.         TVehicleSeatIdVector m_seatIds;
  53. };
  54.  
  55. #endif
  56.  
downloadVehicleUsableActionEnter.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