BVB Source Codes

CRYENGINE Show FlowVehicleMoveActionMult.h Source code

Return Download CRYENGINE: download FlowVehicleMoveActionMult.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 flow node to apply multipliers to vehicle
  8.    movement actions
  9.  
  10.    -------------------------------------------------------------------------
  11.    History:
  12.    - 26:01:2006: Created by Mathieu Pinard
  13.  
  14. *************************************************************************/
  15. #ifndef __FLOWVEHICLEMOVEACTIONMULT_H__
  16. #define __FLOWVEHICLEMOVEACTIONMULT_H__
  17.  
  18. #include "FlowVehicleBase.h"
  19.  
  20. class CFlowVehicleMoveActionMult
  21.         : public CFlowVehicleBase,
  22.           public IVehicleMovementActionFilter
  23. {
  24. public:
  25.  
  26.         CFlowVehicleMoveActionMult(SActivationInfo* pActivationInfo);
  27.         ~CFlowVehicleMoveActionMult() { Delete(); }
  28.  
  29.         // CFlowBaseNode
  30.         virtual IFlowNodePtr Clone(SActivationInfo* pActivationInfo);
  31.         virtual void         GetConfiguration(SFlowNodeConfig& nodeConfig);
  32.         virtual void         ProcessEvent(EFlowEvent flowEvent, SActivationInfo* pActivationInfo);
  33.         virtual void         Serialize(SActivationInfo* pActivationInfo, TSerialize ser);
  34.         // ~CFlowBaseNode
  35.  
  36.         // IVehicleMovementActionFilter
  37.         void OnProcessActions(SVehicleMovementAction& movementAction);
  38.         // ~IVehicleMovementActionFilter
  39.  
  40.         virtual void GetMemoryUsage(ICrySizer* s) const
  41.         {
  42.                 s->Add(*this);
  43.         }
  44.  
  45. protected:
  46.  
  47.         enum EInputs
  48.         {
  49.                 IN_ENABLETRIGGER = 0,
  50.                 IN_DISABLETRIGGER,
  51.  
  52.                 IN_POWERMULT,
  53.                 IN_ROTATEPITCHMULT,
  54.                 IN_ROTATEYAWMULT,
  55.  
  56.                 IN_POWERMUSTBEPOSITIVE,
  57.         };
  58.  
  59.         enum EOutputs
  60.         {
  61.         };
  62.  
  63.         float m_powerMult;
  64.         float m_pitchMult;
  65.         float m_yawMult;
  66.         bool  m_powerMustBePositive;
  67. };
  68.  
  69. #endif
  70.  
downloadFlowVehicleMoveActionMult.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