GAME.H
上传用户:junwei_58
上传日期:2007-05-15
资源大小:79k
文件大小:1k
源码类别:

其他智力游戏

开发平台:

Visual C++

  1. #ifndef GAME_H
  2. #define GAME_H
  3. //#include "c:languagezzksvga.libbmpfile.h"
  4. typedef unsigned long   ulong;
  5. typedef unsigned short  ushort;
  6. typedef unsigned char   uchar;
  7. #ifdef EXTERN
  8. #undef EXTERN
  9. #endif
  10. #define EXTERN extern
  11. //here you should type the filename of the main c/c++ file
  12. //e.g.: your file is "filename.cpp", type as follow
  13. //      #include "filename.h"
  14. //      #ifdef FILENAME_CPP
  15. //      ...
  16. #include "bubble.h"
  17. #ifdef BUBBLE_CPP
  18. //the line turn the following EXTERN symbles become defination
  19. //only in the main file.
  20. #include <dos.h>
  21. #include <mem.h>
  22. #include <time.h>
  23. #include <stdlib.h>
  24. #include <stdio.h>
  25. #include <conio.h>
  26. #include <math.h>
  27. #include "menu.h"
  28. #include "top10.h"
  29. #include "keyintr.h"
  30. #include "speceffe.h"
  31. #include "timer.h"
  32. #undef EXTERN
  33. #define EXTERN
  34. #endif
  35. #define PRIVATE static
  36. #define PUBLIC
  37. typedef enum{NOTHING=0,KEYNEW=1,TIMER=2}GameMode;
  38. enum{UP=1,DOWN=2,LEFT=4,RIGHT=8,MID=16,READY=0,PRESS=1,RELEASE=2,WAIT=3};
  39. EXTERN int gameover;
  40. EXTERN int gamespeed;
  41. EXTERN int levelid;
  42. EXTERN int inGame;
  43. EXTERN int players;
  44. #endif