home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / pascal / rehack / event / eventq.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-29  |  783 b   |  41 lines

  1. #ifndef _EVENTQ_HPP
  2. #define _EVENTQ_HPP
  3.  
  4. // ------------------------------------------------------------------
  5. // File:        EVENTQ.HPP
  6. // Path:        ...\REHACK\EVENT\EVENTQ.HPP
  7. // Version:        0.01
  8. // Author:        Pat Reilly
  9. // CIS Id:        71333,2764
  10. // Created On:    6/18/93
  11. // Modified On:    6/28/93
  12. // Description:    EventQueue class for REHACK. See EVENTQ.TXT for
  13. //                more details.
  14. // Tabs:        4
  15. // ------------------------------------------------------------------
  16.  
  17. #ifndef _EVENT_HPP
  18. #include "..\EVENT\EVENT.HPP"
  19. #endif
  20.  
  21. const StdEventQueueSize = 16;
  22.  
  23. class EventQueue
  24. {
  25. public:
  26.     EventQueue();
  27.  
  28.     void put(const Event&);
  29.     bool get(Event&);
  30.  
  31. protected:
  32.  
  33.     friend void makeInc();
  34.  
  35.     Event buffer[StdEventQueueSize];
  36.     int head;
  37.     int tail;
  38. };
  39.  
  40. #endif    // _EVENTQ_HPP
  41.