BVB Source Codes

CRYENGINE Show VehicleUsableActionFlip.h Source code

Return Download CRYENGINE: download VehicleUsableActionFlip.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 recover a vehicle by flipping it over
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - Created by Stan Fichele
  12.  
  13. *************************************************************************/
  14. #ifndef __VEHICLEUSABLEACTIONFLIP_H__
  15. #define __VEHICLEUSABLEACTIONFLIP_H__
  16.  
  17. class CVehicleUsableActionFlip
  18.         : public IVehicleAction
  19. {
  20.         IMPLEMENT_VEHICLEOBJECT
  21. public:
  22.  
  23.         CVehicleUsableActionFlip();
  24.         ~CVehicleUsableActionFlip() {}
  25.  
  26.         // IVehicleAction
  27.         virtual bool Init(IVehicle* pVehicle, const CVehicleParams& table) override;
  28.         virtual void Reset() override;
  29.         virtual void Release() override { delete this; }
  30.  
  31.         virtual int  OnEvent(int eventType, SVehicleEventParams& eventParams) override;
  32.         void         GetMemoryStatistics(ICrySizer* s);
  33.         // ~IVehicleAction
  34.  
  35.         // IVehicleObject
  36.         virtual void Serialize(TSerialize ser, EEntityAspects aspects) override                      {}
  37.         virtual void Update(const float deltaTime) override;
  38.         virtual void OnVehicleEvent(EVehicleEvent event, const SVehicleEventParams& params) override {}
  39.         // ~IVehicleObject
  40.  
  41. protected:
  42.  
  43.         CVehicle* m_pVehicle;
  44.         float     m_timer;
  45.         float     m_postReorientedTimer;
  46.         Vec3      m_localAngVel;
  47. };
  48.  
  49. #endif
  50.  
downloadVehicleUsableActionFlip.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