shadow
This commit is contained in:
parent
64a05f9a9f
commit
afaa1ff7eb
2 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
#include "../includes/Piece.hpp"
|
#include "../includes/Piece.hpp"
|
||||||
|
|
||||||
Piece::Piece(std::string categorie) { std::cout << "pièce\n"; }
|
Piece::Piece(std::string cat) { std::cout << "pièce\n"; }
|
||||||
|
|
||||||
Piece::~Piece() {}
|
Piece::~Piece() {}
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#include "../includes/Plateau.hpp"
|
#include "../includes/Plateau.hpp"
|
||||||
|
|
||||||
Plateau::Plateau(int taille) {
|
Plateau::Plateau(int t) {
|
||||||
plateau = new Piece **[taille];
|
plateau = new Piece **[t];
|
||||||
for (int i = 0; i < taille; i++) {
|
for (int i = 0; i < t; i++) {
|
||||||
plateau[i] = new Piece *[taille];
|
plateau[i] = new Piece *[t];
|
||||||
for (int j = 0; j < taille; j++) {
|
for (int j = 0; j < t; j++) {
|
||||||
plateau[i][j] = nullptr;
|
plateau[i][j] = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue