~ubuntu-branches/ubuntu/quantal/gnurobbo/quantal

« back to all changes in this revision

Viewing changes to screen.h

  • Committer: Bazaar Package Importer
  • Author(s): Ansgar Burchardt, Ansgar Burchardt, Gonéri Le Bouder
  • Date: 2009-03-14 23:10:50 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090314231050-70zcgdcmp7177pql
Tags: 0.61-1
[ Ansgar Burchardt ]
* New Upstream Version (LP: #337089)
* Do not dump vm usage information
  + New patch: do-not-dump-vmusage.diff
* Update packaging for debhelper 7
* Update copyright information
* Update Vcs-* fields for the Git repository
* Bump Standards Version to 3.8.0
  + add debian/README.source
* Add watch file

[ Gonéri Le Bouder ]
* Do not install the LICENSE-font files 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  GNU Robbo
 
2
 *  Copyright (C) notes:
 
3
 *  An Idea and Atari version: LK Avalon, Janusz Pelc, 1989
 
4
 *                 Linux Code: Arkadiusz Lipiec, 2002-2009
 
5
 *                                 <arkadiusz.lipiec@gmail.com>
 
6
 *                             Thunor 2007-2009
 
7
 *                                 <thunorsif@hotmail.com>
 
8
 *
 
9
 *  GNU Robbo is free software - you can redistribute it and/or modify
 
10
 *  it under the terms of the GNU General Public License as published by
 
11
 *  the Free Software Foundation; either version 2, or (at your option)
 
12
 *  any later version.
 
13
 *
 
14
 *  GNU Robbo is distributed in the hope that it will be useful,
 
15
 *  but WITHOUT ANY WARRANTY; without even the impled warranty of
 
16
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
17
 *  GNU General Public License for more details.
 
18
 *
 
19
 *  You should have received a copy of the GNU General Public License
 
20
 *  along with GNU CC; see the file COPYING. If not, write to the
 
21
 *  Free Software Foundation, 59 Temple Place - Suite 330,
 
22
 *  Boston, MA 02111-1307, USA.
 
23
 *
 
24
 */
 
25
 
 
26
/* Defines */
 
27
/* These dictate what gets redrawn */
 
28
#define REDRAW_INITIALISE 3
 
29
#define REDRAW_EVERYTHING 2
 
30
#define REDRAW_INTERMEDIATE 1
 
31
#define REDRAW_ANIMATED 0
 
32
 
 
33
/* Scoreline redraw bits */
 
34
#define SCORELINE_ICONS 1
 
35
#define SCORELINE_SCREWS 2
 
36
#define SCORELINE_KEYS 4
 
37
#define SCORELINE_BULLETS 8
 
38
#define SCORELINE_LEVEL 16
 
39
#define SCORELINE_PACK 32
 
40
#define SCORELINE_AUTHOR 64
 
41
 
 
42
/* Variables */
 
43
SDL_Surface *screen;
 
44
 
 
45
struct {
 
46
        int xoffset;
 
47
        int yoffset;
 
48
        int redraw;                     /* An ORed combination of SCORELINE_* bits */
 
49
} scoreline;
 
50
 
 
51
struct {
 
52
        int xoffset;
 
53
        int yoffset;
 
54
} authorline;
 
55
 
 
56
struct {
 
57
        int xres;
 
58
        int yres;
 
59
        int field_size;
 
60
        int fullscreen;         /* 0 or SDL_FULLSCREEN */
 
61
} video;
 
62
 
 
63
/* Function prototypes */
 
64
void show_game_area(int redrawlevel);
 
65
void show_game_area_fade(int redrawlevel, int type);
 
66
SDL_Rect set_rect(int x, int y, int w, int h);
 
67
int set_video_mode(void);
 
68
void toggle_fullscreen(int *fullscreen);
 
69
void show_level_colour(int debug_colour_select_r, int debug_colour_select_g, int debug_colour_select_b, int debug_colour_select_component);
 
70
void inc_colour_component(int *colour_component);
 
71
void dec_colour_component(int *colour_component);
 
72
void show_introscreen(int redrawlevel);
 
73
void show_helpscreen(int redrawlevel);
 
74
void show_optionsscreen(int redrawlevel);
 
75
void show_message_box(int redrawlevel, char *name, int timeout, char *message, int dynamic, int width, int height);
 
76
void show_endscreen(void);
 
77
 
 
78
 
 
79
 
 
80