-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCore.hpp
62 lines (50 loc) · 1.48 KB
/
Core.hpp
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
60
61
#ifndef __CORE_HPP__
#define __CORE_HPP__
#include <iostream>
#include <list>
#include <vector>
#include "APlayer.hpp"
#include "Ia.hpp"
#include "CoreMap.hpp"
#include "Option.hpp"
#include "CoreMap.hpp"
#include "Bomb.hpp"
#include "GameClock.hpp"
class Bomb;
class Core
{
public:
Core(gdl::GameClock*);
~Core();
private:
CoreMap *_map;
Music * _musicBomb;
gdl::GameClock *gameClock_;
std::list<APlayer*> _players;
std::list<Bomb*> _bombs;
bool _firstMusicBomb;
float _timeInGame;
public:
void setMusic(Music *);
void checkBomb(void);
void genPlayers(const Option & opt);
void genIa(const Option & opt);
Position *genPositionPlayers(const Option& opt);
APlayer* getPlayerById(const unsigned int& id) const;
CoreMap* getMap() const;
void setMap(CoreMap* map);
void setPlayers(std::list<APlayer*> players);
void setBombs(std::list<Bomb*> bombs);
std::list<APlayer*> getPlayer() const;
std::list<Bomb*> getBomb() const;
unsigned int getXMax() const;
unsigned int getYMax() const;
void isPlayer(unsigned int x, unsigned int y);
void addBomb(Bomb* newBomb);
gdl::GameClock *getGameClock() const;
bool hasBombOnPos(const unsigned int & x, const unsigned int & y);
float getTime(void) const;
void setTime(const float & time);
unsigned int isBomb(const unsigned int& x, const unsigned int& y, const unsigned int& prevRet);
};
#endif