mirror of
https://github.com/blendogames/quadrilateralcowboy.git
synced 2024-11-09 22:31:33 +00:00
29 lines
482 B
C
29 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 );
|
||
|
};
|