game.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* $Id$
  2. * MegaZeux
  3. *
  4. * Copyright (C) 1996 Greg Janson
  5. * Copyright (C) 1998 Matthew D. Williams - dbwilli@scsn.net
  6. * Copyright (C) 1999 Charles Goetzman
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. */
  22. /* Declarations for GAME.CPP */
  23. #ifndef __GAME_H
  24. #define __GAME_H
  25. void title_screen(void);
  26. void draw_viewport(void);
  27. void update_variables(char slowed=0);
  28. void calculate_xytop(int &x,int &y);
  29. void update_player(void);
  30. void game_settings(void);
  31. void play_game(char fadein=1);
  32. char move_player(char dir);
  33. char grab_item(int x,int y,char dir);//Dir is for transporter
  34. void show_status(void);
  35. void show_counter(char far *str,char x,char y,char skip_if_zero=0);
  36. char update(char game,char &fadein);
  37. // The getkey key.
  38. extern int key_get;
  39. //For changing screens AFTER an update is done and shown
  40. extern int target_board;//Where to go
  41. extern int target_where;//0 for x/y, 1 for entrance
  42. extern int target_x;//Or color of entrance
  43. extern int target_y;//Or id of entrance
  44. extern int target_d_id;
  45. extern int target_d_color;
  46. extern char dead;
  47. extern char pal_update;
  48. #ifdef __cplusplus
  49. extern "C" {
  50. #endif
  51. void set_mesg(char far *str);
  52. void set_3_mesg(char far *str1,int num,char far *str2);
  53. void rotate(int x,int y,char dir);
  54. void find_player(void);
  55. #ifdef __cplusplus
  56. }
  57. #endif
  58. #endif