-
Notifications
You must be signed in to change notification settings - Fork 2
/
earth.h
58 lines (55 loc) · 1.25 KB
/
earth.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
#pragma once
#include "gamemap.h"
#include "unit.h"
#include "building.h"
#include "inGameResource.h"
#include "fieldItem.h"
#include "ForagerPlayer.h"
class earth : public gamemap
{
private:
ForagerPlayer* _player; // Ç÷¹À̾î
private:
int _count;
int _frameCount;
int wavetick;
bool waveUp;
int firstDest;
int secondDest;
int thirdDest;
int fourthDest;
public:
HRESULT init();
void release();
void update();
void render(HDC hdc);
void mapSetup();
void setRandomObject();
float getResRatio();
int GetTileX(int index);
int GetTileY(int index);
void setIsland(int x, int y);
int GetIslandX(int index);
int GetIslandY(int index);
RECT GetIslandRc(int x, int y);
bool HasIsland(int x, int y);
void setLinkPlayer(ForagerPlayer *player) { _player = player; };
int GetIslandCount();
int GetTileIndex(POINT pt);
void SetGoddessWell(int x, int y);
void SetElfTree(int x, int y);
void SetTomb(int x, int y);
void SetMonster(int x, int y);
void SetEmpty(int x, int y);
void InitDest();
void SetDestiny(int x, int y);
void SetConquer(int x, int y);
public:
tile* tileMouseTarget();
int tileMouseTargetIndex();
int tileColMouseTargetIndex();
void setTileHasUnit(int index) {
_vTile[index].hasUnit = true;
_vTile[index].canPass = false;
};
};