-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoodsbuilding.h
50 lines (34 loc) · 945 Bytes
/
goodsbuilding.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
#ifndef GOODSBUILDING_H
#define GOODSBUILDING_H
#include <SFML/Graphics.hpp>
#include <vector>
#include <string>
#include "building.h"
#include "guibutton.h"
#include "guitext.h"
#include "goods.h"
#include "worker.h"
#include "gamebalance.h"
class GoodsBuilding : public Building
{
public:
GoodsBuilding(sf::RenderWindow* hutrieApplication, std::vector<Unit*> unitsFromGame);
void showButtons();
void deactivateButtons();
void buttonAction();
virtual void createProduct() = 0;
void checkProduction();
Goods myProducts;
void giveProduct(Goods* luggage);
unsigned int productsCounter();
void highlightButton();
protected:
void changeBuildingSprite();
GUIButton callWorker;
GUIText assignWorker;
GUIButton goodsReady;
GUIText goodReady;
unsigned int productsCapacity = GameBalance::maxProductsInStore;
sf::Texture textureWithProduct;
};
#endif // GOODSBUILDING_H