diff --git a/includes/Butin.hpp b/includes/Butin.hpp index 40d2711..be19c97 100644 --- a/includes/Butin.hpp +++ b/includes/Butin.hpp @@ -1,5 +1,4 @@ -#ifndef BUTIN -#define BUTIN +#pragma once #include @@ -19,5 +18,3 @@ public: }; // Fonction d'initialisation du jeu - -#endif diff --git a/includes/Dames.hpp b/includes/Dames.hpp index 7057690..3bb8daf 100644 --- a/includes/Dames.hpp +++ b/includes/Dames.hpp @@ -1,5 +1,4 @@ -#ifndef DAMES -#define DAMES +#pragma once #include @@ -26,5 +25,3 @@ public: // Fonction d'initialisation du jeu }; - -#endif diff --git a/includes/Ecran.hpp b/includes/Ecran.hpp index ad2b3da..8df1905 100644 --- a/includes/Ecran.hpp +++ b/includes/Ecran.hpp @@ -1,5 +1,4 @@ -#ifndef PROJECT_ECRAN_HPP -#define PROJECT_ECRAN_HPP 1 +#pragma once #include #include @@ -15,5 +14,3 @@ public: void afficher(std::function f = {[]() {}}); }; - -#endif diff --git a/includes/Joueur.hpp b/includes/Joueur.hpp index c5e7873..3d0eb8c 100644 --- a/includes/Joueur.hpp +++ b/includes/Joueur.hpp @@ -1,5 +1,4 @@ -#ifndef JOUEUR -#define JOUEUR +#pragma once #include "../includes/Piece.hpp" #include @@ -30,5 +29,3 @@ public: // Fonction qui supprime une pièce de la liste de pièces du joueur }; - -#endif diff --git a/includes/Mouvement.hpp b/includes/Mouvement.hpp index a572228..67daec1 100644 --- a/includes/Mouvement.hpp +++ b/includes/Mouvement.hpp @@ -1,5 +1,4 @@ -#ifndef MOUVEMENT -#define MOUVEMENT +#pragma once #include @@ -23,5 +22,3 @@ public: // Fonction de prise de pièce }; - -#endif diff --git a/includes/Piece.hpp b/includes/Piece.hpp index d0c7697..96d283d 100644 --- a/includes/Piece.hpp +++ b/includes/Piece.hpp @@ -1,5 +1,4 @@ -#ifndef PIECE -#define PIECE +#pragma once #include @@ -16,5 +15,3 @@ public: Piece(const Piece &); // copy constructor const Piece &operator=(const Piece &); // copy assignement }; - -#endif diff --git a/includes/PieceButin.hpp b/includes/PieceButin.hpp index 6693cb4..16189d3 100644 --- a/includes/PieceButin.hpp +++ b/includes/PieceButin.hpp @@ -1,5 +1,4 @@ -#ifndef PIECEEE -#define PIECEEE +#pragma once #include "Piece.hpp" @@ -10,5 +9,3 @@ public: PieceButin(std::string categorie); virtual ~PieceButin(); }; - -#endif diff --git a/includes/PieceDames.hpp b/includes/PieceDames.hpp index 26a7053..2d4fa1e 100644 --- a/includes/PieceDames.hpp +++ b/includes/PieceDames.hpp @@ -1,5 +1,4 @@ -#ifndef PIECEE -#define PIECEE +#pragma once #include "Piece.hpp" @@ -8,5 +7,3 @@ public: PieceDames(std::string categorie); virtual ~PieceDames(); }; - -#endif diff --git a/includes/Plateau.hpp b/includes/Plateau.hpp index 3a37532..a3dfa75 100644 --- a/includes/Plateau.hpp +++ b/includes/Plateau.hpp @@ -1,5 +1,4 @@ -#ifndef PLATEAU -#define PLATEAU +#pragma once #include "../includes/Joueur.hpp" @@ -30,5 +29,3 @@ public: // Fonction pour modifier le plateau void modifierPlateau(int x, int y, Piece *piece); }; - -#endif diff --git a/includes/Safari.hpp b/includes/Safari.hpp index 5505bd2..2d9d199 100644 --- a/includes/Safari.hpp +++ b/includes/Safari.hpp @@ -1,5 +1,4 @@ -#ifndef SAFARI -#define SAFARI +#pragma once #include @@ -19,5 +18,3 @@ public: }; // Fonction d'initialisation du jeu - -#endif