-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcarrier.h
53 lines (35 loc) · 1.04 KB
/
carrier.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
44
45
46
47
48
49
50
51
52
53
#ifndef CARRIER_H
#define CARRIER_H
#include <SFML/Graphics.hpp>
#include <vector>
#include <string>
#include "hutrie.h"
#include "goods.h"
#include "building.h"
#include "textures.h"
class Building;
class Carrier : public Hutrie
{
public:
Carrier(sf::RenderWindow* hutrieApplication, std::vector<Unit*> unitsFromGame,
std::string pathName = Textures::carrierEmptyMoveRight1);
void moveHutrie();
bool haveArrived() { return arrived; };;
bool haveReturned() { return returned; };
void setReturned(bool returned) { this->returned = returned; };
void comeBack();;
sf::Thread carrierThread;
Goods myLuggage;
Building* getBuilding() { return myBuilding; };
void setBuilding(Building* newBuilding) { myBuilding = newBuilding; };
void animateTextureDown();
void animateTextureUp();
void animateTextureRight();
void animateTextureLeft();
//void toDirection(float targetX, float targetY);
private:
Building* myBuilding;
bool arrived;
bool returned;
};
#endif // CARRIER_H