mirror of
https://github.com/blendogames/quadrilateralcowboy.git
synced 2024-11-21 19:51:04 +00:00
28 lines
482 B
C++
28 lines
482 B
C++
|
|
class idLever : public idAnimated
|
|
{
|
|
public:
|
|
CLASS_PROTOTYPE( idLever );
|
|
|
|
void Save( idSaveGame *savefile ) const;
|
|
void Restore( idRestoreGame *savefile );
|
|
void Spawn( void );
|
|
virtual void Think( void );
|
|
void OnFrob( idEntity* activator );
|
|
void Reset();
|
|
|
|
private:
|
|
|
|
bool toggleable;
|
|
int toggleState;
|
|
|
|
enum { IDLE, PRESSED };
|
|
int state;
|
|
|
|
int nextStateTime;
|
|
|
|
void UpdateStates( void );
|
|
|
|
|
|
void OnFrobScript( void );
|
|
};
|