BVB Source Codes

CRYENGINE Show DevMode.h Source code

Return Download CRYENGINE: download DevMode.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: Helper class for CCryAction implementing developer mode-only
  8.                 functionality
  9.  
  10.    -------------------------------------------------------------------------
  11.    History:
  12.    - 9:2:2005   12:31 : Created by Craig Tiller
  13.  
  14. *************************************************************************/
  15. #ifndef __DEVMODE_H__
  16. #define __DEVMODE_H__
  17.  
  18. #pragma once
  19.  
  20. #include <CryInput/IInput.h>
  21.  
  22. struct STagFileEntry
  23. {
  24.         Vec3 pos;
  25.         Ang3 ang;
  26. };
  27.  
  28. class CDevMode : public IInputEventListener, public IRemoteConsoleListener
  29. {
  30. public:
  31.         CDevMode();
  32.         ~CDevMode();
  33.  
  34.         void GotoTagPoint(int i);
  35.         void SaveTagPoint(int i);
  36.  
  37.         // IInputEventListener
  38.         bool OnInputEvent(const SInputEvent&);
  39.         // ~IInputEventListener
  40.  
  41.         // IRemoteConsoleListener
  42.         virtual void OnGameplayCommand(const char* cmd);
  43.         // ~IRemoteConsoleListener
  44.  
  45.         void GetMemoryStatistics(ICrySizer* s) { s->Add(*this); }
  46.  
  47. private:
  48.         bool m_bSlowDownGameSpeed;
  49.         bool m_bHUD;
  50.         std::vector<STagFileEntry> LoadTagFile();
  51.         void                       SaveTagFile(const std::vector<STagFileEntry>&);
  52.         string                     TagFileName();
  53.         void                       SwitchSlowDownGameSpeed();
  54.         void                       SwitchHUD();
  55.         void                       GotoSpecialSpawnPoint(int i);
  56. };
  57.  
  58. #endif
  59.  
downloadDevMode.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