data.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* $Id$
  2. * MegaZeux
  3. *
  4. * Copyright (C) 1996 Greg Janson
  5. * Copyright (C) 1998 Matthew D. Williams - dbwilli@scsn.net
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21. /* Declarations for DATA.ASM (most global data) */
  22. #ifndef __DATA_H
  23. #define __DATA_H
  24. #include "const.h"
  25. #include "robot.h"
  26. #include "counter.h"
  27. #include <stdio.h>
  28. /* This first section is for idput.cpp */
  29. extern unsigned char id_chars[455];
  30. extern unsigned char id_dmg[128];
  31. extern unsigned char def_id_chars[455];
  32. extern unsigned char *player_color;
  33. extern unsigned char *player_char; // was [4]
  34. extern unsigned char bullet_color[3]; // was [3]
  35. extern unsigned char missile_color;
  36. extern unsigned char *bullet_char;
  37. extern char refresh_mod_playing;
  38. extern unsigned char music_on;
  39. extern unsigned char sfx_on;
  40. extern unsigned char music_gvol; // Global volume (settings)
  41. extern unsigned char sound_gvol; // Global volume (settings)
  42. extern unsigned char music_device;
  43. extern unsigned int mixing_rate;
  44. extern unsigned char sfx_channels;
  45. extern unsigned char overall_speed;
  46. extern char curr_file[FILENAME_SIZE];
  47. extern char curr_sav[FILENAME_SIZE];
  48. extern char help_file[PATHNAME_SIZE]; // Drive + Path + Filename
  49. extern char megazeux_dir[PATHNAME_SIZE]; // Directory started in
  50. extern char current_dir[PATHNAME_SIZE]; // Current directory
  51. extern unsigned char megazeux_drive; // Startup drive (0=A...)
  52. extern unsigned char current_drive; // Current drive (0=A...)
  53. extern unsigned char scroll_color; // Current scroll color
  54. extern unsigned char cheats_active; // (additive flag)
  55. extern unsigned char current_help_sec0; // Use for context-sens.help
  56. extern int was_zapped;
  57. extern char saved_pl_color;
  58. extern char *update_done;
  59. extern int update_done_size;
  60. extern char *thing_names[128];
  61. extern unsigned int flags[128];
  62. #endif