panel.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. class idPanel : public idAnimatedEntity
  2. {
  3. public:
  4. CLASS_PROTOTYPE( idPanel );
  5. void Save( idSaveGame *savefile ) const;
  6. void Restore( idRestoreGame *savefile );
  7. void Spawn( void );
  8. virtual void Think( void );
  9. virtual void Present( void );
  10. void OnFrob( idEntity* activator );
  11. private:
  12. enum { IDLE, CONNECTED };
  13. int state;
  14. enum { IDX_SCREW0, IDX_SCREW1, IDX_BUNDLE, IDX_DOOR_OPENED, IDX_DOOR_CLOSED, IDX_CABLE };
  15. int unscrewedCount;
  16. //int connectTime; //what time the cable was connected.
  17. idEntity* relay;
  18. idEntity* frobcube0;
  19. idEntity* frobcube1;
  20. idEntity* frobcube_opened;
  21. idEntity* frobcube_closed;
  22. idEntity* bundle;
  23. idEntity* gatorCable;
  24. idBeam* beamStart;
  25. idBeam* beamEnd;
  26. idEntity* screw0;
  27. idEntity* screw1;
  28. void Event_Panel_Reset( void );
  29. void Event_Panel_OnConnect( void );
  30. void Event_Panel_Disconnect( void );
  31. void Event_Panel_Open( void );
  32. void Event_Panel_Close( void );
  33. };