BVB Source Codes

CRYENGINE Show VehicleDamageBehaviorAISignal.h Source code

Return Download CRYENGINE: download VehicleDamageBehaviorAISignal.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __VEHICLEDAMAGEBEHAVIORAISIGNAL_H__
  4. #define __VEHICLEDAMAGEBEHAVIORAISIGNAL_H__
  5.  
  6. class CVehicle;
  7.  
  8. //! Sends a signal to the AI system and a free signal to the vehicle's entity AI on hit.
  9. class CVehicleDamageBehaviorAISignal
  10.         : public IVehicleDamageBehavior
  11. {
  12.         IMPLEMENT_VEHICLEOBJECT
  13. public:
  14.  
  15.         CVehicleDamageBehaviorAISignal();
  16.         virtual ~CVehicleDamageBehaviorAISignal() {}
  17.  
  18.         virtual bool Init(IVehicle* pVehicle, const CVehicleParams& table) override;
  19.         virtual void Reset() override;
  20.         virtual void Release() override                                         { delete this; }
  21.  
  22.         virtual void Serialize(TSerialize ser, EEntityAspects aspects) override {}
  23.         virtual void Update(const float deltaTime) override;
  24.  
  25.         virtual void OnDamageEvent(EVehicleDamageBehaviorEvent event, const SVehicleDamageBehaviorEventParams& behaviorParams) override;
  26.         virtual void OnVehicleEvent(EVehicleEvent event, const SVehicleEventParams& params) override {}
  27.  
  28.         virtual void GetMemoryUsage(ICrySizer* s) const override;
  29.  
  30. protected:
  31.  
  32.         void ActivateUpdate(bool activate);
  33.  
  34.         IVehicle* m_pVehicle;
  35.  
  36.         bool      m_freeSignalRepeat;
  37.         bool      m_isActive;
  38.         int       m_signalId;
  39.         float     m_freeSignalRadius;
  40.         float     m_timeCounter;
  41.         string    m_signalText;
  42.         string    m_freeSignalText;
  43. };
  44.  
  45. #endif
  46.  
downloadVehicleDamageBehaviorAISignal.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