BVB Source Codes

CRYENGINE Show VehicleViewThirdPerson_Bone.h Source code

Return Download CRYENGINE: download VehicleViewThirdPerson_Bone.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __VEHICLEVIEWTHIRDPERSON_BONE_H
  4. #define __VEHICLEVIEWTHIRDPERSON_BONE_H
  5.  
  6. #include "VehicleViewBase.h"
  7.  
  8. class CVehicleViewThirdPersonBone : public CVehicleViewBase
  9. {
  10.         IMPLEMENT_VEHICLEOBJECT;
  11. public:
  12.         CVehicleViewThirdPersonBone();
  13.         ~CVehicleViewThirdPersonBone();
  14.  
  15.         // IVehicleView
  16.         virtual bool        Init(IVehicleSeat* pSeat, const CVehicleParams& table);
  17.  
  18.         virtual const char* GetName()           { return m_name; }
  19.         virtual bool        IsThirdPerson()     { return true; }
  20.         virtual bool        IsPassengerHidden() { return false; }
  21.  
  22.         virtual void        OnAction(const TVehicleActionId actionId, int activationMode, float value);
  23.         virtual void        UpdateView(SViewParams& viewParams, EntityId playerId);
  24.  
  25.         virtual void        OnStartUsing(EntityId passengerId);
  26.  
  27.         virtual void        Update(const float frameTime);
  28.  
  29.         virtual bool        ShootToCrosshair() { return true; }
  30.  
  31.         virtual void        OffsetPosition(const Vec3& delta);
  32.         // ~IVehicleView
  33.  
  34.         void GetMemoryUsage(ICrySizer* s) const { s->Add(*this); }
  35.  
  36. protected:
  37.         static const char* m_name;
  38.  
  39.         int                m_directionBoneId;
  40.         Vec3               m_offset;
  41.         float              m_distance;
  42.         Vec3               m_position;
  43.         Quat               m_baseRotation;
  44.         Quat               m_additionalRotation;
  45.  
  46. };
  47.  
  48. #endif
  49.  
downloadVehicleViewThirdPerson_Bone.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