-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcarte.h
More file actions
32 lines (25 loc) · 699 Bytes
/
Copy pathcarte.h
File metadata and controls
32 lines (25 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef CARTE_H
#define CARTE_H
#include <vector>
#include <iostream>
#include <math.h>
#include "case.h"
class Carte
{
public:
Carte();
Carte(int x, int y);
void vision();
void centrerSur(int x, int y);
inline std::vector<std::vector<Case*> > getGrille() {return m_Grille;}
std::vector<std::vector<Case*> > getGrille(int x, int y, int* offsetX, int* offsetY);
inline int getTailleX(){return m_TailleX;}
inline int getTailleY(){return m_TailleY;}
std::vector<Case*> operator[](int a);
private:
int m_TailleX, m_CentreX;
int m_TailleY, m_CentreY;
std::vector<std::vector<Case*> > m_Grille;
void InitCarte(int x, int y);
};
#endif // CARTE_H