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.

41 lines
844 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef C_HL1_GAMEMOVEMENT_H
  7. #define C_HL1_GAMEMOVEMENT_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #ifdef CLIENT_DLL
  12. #include "hl1/hl1_c_player.h"
  13. #else
  14. #include "hl1_player.h"
  15. #endif
  16. #if defined( CLIENT_DLL )
  17. class CHL1_Player;
  18. #define CHL1_Player C_HL1_Player
  19. #endif
  20. #define PLAYER_LONGJUMP_SPEED 350 // how fast we longjump
  21. class CHL1GameMovement : public CGameMovement
  22. {
  23. public:
  24. DECLARE_CLASS( CHL1GameMovement, CGameMovement );
  25. virtual bool CheckJumpButton( void );
  26. // Duck
  27. virtual void Duck( void );
  28. virtual void HandleDuckingSpeedCrop();
  29. virtual void CheckParameters( void );
  30. protected:
  31. CHL1_Player *m_pHL1Player;
  32. };
  33. #endif //C_HL1_GAMEMOVEMENT_H