BVB Source Codes

CRYENGINE Show VehicleAnimationComponent.h Source code

Return Download CRYENGINE: download VehicleAnimationComponent.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 vehicle animation using Mannequin
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 06:02:2012: Created by Tom Berry
  12.  
  13. *************************************************************************/
  14. #ifndef __CVEHICLEANIMATION_H__
  15. #define __CVEHICLEANIMATION_H__
  16.  
  17. #include <ICryMannequinDefs.h>
  18.  
  19. class CVehicle;
  20. class IAnimationDatabase;
  21. class IActionController;
  22. struct SAnimationContext;
  23.  
  24. class CVehicleAnimationComponent : public IVehicleAnimationComponent
  25. {
  26. public:
  27.         CVehicleAnimationComponent();
  28.         ~CVehicleAnimationComponent();
  29.  
  30.         void               Initialise(CVehicle& vehicle, const CVehicleParams& mannequinTable);
  31.         void               Reset();
  32.         void               DeleteActionController();
  33.  
  34.         void               Update(float timePassed);
  35.  
  36.         IActionController* GetActionController() { return m_pActionController; }
  37.         void               AttachPassengerScope(CVehicleSeat* seat, EntityId ent, bool attach);
  38.  
  39.         virtual CTagState* GetTagState()
  40.         {
  41.                 return m_pAnimContext ? &m_pAnimContext->state : NULL;
  42.         }
  43.  
  44.         ILINE bool IsEnabled() const
  45.         {
  46.                 return (m_pActionController != NULL);
  47.         }
  48.  
  49. private:
  50.         CVehicle*                 m_vehicle;
  51.         const IAnimationDatabase* m_pADBVehicle;
  52.         const IAnimationDatabase* m_pADBPassenger;
  53.         SAnimationContext*        m_pAnimContext;
  54.         IActionController*        m_pActionController;
  55.         TagID                     m_typeTag;
  56. };
  57.  
  58. #endif //!__CVEHICLEANIMATION_H__
  59.  
downloadVehicleAnimationComponent.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