Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
696 B

  1. /****************/
  2. /* file: rtns.h */
  3. /****************/
  4. /* A ball is a ball, a blk is where you put a ball */
  5. /*** Bitmaps ***/
  6. /* Blocks */
  7. #define iBallBlank 0
  8. #define iBallBlue 1
  9. #define iBallRed 2
  10. #define iBallGrey 3
  11. #define iBallMask 4
  12. #define iBallMax 5
  13. #define iComputer 1
  14. #define iHuman 2
  15. #define cDimMax 4 /* Maximum Number of dimensions */
  16. #define cBlkMax 64 /* total number of possible squares */
  17. #define iBlkNil -1
  18. typedef INT POS;
  19. typedef INT BALL;
  20. typedef INT BLK;
  21. /*** Routines ***/
  22. VOID SetupData(VOID);
  23. VOID StartGame(VOID);
  24. VOID StopGame(VOID);
  25. VOID DoTimer(VOID);
  26. VOID DoMove(BLK);
  27. VOID UnDoMove(VOID);