-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproc.h
More file actions
91 lines (83 loc) · 2 KB
/
Copy pathproc.h
File metadata and controls
91 lines (83 loc) · 2 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#ifndef PROC_H
#define PROC_H
#include <fstream>
#include <QPushButton>
#include <QApplication>
#include <QLabel>
#include <QLineEdit>
#include <QMainWindow>
#include <iostream>
#include <QMessageBox>
struct mange
{
int xd,yd,xa,ya;
};
struct mov
{
int xd,yd,xa,ya;
};
typedef struct
{
bool bgRED;
QPushButton *btn;
}piasa;
struct pion
{
int x,y;
int tr=0;
};
class proc
{
public:
proc();
int pieceblanc(QPushButton*);
void permuter(QPushButton*,QPushButton*);
void eat(QPushButton*,QPushButton*,int,int,int,int);
void peutJouer(int,int);
int peutJouerfunc(int,int);
int possible(int ,int ,int ,int );
int cheminPlein(int ,int ,int ,int );
int pion2step(int,int);
void clearETOIL();
bool echecKingBlanc(int&,int&,int&,int&);
bool echecKingNoir(int&,int&,int&,int&);
bool echecKingBlancap(int,int,int&,int&);
bool echecKingNoirap(int,int,int&,int&);
int runKing(int,int);
bool partienull();
void inctr();
int annulEcheck(int,int);
int annulEcheckA(int,int,int,int);
int echecTotal(int,int,int,int);
int finPartie(int);
bool echecKingBalncApresMove(int,int,int,int);
bool echecKingNoirApresMove(int,int,int,int);
int noteataftermove(int,int,int,int);
int eatadverseaftermove2(int,int,int,int);
int protectqueenaftermove(int,int,int,int);
int makekingincheck(int,int,int,int);
void save();
void load();
bool tourRB=false;
bool tourRN=false;
bool tourLB=false;
bool tourLN=false;
bool rockB=false;
bool rockN=false;
bool kingB=false;
bool kingN=false;
protected:
piasa tpiece[8][8];
int t[8][8];
pion tp[16];
int n=0;
int cp=0,tur=0,mek=0,ak=0,k=0,xs,ys;
bool Pmange,peps=false,rlb=false,rln=false,rrb=false,rrn=false,ap2s=false,maxpb=false,maxpn=false;
int xd,yd,xa,ya;
QPushButton *butt,*but2,*but;
QPushButton *buut1,*buut2,*buut3,*buut4,*buut5,*buut6,*buut7,*buut8;
int cp2,L,i,j;
int xk,yk;
int mode;
};
#endif // PROC_H