BVB Source Codes

CRYENGINE Show ActionFilter.h Source code

Return Download CRYENGINE: download ActionFilter.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:
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 8:9:2004   10:32 : Created by M谩rcio Martins
  12.  
  13. *************************************************************************/
  14. #ifndef __ACTIONFILTER_H__
  15. #define __ACTIONFILTER_H__
  16.  
  17. #if _MSC_VER > 1000
  18.         #pragma once
  19. #endif
  20.  
  21. #include "IActionMapManager.h"
  22.  
  23. typedef std::set<ActionId> TFilterActions;
  24.  
  25. class CActionMapManager;
  26.  
  27. class CActionFilter :
  28.         public IActionFilter
  29. {
  30. public:
  31.         CActionFilter(CActionMapManager* pActionMapManager, IInput* pInput, const char* name, EActionFilterType type = eAFT_ActionFail);
  32.         virtual ~CActionFilter();
  33.  
  34.         // IActionFilter
  35.         virtual void        Release() { delete this; };
  36.         virtual void        Filter(const ActionId& action);
  37.         virtual bool        SerializeXML(const XmlNodeRef& root, bool bLoading);
  38.         virtual const char* GetName() { return m_name.c_str(); }
  39.         virtual void        Enable(bool enable);
  40.         virtual bool        Enabled() { return m_enabled; };
  41.         // ~IActionFilter
  42.  
  43.         bool         ActionFiltered(const ActionId& action);
  44.  
  45.         virtual void GetMemoryUsage(ICrySizer* pSizer) const;
  46.  
  47. private:
  48.         bool               m_enabled;
  49.         CActionMapManager* m_pActionMapManager;
  50.         IInput*            m_pInput;
  51.         TFilterActions     m_filterActions;
  52.         EActionFilterType  m_type;
  53.         string             m_name;
  54. };
  55.  
  56. #endif //__ACTIONFILTER_H__
  57.  
downloadActionFilter.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