BVB Source Codes

CRYENGINE Show DeferredCollisionEvent.h Source code

Return Download CRYENGINE: download DeferredCollisionEvent.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. // -------------------------------------------------------------------------
  4. //  File name:   DeferredCollisionEvent.h
  5. //  Version:     v1.00
  6. //  Created:     12/08/2010 by Christopher Bolte
  7. //  Compilers:   Visual Studio.NET
  8. // -------------------------------------------------------------------------
  9. //  History:
  10. ////////////////////////////////////////////////////////////////////////////
  11.  
  12. #ifndef _3DENGINE_DEFERREDCOLLISIONEVENT_H_
  13. #define _3DENGINE_DEFERREDCOLLISIONEVENT_H_
  14.  
  15. #if _MSC_VER > 1000
  16.         #pragma once
  17. #endif // _MSC_VER > 1000
  18.  
  19. #include <CryPhysics/IDeferredCollisionEvent.h>
  20.  
  21. // Implementation class for the DeferredPhysicsEvent Manager
  22. class CDeferredPhysicsEventManager : public IDeferredPhysicsEventManager, public Cry3DEngineBase
  23. {
  24. public:
  25.         virtual ~CDeferredPhysicsEventManager() {}
  26.  
  27.         virtual void                   DispatchDeferredEvent(IDeferredPhysicsEvent* pEvent);
  28.         virtual int                    HandleEvent(const EventPhys* pEvent, IDeferredPhysicsEventManager::CreateEventFunc, IDeferredPhysicsEvent::DeferredEventType);
  29.  
  30.         virtual void                   RegisterDeferredEvent(IDeferredPhysicsEvent* pDeferredEvent);
  31.         virtual void                   UnRegisterDeferredEvent(IDeferredPhysicsEvent* pDeferredEvent);
  32.  
  33.         virtual void                   ClearDeferredEvents();
  34.  
  35.         virtual void                   Update();
  36.  
  37.         virtual IDeferredPhysicsEvent* GetLastCollisionEventForEntity(IPhysicalEntity* pPhysEnt);
  38.  
  39. private:
  40.         std::vector<IDeferredPhysicsEvent*> m_activeDeferredEvents; // list of all active deferred events, used for cleanup and statistics
  41.         bool                                m_bEntitySystemReset;   // means all entity ptrs in events are stale
  42. };
  43.  
  44. #endif // _3DENGINE_DEFERREDCOLLISIONEVENT_H_
  45.  
downloadDeferredCollisionEvent.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