-
Notifications
You must be signed in to change notification settings - Fork 0
/
hearthstone.h
54 lines (45 loc) · 1016 Bytes
/
hearthstone.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
#pragma once
#include <QtWidgets/QWidget>
#include<QPushButton>
class fightspace;
class handcard;
class ability;
class hero;
class minionlib;
class spelllib;
class spellptrlib;
class power;
class cardlib;
class hearthstone : public QWidget
{
Q_OBJECT
public:
hearthstone(QWidget *parent = nullptr);
~hearthstone();
public:
void enenmyact();//敌方行动
handcard* hand;
private:
fightspace* space;
cardlib* lib;
power* pow;
QPushButton* turnbutton;
QPushButton* optionbutton;
int w;
int h;
bool myturn;//是否是我的回合
int turns;//第几回合
public:
QPoint start;
QPoint end;
bool isdrawing;
void start_battle();
public slots:
void oncardpostohearthstone(QPoint p, bool start) {};//接收到坐标
public slots:
void switchturn();//点击回合结束按钮后
void openoption();//点击设置按钮后
void onsend2main(QPoint p, bool start);
protected:
void paintEvent(QPaintEvent* event);
};