little change to improve win32 portability
[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 struct base_type
21 {
22   float x;
23   float y;
24   float xm;
25   float ym;
26   float width;
27   float height;
28 };
29
30
31 struct string_list_type
32 {
33   int num_items;
34   int active_item;
35   char **item;
36 };
37
38 void  string_list_init(string_list_type* pstring_list);
39 char* string_list_active(string_list_type* pstring_list);
40 void  string_list_copy(string_list_type* pstring_list, string_list_type pstring_list_orig);
41 int   string_list_find(string_list_type* pstring_list, const char* str);
42 void  string_list_sort(string_list_type* pstring_list);
43 void  string_list_add_item(string_list_type* pstring_list, const char* str);
44 void  string_list_free(string_list_type* pstring_list);
45
46 #endif /*SUPERTUX_TYPE_H*/
47