source-engine-2018-hl2_src/game/shared/hl1/hl1_gamemovement.h
FluorescentCIAAfricanAmerican 3bf9df6b27 1
2020-04-22 12:56:21 -04:00

42 lines
844 B
C++

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef C_HL1_GAMEMOVEMENT_H
#define C_HL1_GAMEMOVEMENT_H
#ifdef _WIN32
#pragma once
#endif
#ifdef CLIENT_DLL
#include "hl1/hl1_c_player.h"
#else
#include "hl1_player.h"
#endif
#if defined( CLIENT_DLL )
class CHL1_Player;
#define CHL1_Player C_HL1_Player
#endif
#define PLAYER_LONGJUMP_SPEED 350 // how fast we longjump
class CHL1GameMovement : public CGameMovement
{
public:
DECLARE_CLASS( CHL1GameMovement, CGameMovement );
virtual bool CheckJumpButton( void );
// Duck
virtual void Duck( void );
virtual void HandleDuckingSpeedCrop();
virtual void CheckParameters( void );
protected:
CHL1_Player *m_pHL1Player;
};
#endif //C_HL1_GAMEMOVEMENT_H