浏览代码

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
 //macros
 #define abs(x) x>0 ? x : -x
 #define abs(x) x>0 ? x : -x
-
+typedef enum Pattern_Enum Pattern_Enum;
 typedef struct Camera Camera;
 typedef struct Camera Camera;
 typedef struct Wall Wall;
 typedef struct Wall Wall;
 typedef struct Line Line;
 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
 //the camera is defined by its center
 // ! and not by its upper left corner !
 // ! and not by its upper left corner !
 //and an angle
 //and an angle