-
Notifications
You must be signed in to change notification settings - Fork 2
/
industry.h
51 lines (48 loc) · 920 Bytes
/
industry.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
#pragma once
#include"targetingBox.h"
#include "construction_tool_tip.h"
class earth;
enum INDUSTRYKIND
{
INDUSTRY_MISSING,
INDUSTRY_STEELWORK,
INDUSTRY_ANVIL,
INDUSTRY_SEWINGMACHINE
};
struct IndustryRc
{
RECT rc;
INDUSTRYKIND kind;
string name;
};
class industry
{
private:
construction_tool_tip* tooltip;
targetingBox *_targetBox;
vector<IndustryRc*> indu_rc;
bool _target;
string Selection_building;
void mouse_targetBox();
public:
HRESULT init();
void release();
void update();
void render(HDC hdc);
public:
bool getTarget() { return _target; };
void setTarget(bool target) { _target = target; };
void RemoveTarget();
private:
bool is_building_check;
string building;
earth* _map;
int _tileIndex;
int buildCount;
public:
void setInMapLink(earth* map) { _map = map; };
void renderBuildableTile(HDC hdc);
bool industryItemCheck();
void addBuilding();
void tooltiprender(HDC hdc);
};