BVB Source Codes

CRYENGINE Show FlowVehiclePassenger.h Source code

Return Download CRYENGINE: download FlowVehiclePassenger.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 handle a vehicle passenger
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 09:12:2005: Created by Mathieu Pinard
  12.  
  13. *************************************************************************/
  14. #ifndef __FLOWVEHICLEPASSENGER_H__
  15. #define __FLOWVEHICLEPASSENGER_H__
  16.  
  17. #include "FlowVehicleBase.h"
  18.  
  19. class CFlowVehiclePassenger
  20.         : public CFlowVehicleBase
  21. {
  22. public:
  23.  
  24.         CFlowVehiclePassenger(SActivationInfo* pActivationInfo);
  25.         ~CFlowVehiclePassenger() { Delete(); }
  26.  
  27.         // CFlowBaseNode
  28.         virtual IFlowNodePtr Clone(SActivationInfo* pActivationInfo);
  29.         virtual void         GetConfiguration(SFlowNodeConfig& nodeConfig);
  30.         virtual void         ProcessEvent(EFlowEvent flowEvent, SActivationInfo* pActivationInfo);
  31.         // ~CFlowBaseNode
  32.  
  33.         // IVehicleEventListener
  34.         virtual void OnVehicleEvent(EVehicleEvent event, const SVehicleEventParams& params);
  35.         // ~IVehicleEventListener
  36.  
  37.         virtual void GetMemoryUsage(ICrySizer* s) const
  38.         {
  39.                 s->Add(*this);
  40.         }
  41.  
  42. protected:
  43.  
  44.         enum EInputs
  45.         {
  46.                 IN_TRIGGERPASSENGERIN,
  47.                 IN_TRIGGERPASSENGEROUT,
  48.                 IN_ACTORID,
  49.                 IN_SEATID,
  50.         };
  51.  
  52.         enum EOutputs
  53.         {
  54.                 OUT_ACTORIN,
  55.                 OUT_ACTOROUT,
  56.         };
  57.  
  58.         EntityId       m_actorId;
  59.         TVehicleSeatId m_seatId;
  60.         int            m_passengerCount;
  61. };
  62.  
  63. #endif
  64.  
downloadFlowVehiclePassenger.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