contractcamera.h 619 B

12345678910111213141516171819202122232425262728293031
  1. class idContractCamera : public idAnimatedEntity
  2. {
  3. public:
  4. CLASS_PROTOTYPE( idContractCamera );
  5. void Spawn( void );
  6. void Save( idSaveGame *savefile ) const;
  7. void Restore( idRestoreGame *savefile );
  8. virtual void Think( void );
  9. void OnFrob( idEntity* activator );
  10. private:
  11. enum { OFF, UNFOLDING, PHOTOFLIPPING, PHOTOSNAPPING, PHOTOSNAPDONE, PHOTODONE, TAKEN };
  12. int state;
  13. int nextStateTime;
  14. int maxcount;
  15. int count;
  16. idEntity* frobcube;
  17. idLight * light;
  18. void UpdateStates( void );
  19. void Event_reset( void );
  20. };