-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSegment.h
51 lines (43 loc) · 964 Bytes
/
Segment.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
#pragma once
#include <QtGui>
#include <qapplication.h>
#include <qwidget.h>
#include <qpainter.h>
#include <QMouseEvent>
#include <qrect.h>
#include <qtimer.h>
#include <QTimerEvent>
#include <qdesktopwidget.h>
#include <QkeyEvent>
#include <qmessagebox.h>
#include <qfont.h>
#include <QCloseEvent>
#include <QResizeEvent>
#include <QLineEdit>
#include <QPropertyAnimation>
#include <QList>
#include <QPalette>
#include <QIcon>
#include <QPushButton>
enum MyEnum{CROSS,ZERO,VOIDs,CROSSWIN,ZEROWIN,CROSSLAST,ZEROLAST};
class Segment
{
static int MaxX;
static int MaxY;
static int MinXY;
static int ConstX;
static int SaveConstX;
static int SizeR;
static int Point; // очков для очка
static int PointWin; // очков для победы
static int PointP1;
static int PointP2;
static int TypeOfGame;
MyEnum value;
QRect Rect;
public:
Segment();
~Segment();
friend class MyWidget;
friend class MainWidget;
};