Преглед на файлове

Created the Level struct, and added a few components

Adrien Boucaud преди 12 години
родител
ревизия
ba2aa08064
променени са 1 файла, в които са добавени 10 реда и са изтрити 1 реда
  1. 10 1
      struct.h

+ 10 - 1
struct.h

@@ -11,10 +11,19 @@
 
 //macros
 #define abs(x) x>0 ? x : -x
-
+typedef enum Pattern_Enum Pattern_Enum;
 typedef struct Camera Camera;
 typedef struct Wall Wall;
 typedef struct Line Line;
+typedef struct Level Level;
+
+struct Level{
+	//for the level generation
+	Pattern_Enum available_patterns[][];
+	int nb_patterns;
+
+
+};
 //the camera is defined by its center
 // ! and not by its upper left corner !
 //and an angle