File tree Expand file tree Collapse file tree 13 files changed +43
-38
lines changed Expand file tree Collapse file tree 13 files changed +43
-38
lines changed Original file line number Diff line number Diff line change 1
1
2
- #ifndef GAME_MACROS_H_INCLUDED
3
- #define GAME_MACROS_H_INCLUDED
2
+ #ifndef LIBS_GAME_MACROS_H_INCLUDED
3
+ #define LIBS_GAME_MACROS_H_INCLUDED
4
4
5
5
/**
6
6
* @def DASHBOARD_ROWS
68
68
*/
69
69
#define NEIGHBORHOOD_RADIUS 1
70
70
71
- #endif // GAME_MACROS_H_INCLUDED
71
+ #endif // LIBS_GAME_MACROS_H_INCLUDED
Original file line number Diff line number Diff line change 1
1
2
- #ifndef GAME_MAIN_H_INCLUDED
3
- #define GAME_MAIN_H_INCLUDED
2
+ #ifndef LIBS_GAME_MAIN_H_INCLUDED
3
+ #define LIBS_GAME_MAIN_H_INCLUDED
4
4
5
5
// Root
6
6
#include "./macros.h"
7
7
#include "./methods.h"
8
8
#include "./structs.h"
9
9
10
- #endif // GAME_MAIN_H_INCLUDED
10
+ #endif // LIBS_GAME_MAIN_H_INCLUDED
Original file line number Diff line number Diff line change 1
1
2
+ #ifndef LIBS_GAME_METHODS_H_INCLUDED
3
+ #define LIBS_GAME_METHODS_H_INCLUDED
4
+
2
5
#include "../patterns/main.h"
3
6
#include "./structs.h"
4
7
@@ -105,4 +108,6 @@ void setDashboardCenter(TGame* pGame);
105
108
*
106
109
* @warning This function assumes that `pGame` has been properly initialized.
107
110
*/
108
- void startGameByConsole (TGame * pGame , int maxGeneration , int delayBetweenGenerations );
111
+ void startGameByConsole (TGame * pGame , int maxGeneration , int delayBetweenGenerations );
112
+
113
+ #endif // LIBS_GAME_MAIN_H_INCLUDED
Original file line number Diff line number Diff line change 1
1
2
- #include "../main.h"
2
+ #ifndef LIBS_GAME_STRUCTS_H_INCLUDED
3
+ #define LIBS_GAME_STRUCTS_H_INCLUDED
3
4
4
- #ifndef GAME_STRUCTS_H_INCLUDED
5
- #define GAME_STRUCTS_H_INCLUDED
5
+ #include "../main.h"
6
6
7
7
/**
8
8
* @struct TGame
@@ -25,4 +25,4 @@ typedef struct {
25
25
int delayBetweenGenerations ; /** Delay time in milliseconds for processed the next generation.*/
26
26
} TGame ;
27
27
28
- #endif // GAME_STRUCTS_H_INCLUDED
28
+ #endif // LIBS_GAME_STRUCTS_H_INCLUDED
Original file line number Diff line number Diff line change 1
1
2
- #ifndef MACROS_H_INCLUDED
3
- #define MACROS_H_INCLUDED
2
+ #ifndef LIBS_MACROS_H_INCLUDED
3
+ #define LIBS_MACROS_H_INCLUDED
4
4
5
5
/**
6
6
* @def MAXIMUM_DELAY
24
24
*/
25
25
#define MINIMUM_DELAY 0
26
26
27
- #endif // MACROS_H_INCLUDED
27
+ #endif // LIBS_MACROS_H_INCLUDED
Original file line number Diff line number Diff line change 1
1
2
- #ifndef MAIN_H_INCLUDED
3
- #define MAIN_H_INCLUDED
2
+ #ifndef LIBS_MAIN_H_INCLUDED
3
+ #define LIBS_MAIN_H_INCLUDED
4
4
5
5
// Root
6
6
#include "./macros.h"
13
13
// Patterns
14
14
#include "./patterns/main.h"
15
15
16
- #endif // MAIN_H_INCLUDED
16
+ #endif // LIBS_MAIN_H_INCLUDED
Original file line number Diff line number Diff line change 1
1
2
- #ifndef PATTERNS_CONSTRUCTORS_H_INCLUDED
3
- #define PATTERNS_CONSTRUCTORS_H_INCLUDED
2
+ #ifndef LIBS_PATTERNS_CONSTRUCTORS_H_INCLUDED
3
+ #define LIBS_PATTERNS_CONSTRUCTORS_H_INCLUDED
4
4
5
5
#include "./structs.h"
6
6
@@ -48,4 +48,4 @@ void newPressPattern(TPattern* pattern);
48
48
*/
49
49
void newToadPattern (TPattern * pattern );
50
50
51
- #endif // PATTERNS_CONSTRUCTORS_H_INCLUDED
51
+ #endif // LIBS_PATTERNS_CONSTRUCTORS_H_INCLUDED
Original file line number Diff line number Diff line change 1
1
2
- #ifndef PATTERNS_MACROS_H_INCLUDED
3
- #define PATTERNS_MACROS_H_INCLUDED
2
+ #ifndef LIBS_PATTERNS_MACROS_H_INCLUDED
3
+ #define LIBS_PATTERNS_MACROS_H_INCLUDED
4
4
5
5
/**
6
6
* @def PATTERN_ROWS
26
26
*/
27
27
#define PATTERN_COLS 36
28
28
29
- #endif // PATTERNS_MACROS_H_INCLUDED
29
+ #endif // LIBS_PATTERNS_MACROS_H_INCLUDED
Original file line number Diff line number Diff line change 1
1
2
- #ifndef PATTERNS_MAIN_H_INCLUDED
3
- #define PATTERNS_MAIN_H_INCLUDED
2
+ #ifndef LIBS_PATTERNS_MAIN_H_INCLUDED
3
+ #define LIBS_PATTERNS_MAIN_H_INCLUDED
4
4
5
5
// Root
6
6
#include "./constructors.h"
7
7
#include "./macros.h"
8
8
#include "./methods.h"
9
9
#include "./structs.h"
10
10
11
- #endif // PATTERNS_MAIN_H_INCLUDED
11
+ #endif // LIBS_PATTERNS_MAIN_H_INCLUDED
Original file line number Diff line number Diff line change 1
1
2
- #ifndef PATTERNS_METHODS_H_INCLUDED
3
- #define PATTERNS_METHODS_H_INCLUDED
2
+ #ifndef LIBS_PATTERNS_METHODS_H_INCLUDED
3
+ #define LIBS_PATTERNS_METHODS_H_INCLUDED
4
4
5
5
#include "./structs.h"
6
6
@@ -33,4 +33,4 @@ void printPatternByConsole(TPattern* pPattern);
33
33
*/
34
34
void setPatternCenter (TPattern * pPattern );
35
35
36
- #endif // PATTERNS_METHODS_H_INCLUDED
36
+ #endif // LIBS_PATTERNS_METHODS_H_INCLUDED
You can’t perform that action at this time.
0 commit comments