|
@@ -11,7 +11,7 @@
|
|
|
|
|
|
|
|
//macros
|
|
//macros
|
|
|
#define abs(x) x>0 ? x : -x
|
|
#define abs(x) x>0 ? x : -x
|
|
|
-typedef enum Pattern_Enum Pattern_Enum;
|
|
|
|
|
|
|
+typedef enum{PATTERN1, PATTERN_WHATEVER}Pattern;
|
|
|
typedef struct Camera Camera;
|
|
typedef struct Camera Camera;
|
|
|
typedef struct Wall Wall;
|
|
typedef struct Wall Wall;
|
|
|
typedef struct Line Line;
|
|
typedef struct Line Line;
|
|
@@ -19,7 +19,7 @@ typedef struct Level Level;
|
|
|
|
|
|
|
|
struct Level{
|
|
struct Level{
|
|
|
//for the level generation
|
|
//for the level generation
|
|
|
- Pattern_Enum available_patterns[][];
|
|
|
|
|
|
|
+ Pattern available_patterns[][];
|
|
|
int nb_patterns;
|
|
int nb_patterns;
|
|
|
|
|
|
|
|
//for the camera rotation
|
|
//for the camera rotation
|