Subversion Repositories Games.Rick Dangerous

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * src/screens.h
  3.  *
  4.  * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). All rights reserved.
  5.  *
  6.  * The use and distribution terms for this software are contained in the file
  7.  * named README, which can be found in the root of this distribution. By
  8.  * using this software in any fashion, you are agreeing to be bound by the
  9.  * terms of this license.
  10.  *
  11.  * You must not remove this notice, or any other, from this software.
  12.  */
  13.  
  14. #ifndef _SCREENS_H
  15. #define _SCREENS_H
  16.  
  17. #include "system.h"
  18.  
  19. #define SCREEN_TIMEOUT 4000
  20. #define SCREEN_RUNNING 0
  21. #define SCREEN_DONE 1
  22. #define SCREEN_EXIT 2
  23.  
  24. typedef struct
  25. {
  26.    U16 count;   /* number of loops */
  27.    U16 dx, dy;   /* sprite x and y deltas */
  28.    U16 base;   /* base for sprite numbers table */
  29. } screen_imapsteps_t;   /* description of one step */
  30.  
  31. extern U8 screen_imapsl[];   /* sprite lists */
  32. extern screen_imapsteps_t screen_imapsteps[];   /* map intro steps */
  33. extern U8 screen_imapsofs[];   /* first step for each map */
  34. extern U8 *screen_imaptext[];   /* map intro texts */
  35. extern U8 screen_imainhoft[];   /* hall of fame title */
  36. extern U8 screen_imaincdc[];   /* core design copyright text */
  37. extern U8 screen_gameovertxt[];   /* game over */
  38. extern U8 screen_pausedtxt[];   /* paused */
  39. extern U8 screen_congrats[];   /* congratulations */
  40.  
  41. extern U8 screen_introMain(void);   /* main intro */
  42. extern U8 screen_introMap(void);   /* map intro */
  43. extern U8 screen_gameover(void);   /* gameover */
  44. extern U8 screen_getname(void);   /* enter you name */
  45. extern void screen_pause(U8);   /* pause indicator */
  46.  
  47. #endif
  48.