rotdoor.h 682 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __GAME_IDROTDOOR_H__
  2. #define __GAME_IDROTDOOR_H__
  3. class idRotDoor : public idMover
  4. {
  5. public:
  6. CLASS_PROTOTYPE( idRotDoor );
  7. idRotDoor() {m_OpenPos.Zero();}
  8. void Save( idSaveGame *savefile ) const;
  9. void Restore( idRestoreGame *savefile );
  10. void Spawn( void );
  11. bool IsOpen( void );
  12. void Event_Open( void );
  13. void Event_Close( void );
  14. void Event_isOpen( void );
  15. bool shouldOpen;
  16. private:
  17. void Event_Activate( idEntity *activator );
  18. idAngles m_Rotate;
  19. idVec3 m_ClosedPos;
  20. idVec3 m_OpenPos;
  21. idVec3 m_OpenDir;
  22. idAngles m_ClosedAngles;
  23. idAngles m_OpenAngles;
  24. };
  25. #endif