home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code2 / q_cards / qcard.h < prev    next >
Text File  |  1993-04-28  |  2KB  |  72 lines

  1. // defines to use in your game --------------------------
  2. #define CARDWIDTH    71
  3. #define CARDHEIGHT    96
  4. #define OFFSET        16
  5.  
  6. // declarations for functions ---------------------------
  7. // if using C++ declare these as extern "C" {}
  8. // ------------------------------------------------------
  9.  
  10. void FAR PASCAL DrawSymbol(HWND, int, int, int);
  11. void FAR PASCAL DrawCard(HWND, int, int, int);
  12. void FAR PASCAL DrawBack(HWND, int, int, int);
  13. void FAR PASCAL RemoveCard(HWND, int);
  14. BOOL FAR PASCAL InitializeDeck(HWND);
  15. void FAR PASCAL DealCard(HWND, int, int, int);
  16. int FAR PASCAL GetCardColor(int);
  17. int FAR PASCAL GetCardSuit(int);
  18. int FAR PASCAL GetCardValue(int);
  19. BOOL FAR PASCAL IsCardVisible(int);
  20. BOOL FAR PASCAL GetCardBlocked(int);
  21. BOOL FAR PASCAL IsCardDisabled(int);
  22. int FAR PASCAL GetCardX(int);
  23. int FAR PASCAL GetCardY(int);
  24. BOOL FAR PASCAL GetUser1(int);
  25. int FAR PASCAL GetUser2(int);
  26. int FAR PASCAL GetUser3(int);
  27. int FAR PASCAL GetUser4(int);
  28. void FAR PASCAL SetCardVisible(int, BOOL);
  29. void FAR PASCAL AdjustCardBlocked(int, BOOL);
  30. void FAR PASCAL SetCardDisabled(int, BOOL);
  31. void FAR PASCAL SetCardX(int, int);
  32. void FAR PASCAL SetCardY(int, int);
  33. void FAR PASCAL SetUser1(int, BOOL);
  34. void FAR PASCAL SetUser2(int, int);
  35. void FAR PASCAL SetUser3(int, int);
  36. void FAR PASCAL SetUser4(int, int);
  37. int FAR PASCAL InitDrag(HWND, int, int);
  38. void FAR PASCAL AbortDrag (void);
  39. void FAR PASCAL DoDrag(HWND, int, int);
  40. int FAR PASCAL EndDrag (HWND, int, int);
  41. void FAR PASCAL ReturnDrag(HWND, int, int, int);
  42. void FAR PASCAL SetDefaultValues(void);
  43. void FAR PASCAL BlockDrag(HWND, int far *, int, int, int);
  44. int FAR PASCAL EndBlockDrag(HWND, int far *, int, int, int);
  45. void FAR PASCAL ReturnBlockDrag(HWND, int far *, int, int, int);
  46. int FAR PASCAL GetFreeDestination(int);
  47. void FAR PASCAL SetCurrentBack(int);
  48.  
  49. // Undocumented functions, generally not used
  50. // ------------------------------------------
  51.  
  52. // returns the number of any unblocked card which lies beneath the point int(x), int(y)
  53. int FAR PASCAL PointInFreeCard(int, int);
  54.  
  55. // returns the number of any card whose top 16 pixels lie beneath the point int(x), int(y)
  56. int FAR PASCAL PointInCardTop(int, int);
  57.  
  58. // manually sets the active drag card for a subsequent DoDrag or BlockDrag call
  59. void FAR PASCAL SetActiveCard(int);
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.