Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1011 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //===========================================================================//
  6. #ifndef TFC_CLIENTMODE_H
  7. #define TFC_CLIENTMODE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "clientmode_shared.h"
  12. #include "tfcviewport.h"
  13. class ClientModeTFCNormal : public ClientModeShared
  14. {
  15. DECLARE_CLASS( ClientModeTFCNormal, ClientModeShared );
  16. private:
  17. // IClientMode overrides.
  18. public:
  19. ClientModeTFCNormal();
  20. virtual ~ClientModeTFCNormal();
  21. virtual void InitViewport();
  22. virtual int KeyInput( int down, ButtonCode_t keynum, const char *pszCurrentBinding );
  23. virtual float GetViewModelFOV( void );
  24. int GetDeathMessageStartHeight( void );
  25. virtual void FireGameEvent( KeyValues * event);
  26. virtual void PostRenderVGui();
  27. private:
  28. // void UpdateSpectatorMode( void );
  29. };
  30. extern IClientMode *GetClientModeNormal();
  31. extern ClientModeTFCNormal* GetClientModeTFCNormal();
  32. #endif // TFC_CLIENTMODE_H