-
Notifications
You must be signed in to change notification settings - Fork 0
/
Blocklist.h
44 lines (32 loc) · 977 Bytes
/
Blocklist.h
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
33
34
35
36
37
38
39
40
41
42
43
////////////////////////////////////////////////////////////////////////////////
//
// Cblocklist : Classe permetant la gestion de la liste des blocks types.
//
////////////////////////////////////////////////////////////////////////////////
#ifndef DEF_CLASS_BLOCKLIST
#define DEF_CLASS_BLOCKLIST
#include <vector>
#include <SFML/Graphics.hpp>
#include "Block.h"
using namespace std;
typedef vector<Image> Cimagelist;
class Cblocklist
{
private:
// Attributs
vector<Cblock*> m_blocklist;
public:
// Constructeurs
Cblocklist();
Cblocklist(Cblock const& e_block);
// Constructeur par copie
Cblocklist(Cblocklist const& e_blocklist);
// Surcharges d'opérateur
Cblock* operator[] (unsigned int x);
// Methodes
Cblock GetBlock(unsigned int x);
void addBlock(Cblock const& e_block);
void addBlock(string e_name, string e_description, bool e_grassy);
unsigned int getBlocklistSize();
};
#endif