home *** CD-ROM | disk | FTP | other *** search
/ Media Share 13 / mediashare_13.zip / mediashare_13 / ZIPPED / PROGRAM / WTJ9403.ZIP / POKER / POKER.H < prev    next >
C/C++ Source or Header  |  1993-10-29  |  2KB  |  85 lines

  1. // poker.h : main header file for the POKER application
  2. //
  3.  
  4. #ifndef __AFXWIN_H__
  5.     #error include 'stdafx.h' before including this file for PCH
  6. #endif
  7.  
  8. #include "..\cards.h"
  9.  
  10. #include "resource.h"        // main symbols
  11.                             
  12. // What a player can do:
  13. #define        NOTHING            0
  14. #define        BET                1
  15. #define        CALL            2
  16. #define     FOLD            3      
  17. #define        RAISE            4
  18. #define        CHECK            5
  19.  
  20. // The current state of the game:
  21. #define        DEAL            0
  22. #define        FIRST_ROUND        1
  23. #define        DRAW_SELECT        2
  24. #define        DRAW_DISCARD    3
  25. #define        DRAW_DEAL        4
  26. #define        SECOND_ROUND    5
  27. #define        SHOWDOWN        6
  28. #define        WAIT            7
  29.                              
  30. // State of the cards in a player's hand.
  31.  
  32. #define        CARD_OK            0
  33. #define     CARD_DISCARD    6
  34. #define        CARD_FOLD        7
  35. #define     CARD_INVERT        2
  36.  
  37. // Hands that players (can) have.
  38.  
  39. #define        ROYAL_FLUSH            999
  40. #define        STRAIGHT_FLUSH        900
  41. #define        FOUR_OF_KIND        850
  42. #define        FULL_HOUSE            800
  43. #define        FLUSH                750
  44. #define        STRAIGHT            700
  45. #define        THREE_OF_KIND        650
  46. #define        TWO_PAIR            600
  47. #define        ONE_PAIR            550
  48. #define        POSSIBLE_STRAIGHT    450
  49. #define        POSSIBLE_FLUSH        350
  50. #define        GOT_SQUAT            250
  51.                              
  52. // Misc defines...
  53.  
  54. #define     LEFT            0
  55. #define     DEALER            1
  56. #define     RIGHT            2
  57. #define     ME                3
  58. #define     NUMBER_PLAYERS    4
  59.  
  60. /////////////////////////////////////////////////////////////////////////////
  61. // CPokerApp:
  62. // See poker.cpp for the implementation of this class
  63. //
  64.  
  65. class CPokerApp : public CWinApp
  66. {
  67. public:
  68.     CPokerApp();
  69.  
  70. // Overrides
  71.     virtual BOOL InitInstance();
  72.  
  73. // Implementation
  74.  
  75.     //{{AFX_MSG(CPokerApp)
  76.     afx_msg void OnAppAbout();
  77.         // NOTE - the ClassWizard will add and remove member functions here.
  78.         //    DO NOT EDIT what you see in these blocks of generated code !
  79.     //}}AFX_MSG
  80.     DECLARE_MESSAGE_MAP()
  81. };
  82.  
  83.  
  84. /////////////////////////////////////////////////////////////////////////////
  85.