diff --git a/Pontu/include/modele/Island.h b/Pontu/include/modele/Island.h new file mode 100644 index 0000000..a18d0c2 --- /dev/null +++ b/Pontu/include/modele/Island.h @@ -0,0 +1,22 @@ +/** + *\file Island.h + *\brief Island's model + *\author Jacques + *\date 29/11/2021 + */ + +#ifndef ISLAND_H +#define ISLAND_H + +/** + *\struct Island + *\brief Island representation + * Island Coordinate on the game board + */ +typedef struct +{ + int x;///< Coordinate : absciss + int y;///< Coordinate : ordinate +}Island; + +#endif \ No newline at end of file diff --git a/Pontu/include/modele/Piece.h b/Pontu/include/modele/Piece.h new file mode 100644 index 0000000..aca450d --- /dev/null +++ b/Pontu/include/modele/Piece.h @@ -0,0 +1,26 @@ +/** + *\file Piece.h + *\brief Piece's model + *\author Jacques + *\date 29/11/2021 + */ + +#ifndef PIECE_H +#define PIECE_H +#include "Island.h" +//#include "Player.h" //If we use a pointer for the player instead of an int + +/** + *\Struct Piece + *\brief Piece representation + *\ Piece characteristics + */ +typedef struct +{ + int idJ; ///< Player's id (owner of the piece) + bool stuck; ///< Evaluate to true if the piece is isolated + Island island; ///< Piece's localisation on the game board + +}Piece; + +#endif // PIECE_H diff --git a/Pontu/include/modele/Pion.h b/Pontu/include/modele/Pion.h deleted file mode 100644 index e69de29..0000000