- replaced YES/NO with true/false
[supertux.git] / src / type.h
index 0eb6d42..45d92b8 100644 (file)
 #ifndef SUPERTUX_TYPE_H
 #define SUPERTUX_TYPE_H
 
-#include <SDL/SDL.h>
+#include "SDL.h"
 
 /* 'Base' type for game objects */
 
 typedef struct base_type
   {
-    int alive;
     float x;
     float y;
     float xm;
@@ -29,5 +28,22 @@ typedef struct base_type
   }
 base_type;
 
+
+typedef struct string_list_type
+{
+ int num_items;
+ int active_item;
+ char **item;
+ }
+string_list_type;
+
+void  string_list_init(string_list_type* pstring_list);
+char* string_list_active(string_list_type* pstring_list);
+void  string_list_copy(string_list_type* pstring_list, string_list_type pstring_list_orig);
+int   string_list_find(string_list_type* pstring_list, const char* str);
+void  string_list_sort(string_list_type* pstring_list);
+void  string_list_add_item(string_list_type* pstring_list, const char* str);
+void  string_list_free(string_list_type* pstring_list);
+
 #endif /*SUPERTUX_TYPE_H*/