game.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. //For changing screens AFTER an update is done and shown
  38. extern int target_board;//Where to go
  39. extern int target_where;//0 for x/y, 1 for entrance
  40. extern int target_x;//Or color of entrance
  41. extern int target_y;//Or id of entrance
  42. extern int target_d_id;
  43. extern int target_d_color;
  44. extern char pal_update;
  45. #ifdef __cplusplus
  46. extern "C" {
  47. #endif
  48. void set_mesg(char far *str);
  49. void set_3_mesg(char far *str1,int num,char far *str2);
  50. void rotate(int x,int y,char dir);
  51. void find_player(void);
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif