home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / ARASAN_S.ZIP / PROMOTIO.H < prev    next >
C/C++ Source or Header  |  1993-11-17  |  684b  |  41 lines

  1. // Copyright 1993 by Jon Dart.  All Rights Reserved.
  2.  
  3. #ifndef _PROMOTION_H
  4. #define _PROMOTION_H
  5.  
  6. #include <wpp.h>
  7. #include <wpdlg.h>
  8.  
  9. #define IDP_PROMOTETO 101
  10. #define IDP_QUEEN 102
  11. #define IDP_ROOK 103
  12. #define IDP_BISHOP 104
  13. #define IDP_KNIGHT 105
  14.  
  15. struct PromotionOption
  16. {
  17.    int piece;
  18. };
  19.  
  20. class PromotionDialog : public WPDialogModal
  21. {
  22.     // handles the Promotion dialog box
  23.  
  24. public:
  25.  
  26.     PromotionDialog(WPWin *pwin, PromotionOption *option) 
  27.     : WPDialogModal("Promotion",pwin, ControlMap, option)
  28.     {
  29.        createWin();         
  30.     }
  31.     
  32.     void initDlg()
  33.     {
  34.     }
  35.     
  36. private:
  37.     static WPControlMap ControlMap[];
  38.  
  39. };
  40.  
  41. #endif