powersawgeneric.h 595 B

12345678910111213141516171819202122232425262728293031323334
  1. class idPowerSawGeneric : public idMover
  2. {
  3. public:
  4. CLASS_PROTOTYPE( idPowerSawGeneric );
  5. void Save( idSaveGame *savefile ) const;
  6. void Restore( idRestoreGame *savefile );
  7. void Think( void );
  8. void OnSplineEnd( void );
  9. void Frob( void );
  10. void Spawn( void );
  11. private:
  12. enum { IDLE, SAWING, DONE };
  13. int state;
  14. int nextSparktime;
  15. void Spawn2( void );
  16. idStr callName;
  17. idMover * mover;
  18. idEntity * splineEnt;
  19. idEntity * sparks;
  20. idLight * light;
  21. void reset( void );
  22. };