BVB Source Codes

CRYENGINE Show VehiclePartStatic.h Source code

Return Download CRYENGINE: download VehiclePartStatic.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 part for vehicles which uses static objects
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 23:08:2005: Created by Mathieu Pinard
  12.  
  13. *************************************************************************/
  14. #ifndef __VEHICLEPARTSTATIC_H__
  15. #define __VEHICLEPARTSTATIC_H__
  16.  
  17. class CVehicle;
  18.  
  19. class CVehiclePartStatic
  20.         : public CVehiclePartBase
  21. {
  22.         IMPLEMENT_VEHICLEOBJECT
  23. public:
  24.  
  25.         CVehiclePartStatic() {}
  26.         ~CVehiclePartStatic() {}
  27.  
  28.         // IVehiclePart
  29.         virtual bool Init(IVehicle* pVehicle, const CVehicleParams& table, IVehiclePart* parent, CVehicle::SPartInitInfo& initInfo, int partType) override;
  30.         virtual void InitGeometry();
  31.         virtual void Release() override;
  32.         virtual void Reset() override;
  33.  
  34.         virtual void Physicalize() override;
  35.  
  36.         virtual void Update(const float frameTime) override;
  37.  
  38.         virtual void SetLocalTM(const Matrix34& localTM) override;
  39.  
  40.         virtual void GetMemoryUsage(ICrySizer* s) const override
  41.         {
  42.                 s->Add(*this);
  43.                 s->AddObject(m_filename);
  44.                 s->AddObject(m_filenameDestroyed);
  45.                 s->AddObject(m_geometry);
  46.                 CVehiclePartBase::GetMemoryUsageInternal(s);
  47.         }
  48.         // ~IVehiclePart
  49.  
  50. protected:
  51.  
  52.         string m_filename;
  53.         string m_filenameDestroyed;
  54.         string m_geometry;
  55. };
  56.  
  57. #endif
  58.  
downloadVehiclePartStatic.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