-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunit.h
58 lines (34 loc) · 1.01 KB
/
unit.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
54
55
56
57
58
#ifndef UNIT_H
#define UNIT_H
#include <SFML/Graphics.hpp>
#include <vector>
#include <string>
#include "mapobject.h"
#include "hutrie.h"
class MapObject;
class Unit
{
public:
sf::RectangleShape field;
void setMapObject(MapObject* mapObject) { this->mapObject = mapObject; }
MapObject* getMapObject() { return this->mapObject; }
// bool isEmpty() { return emptiness; }
// void setEmpty(bool emptiness) { this->emptiness = emptiness; }
Unit(sf::Vector2f position, int index);
void addHutrie(Hutrie* hutrie);
Hutrie* getHutrie();
int hutriesNumber();
Hutrie* getHutrieIndex(int index);
int getIndex() { return index; }
void setType(unsigned int type) {this->type = type;};
unsigned int getType() {return type;};
void assignType(std::string environmentType);
private:
// bool emptiness;
unsigned int type;
bool forestChecked, rocksChecked, mountainChecked;
MapObject* mapObject;
std::vector<Hutrie*> dwellers;
int index;
};
#endif // UNIT_H