Changed how to implement the headers Region.h, RegionManager.h and Game.h by using pragma once

This commit is contained in:
Gustavo Henrique Santos Souza de Miranda
2024-09-27 23:01:57 -03:00
parent c5fdcbe373
commit bade63dbc3
3 changed files with 9 additions and 10 deletions
+2 -3
View File
@@ -1,9 +1,8 @@
// //
// Created by gustavomiranda on 27/09/24. // Created by gustavomiranda on 27/09/24.
// //
#pragma ONCE
#ifndef DRUGWARS_GAME_H
#define DRUGWARS_GAME_H
#include "RegionManager.h" #include "RegionManager.h"
@@ -20,4 +19,4 @@ public:
}; };
#endif //DRUGWARS_GAME_H
+5 -4
View File
@@ -1,13 +1,14 @@
// //
// Created by gustavomiranda on 27/09/24. // Created by gustavomiranda on 27/09/24.
// //
#pragma ONCE
#ifndef DRUGWARS_REGION_H
#define DRUGWARS_REGION_H
#include <map> #include <map>
#include "RegionManager.h"
#include "Bag.h" #include "Bag.h"
#include "RegionManager.h"
class RegionManager; class RegionManager;
@@ -24,4 +25,4 @@ public:
RegionManager *getRegionManagerReference(); RegionManager *getRegionManagerReference();
}; };
#endif //DRUGWARS_REGION_H
+2 -3
View File
@@ -1,9 +1,8 @@
// //
// Created by gustavomiranda on 27/09/24. // Created by gustavomiranda on 27/09/24.
// //
#pragma ONCE
#ifndef DRUGWARS_REGIONMANAGER_H
#define DRUGWARS_REGIONMANAGER_H
#include "Region.h" #include "Region.h"
@@ -31,4 +30,4 @@ public:
#endif //DRUGWARS_REGIONMANAGER_H