-
Notifications
You must be signed in to change notification settings - Fork 8
/
Ia.hpp
47 lines (38 loc) · 1021 Bytes
/
Ia.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
//
// Ia.hpp for Ia in /home/emirot_n//rendu/bomberman-2015-romera_t/projet
//
// Made by nolan emirot
// Login <[email protected]>
//
// Started on Tue May 29 14:57:47 2012 nolan emirot
// Last update Sun Jun 3 19:45:45 2012 eric audran
//
#ifndef __IA_HPP__
#define __IA_HPP__
#include <vector>
class MyGame;
class Ia
{
public:
Ia( MyGame *realMyGame,APlayer *);
~Ia();
void fillVecPoids(gdl::Input&, gdl::GameClock&);
bool isNextZoneSafe(int x, int y);
bool proxDesAndVoid(int x, int y);
int safeZone();
int toBonnus();
int toPutBomb();
void putBomb(gdl::Input&, gdl::GameClock&);
void outOfBomb(gdl::Input&, gdl::GameClock&);
void toBonnus(gdl::Input&, gdl::GameClock&);
void turnRand(gdl::Input&, gdl::GameClock&);
Direction recSaferDir(unsigned int x, unsigned int y, Direction dir, unsigned int size);
Direction getSaferDir();
private:
APlayer *_ia;
std::vector<int> _poids;
MyGame *_myGameTmp;
int _indexBomb;
Direction _dirBonnus;
};
#endif