Huge code merge. This reflects the current status of my rewrite/restructuring. A...
[supertux.git] / src / level.h
1 //
2 // C Interface: level
3 //
4 // Description: 
5 //
6 //
7 // Author: Tobias Glaesser <tobi.web@gmx.de>, (C) 2003
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12
13 #ifndef SUPERTUX_LEVEL_H
14 #define SUPERTUX_LEVEL_H
15
16 #include "type.h"
17
18 #define LEVEL_NAME_MAX 20
19
20 typedef struct st_level /*It is easier to read the sources IMHO, if we don't write something like int a,b,c; */
21   {
22     char name[LEVEL_NAME_MAX];
23     char theme[100];
24     char song_title[100];
25     unsigned char* tiles[15];
26     int time_left;
27     int bkgd_red;
28     int bkgd_green;
29     int bkgd_blue;
30     int width;
31   } st_level;
32
33 texture_type img_bkgd[2][4], img_solid[4], img_brick[2];
34   
35 void loadlevel(st_level* plevel, char * subset, int level);
36 void loadlevelgfx(st_level* plevel);
37 void unloadlevelgfx();
38 void load_level_image(texture_type* ptexture, char* theme, char * file, int use_alpha);
39 void level_change(st_level* plevel, float x, float y, unsigned char c);
40
41 #endif /*SUPERTUX_LEVEL_H*/