-
Notifications
You must be signed in to change notification settings - Fork 2
/
Agriculture.h
50 lines (48 loc) · 941 Bytes
/
Agriculture.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
#pragma once
#include "targetingBox.h"
#include "construction_tool_tip.h"
class earth;
enum AGRICULTUREKIND
{
AGRICULTUREKIND_MISSING,
AGRICULTUREKIND_BRIDGE,
AGRICULTUREKIND_FISHTRAP
};
struct AGRICULTURERc
{
RECT rc;
AGRICULTUREKIND kind;
string name;
};
class Agriculture
{
private:
targetingBox *_targetBox;
vector<AGRICULTURERc*> agriRc;
bool _target;
int _tileIndex;
void mouse_targetBox();
construction_tool_tip* tooltip;
public:
HRESULT init();
void release();
void update();
void render(HDC hdc);
void RemoveTarget();
public:
bool getTarget() { return _target; };
void setTarget(bool target) { _target = target; };
private:
bool is_building_check;
string building;
image* greentile;
image* redtile;
earth* _map;
int buildCount;
public:
void setAgMapLink(earth* map) { _map = map; };
void renderBuildableTile(HDC hdc);
bool agricultureItemCheck();
void addBuilding();
void tooltiprender(HDC hdc);
};