Explorar o código

Created the Level struct, and added a few components

Adrien Boucaud %!s(int64=12) %!d(string=hai) anos
pai
achega
ba2aa08064
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  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