-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbattle.hpp
45 lines (35 loc) · 819 Bytes
/
battle.hpp
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
#ifndef GWANKEI_BATTLE_HPP
#define GWANKEI_BATTLE_HPP
#include <QObject>
#include "ai.hpp"
#include "desk.hpp"
using namespace GwanKei;
enum BattleType {
BL_AI_2v2_NE,
BL_AI_2v2_DE,
LI_AI_1v1,
LI_AI_2v2_NE,
LI_AI_2v2_DE
};
class Battle : public QObject {
Q_OBJECT
private:
Player player;
public:
Desk *desk;
AI** ai;
Battle(Player player, AI** ai, bool is_1v1, MaskMode mask_mode);
~Battle();
void init_desk();
Player get_player() const;
QString get_player_name(Player player) const;
static Battle* Create(BattleType type);
signals:
void status_changed(Game game, Player current, int wait_sec);
void fail(Player player, FailReason reason);
void end(Ending ending);
public slots:
void ready(Layout layout);
void move(Cell from, Cell to);
};
#endif // GWANKEI_BATTLE_HPP