From bade63dbc386a9993dc4f2d661f2f4496a8b3755 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Santos Souza de Miranda Date: Fri, 27 Sep 2024 23:01:57 -0300 Subject: [PATCH] Changed how to implement the headers Region.h, RegionManager.h and Game.h by using pragma once --- src/include/Game.h | 5 ++--- src/include/Region.h | 9 +++++---- src/include/RegionManager.h | 5 ++--- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/include/Game.h b/src/include/Game.h index 5f611bf..e41f554 100644 --- a/src/include/Game.h +++ b/src/include/Game.h @@ -1,9 +1,8 @@ // // Created by gustavomiranda on 27/09/24. // +#pragma ONCE -#ifndef DRUGWARS_GAME_H -#define DRUGWARS_GAME_H #include "RegionManager.h" @@ -20,4 +19,4 @@ public: }; -#endif //DRUGWARS_GAME_H + diff --git a/src/include/Region.h b/src/include/Region.h index ab0449d..7484955 100644 --- a/src/include/Region.h +++ b/src/include/Region.h @@ -1,13 +1,14 @@ // // Created by gustavomiranda on 27/09/24. // +#pragma ONCE -#ifndef DRUGWARS_REGION_H -#define DRUGWARS_REGION_H #include -#include "RegionManager.h" + #include "Bag.h" +#include "RegionManager.h" + class RegionManager; @@ -24,4 +25,4 @@ public: RegionManager *getRegionManagerReference(); }; -#endif //DRUGWARS_REGION_H + diff --git a/src/include/RegionManager.h b/src/include/RegionManager.h index db842ec..a5640bd 100644 --- a/src/include/RegionManager.h +++ b/src/include/RegionManager.h @@ -1,9 +1,8 @@ // // Created by gustavomiranda on 27/09/24. // +#pragma ONCE -#ifndef DRUGWARS_REGIONMANAGER_H -#define DRUGWARS_REGIONMANAGER_H #include "Region.h" @@ -31,4 +30,4 @@ public: -#endif //DRUGWARS_REGIONMANAGER_H +