quadrilateralcowboy/d3xp/lever.h

29 lines
482 B
C
Raw Normal View History

2020-06-12 21:06:25 +00:00
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 );
};