37 lines
677 B
C
37 lines
677 B
C
|
#ifndef DEF_GRID
|
||
|
|
||
|
#define DEF_GRID
|
||
|
|
||
|
/* [1] Libs
|
||
|
=========================================================*/
|
||
|
/* (1) Internes */
|
||
|
#include <iostream>
|
||
|
#include <string>
|
||
|
#include <vector>
|
||
|
|
||
|
/* (2) Externes */
|
||
|
#include "term.h"
|
||
|
#include "Pieces/PieceFactory.h"
|
||
|
|
||
|
/* (3) Namespace */
|
||
|
using namespace std;
|
||
|
|
||
|
|
||
|
/* [2] Definition
|
||
|
=========================================================*/
|
||
|
class Grid{
|
||
|
public:
|
||
|
Grid(const int w=8, const int h=8);
|
||
|
|
||
|
// GETTERS
|
||
|
Piece pieceAt(const int x, const int y) const;
|
||
|
|
||
|
private:
|
||
|
// vector<Cell> _cells;
|
||
|
};
|
||
|
|
||
|
/* [n] Inclusion du corps
|
||
|
=========================================================*/
|
||
|
#include "Grid.cpp"
|
||
|
|
||
|
#endif
|