home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / thx / demos / skyscrap / build / options.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-14  |  548 b   |  26 lines

  1. #include "options.h"
  2.  
  3. OptionsScreen::~OptionsScreen()
  4. {
  5.   stop_keystroke_cue( ESCAPE, (callback)&OptionsScreen::onQuit );
  6.   stop_keystroke_cue( ENTER, (callback)&OptionsScreen::onQuit );
  7. }
  8.  
  9. void OptionsScreen::initialize()
  10. {
  11.   request_keystroke_cue( ESCAPE, (callback)&OptionsScreen::onQuit );
  12.   request_keystroke_cue( ENTER, (callback)&OptionsScreen::onQuit );
  13. }
  14.  
  15. void OptionsScreen::display()
  16. {
  17.   init_video();
  18.   show_pcx( "options.pcx" );
  19.   swap_video_pages();
  20. }
  21.  
  22. void OptionsScreen::onQuit(int)
  23. {
  24.   stop_director();
  25. }
  26.