quadrilateralcowboy/d3xp/lever.h
2020-06-12 14:06:25 -07:00

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 );
};