home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / gamtlk11.zip / source.zip / BJCPP / BLACKJACK.H < prev    next >
Text File  |  1999-06-11  |  2KB  |  75 lines

  1. //
  2. // File: Blackjack.H
  3. //
  4. // Main defines for Blackjack for Compulsive Gambler's Toolkit
  5. //
  6. #define  MainWindow        1000
  7. #define  MainGame          1100
  8. #define  MainGameAdd100    1110
  9. #define  MainGameCashOut   1120
  10. #define  MainGameExit      1190
  11. #define  MainAction        1200
  12. #define  MainActionDeal    1210
  13. #define  MainActionHit     1220
  14. #define  MainActionStand   1230
  15. #define  MainActionSplit   1240
  16. #define  MainActionDouble  1250
  17. #define  MainOptions       1300
  18. #define  MainOptionsRules  1310
  19. #define  MainOptionsSounds 1320
  20. #define  BTN_DEAL          1800
  21. #define  BTN_HIT           1810
  22. #define  BTN_STAND         1820
  23. #define  BTN_SPLIT         1830
  24. #define  BTN_DOUBLE        1840
  25. #define  SPN_WAGER         1850
  26. #define  MainClient        2000
  27.  
  28.    // String table defines
  29.  
  30. #define  AppName        100
  31. #define  Version        101
  32. #define  PMT_DEAL       102
  33. #define  PMT_HIT        103
  34. #define  PMT_STAND      104
  35. #define  PMT_SPLIT      105
  36. #define  PMT_DOUBLE     106
  37. #define  PMT_BLACKJACK  107
  38. #define  PMT_ERROR      108
  39. #define  PMT_NOLIBRARY  109
  40.  
  41. #define  PROFILE_NAME   "Gambler.INI"
  42. #define  DEF_BUYIN      100
  43. #define  MAX_DECKS      8
  44. #define  DEF_DECKS      6
  45. #define  DEF_SOFTHIT    17
  46. #define  DEF_HARDHIT    16
  47. #define  MIN_WAGER      5
  48. #define  MAX_WAGER      100
  49. #define  DECKSIZE       52
  50.  
  51. //
  52. // Sizing parameters
  53. //
  54. #define  BUTTON_XSIZE   0.1
  55. #define  BUTTON_YSIZE   0.05
  56. #define  DEAL_XPOS      0.05
  57. #define  DEAL_YPOS      0.20
  58. #define  HIT_XPOS       DEAL_XPOS
  59. #define  HIT_YPOS       0.10
  60. #define  STAND_XPOS     0.25
  61. #define  STAND_YPOS     HIT_YPOS
  62. #define  DOUBLE_XPOS    0.45
  63. #define  DOUBLE_YPOS    HIT_YPOS
  64. #define  SPLIT_XPOS     0.65
  65. #define  SPLIT_YPOS     HIT_YPOS
  66. #define  WAGERENTRY_XPOS   DEAL_XPOS
  67. #define  WAGERENTRY_YPOS   0.30
  68. #define  WAGERENTRY_XSIZE  BUTTON_XSIZE
  69. #define  WAGERENTRY_YSIZE  BUTTON_YSIZE
  70.  
  71. //
  72. // Hand parameters
  73. //
  74. #define  ACE         1
  75. #define  ACE_VALUE   0x40