-
Notifications
You must be signed in to change notification settings - Fork 0
/
pathfinder.h
41 lines (33 loc) · 1.3 KB
/
pathfinder.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
#ifndef PATHFINDER_H
#define PATHFINDER_H
#include "clanmember.h"
#include <iostream>
class Warrior;
class Pathfinder : public ClanMember
{
private:
bool _trouve;
bool _promoted;
bool _gonnaMerge;
Pathfinder* _targetToMerged;
Resource * _resourceTargeted;
unsigned _currentCatching;
QList<Warrior*> _followers;
public:
Pathfinder(Position current, Position objectif,Planet* inPlanet,Alliance inAlliance);
Pathfinder(Position current, Position objectif,Planet* inPlanet,Alliance inAlliance,bool inPromote);
bool isPromoted() { return _promoted; }
bool isGoingToMerge() { return _gonnaMerge; }
void setPromoted(bool inProm) { _promoted=inProm; }
void setGonnaMerge(bool inGm) {_gonnaMerge=inGm;}
Pathfinder* getTargetToMerged() {return _targetToMerged;}
Resource * getResourceTargeted(){ return _resourceTargeted;}
QList<Warrior*> getFollowers() { return _followers;}
void setResourceTargeted(Resource * inRes) { _resourceTargeted=inRes;}
bool catchingRessource();
void addFollower(Warrior* inW);
void removeFollower(Warrior * inW);
void removeFollowers();
void execute();
};
#endif // PATHFINDER_H