LEVELS.H 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef __LEVELS_H
  2. #define __LEVELS_H
  3. #include <stdlib.h>
  4. /***********************************************************************
  5. *
  6. * Enumerated Types
  7. *
  8. **********************************************************************/
  9. enum {
  10. kMinEpisode = 1,
  11. kMaxEpisode = 3,
  12. kMinMap = 1,
  13. kMaxMap = 15,
  14. };
  15. /***********************************************************************
  16. *
  17. * Global Level Data
  18. *
  19. **********************************************************************/
  20. extern char gLevelName[_MAX_PATH];
  21. extern int gEpisodeId;
  22. extern int gMapId;
  23. extern int gEndingA, gEndingB;
  24. extern int gEndLevelFlag;
  25. extern char gLevelAuthor[128];
  26. extern char gLevelDescription[128];
  27. extern char gLevelSong[128];
  28. extern char *gLevelMessage[64];
  29. /***********************************************************************
  30. *
  31. * Global Lightning Data
  32. *
  33. **********************************************************************/
  34. #define kMaxLightning 16
  35. struct LIGHTNING {
  36. int slot;
  37. int offset;
  38. };
  39. extern LIGHTNING gLightningInfo[ kMaxLightning ];
  40. /***********************************************************************
  41. *
  42. * Function Prototypes
  43. *
  44. **********************************************************************/
  45. void levelGetName(int episodeId, int mapId);
  46. void levelLoadDef( void );
  47. #endif // __LEVELS_H