mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-02-05 11:44:14 +00:00
42 lines
919 B
C
42 lines
919 B
C
|
//--------------------------------------------------------------------------------------------------------
|
||
|
// Copyright (c) 2007 Turtle Rock Studios, Inc.
|
||
|
|
||
|
#if !defined( C_BASETOGGLE_H )
|
||
|
#define C_BASETOGGLE_H
|
||
|
|
||
|
#ifdef _WIN32
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
#include "c_baseentity.h"
|
||
|
|
||
|
//--------------------------------------------------------------------------------------------------------
|
||
|
class C_BaseToggle: public C_BaseEntity
|
||
|
{
|
||
|
public:
|
||
|
DECLARE_CLASS( C_BaseToggle, C_BaseEntity );
|
||
|
DECLARE_CLIENTCLASS();
|
||
|
|
||
|
virtual void GetGroundVelocityToApply( Vector &vecGroundVel );
|
||
|
};
|
||
|
|
||
|
|
||
|
//--------------------------------------------------------------------------------------------------------
|
||
|
class C_BaseButton: public C_BaseToggle
|
||
|
{
|
||
|
public:
|
||
|
DECLARE_CLASS( C_BaseButton, C_BaseToggle );
|
||
|
DECLARE_CLIENTCLASS();
|
||
|
|
||
|
C_BaseButton()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
virtual bool IsPotentiallyUsable( void );
|
||
|
|
||
|
private:
|
||
|
bool m_usable;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif // C_BASETOGGLE_H
|