- added worldmap stuff
[supertux.git] / src / type.h
1 //
2 // C Interface: type
3 //
4 // Description: 
5 //
6 //
7 // Author: Tobias Glaesser <tobi.web@gmx.de>, (C) 2004
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12
13 #ifndef SUPERTUX_TYPE_H
14 #define SUPERTUX_TYPE_H
15
16 #include "SDL.h"
17
18 /* 'Base' type for game objects */
19
20 typedef struct base_type
21   {
22     int alive;
23     float x;
24     float y;
25     float xm;
26     float ym;
27     float width;
28     float height;
29   }
30 base_type;
31
32
33 typedef struct string_list_type
34 {
35  int num_items;
36  int active_item;
37  char **item;
38  }
39 string_list_type;
40
41 void string_list_init(string_list_type* pstring_list);
42 char* string_list_active(string_list_type* pstring_list);
43 void string_list_copy(string_list_type* pstring_list, string_list_type pstring_list_orig);
44 int string_list_find(string_list_type* pstring_list, char* str);
45 void string_list_sort(string_list_type* pstring_list);
46 void string_list_add_item(string_list_type* pstring_list, char* str);
47 void string_list_free(string_list_type* pstring_list);
48
49 #endif /*SUPERTUX_TYPE_H*/
50