-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathCoreMap.hpp
More file actions
59 lines (50 loc) · 1.25 KB
/
CoreMap.hpp
File metadata and controls
59 lines (50 loc) · 1.25 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef __COREMAP_HPP__
#define __COREMAP_HPP__
#include <vector>
#include "Option.hpp"
#include "APlayer.hpp"
#include "TextMap.hpp"
#include "all.hpp"
#include "Objects.hpp"
class APlayer;
#define ROUND(x) x + 0.5f
typedef enum e_bloc
{
INDES, // 0
DES, // 1
DESB, // 2
DESS, // 3
DESR, // 4
DESL,
DESC,
VOID, // 5
BOMB, // 6
SPEED, //7
RANGE, // 8
LIFE,
LIGHT
} Ibloc;
class CoreMap
{
std::vector<std::vector<Ibloc> > _map;
unsigned int _xmax;
unsigned int _ymax;
Objects * _obj;
public:
CoreMap(){};
~CoreMap(){};
void draw();
void genMap(const Option & opt);
std::vector<std::vector<Ibloc> > getMap() const;
unsigned int getXMax() const;
unsigned int getYMax() const;
void setXMax(const unsigned int &x);
void setYMax(const unsigned int &y);
void setObjects(Objects *);
void setMap(std::vector<std::vector<Ibloc> >& map);
Ibloc getAt(const double &dx, const double &dy) const;
void setAt(const double &dd, const double&d, Ibloc);
Ibloc genBonus(const Option&);
void adjustMapWithPlayers(std::list<APlayer*> playerList);
};
#endif