xstoneage.h 622 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _XSTONEAGE_
  2. #define _XSTONEAGE_ 1
  3. typedef unsigned char byte; /* unsigned byte type */
  4. #include <X11/Xlib.h>
  5. #include "stoneage.h"
  6. #define DEBUG FALSE
  7. #define RIGHTS(u,g,o) (u*8+g)*8+o
  8. //levels
  9. int numlevels;
  10. level levels[256];
  11. //setup
  12. int volume;
  13. int difficult;
  14. //prototypes
  15. void setup();
  16. void byez();
  17. void loadcfgfile(void);
  18. void savecfgfile(void);
  19. void loadscorefile(void);
  20. void savescorefile(void);
  21. void displayhiscore(void);
  22. XImage *CreateEmptyImage();
  23. int readlevel();
  24. void dothegame();
  25. typedef struct {
  26. unsigned long score;
  27. unsigned int level;
  28. char name[12];
  29. } hscoretype;
  30. #endif