-
Notifications
You must be signed in to change notification settings - Fork 0
/
GameElements.cs
145 lines (121 loc) · 4.3 KB
/
GameElements.cs
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
using System.Drawing;
namespace PoolPgiaGame
{
public class GameElements
{
private static readonly Color[] sr_GameColors =
{
Color.Fuchsia,
Color.Red,
Color.Lime,
Color.Aqua,
Color.Blue,
Color.Yellow,
Color.Maroon,
Color.White
};
private static readonly int sr_InitialComputerSelectionButtonTop = 10;
private static readonly int sr_InitialButtonLeftLocation = 10;
private static readonly int sr_Delta = 5;
private static readonly short sr_ButtonWidht = 40;
private static readonly short sr_ButtonHeight = 40;
private static readonly int sr_InitilaTop = sr_ButtonHeight * 2;
private static readonly short sr_NumberOfButtonsInRow = 4;
private static readonly int sr_RnadomPasswordLength = 4;
private static readonly int sr_FeedBackButtonWidth = 40;
private static readonly int sr_FeedBackButtonHeight = 20;
private static readonly int sr_ResultButtonWidth = 15;
private static readonly int sr_ResultButtonHeight = 15;
private static readonly int sr_ResultButtonRowsNumber = 2;
private static readonly int sr_ResultButtonColumnNumber = 2;
private static readonly int sr_MaxChansesNumber = 10;
private static readonly int sr_MinChansesNumber = 4;
private static readonly int sr_ResultButtonInitialLeftPosition = InitialButtonLeftLocation +
(sr_NumberOfButtonsInRow * ButtonWidht) +
(sr_NumberOfButtonsInRow * Delta) + sr_FeedBackButtonWidth + (Delta * 2);
private static readonly int sr_FeedBackButtonInitialleftLocation = InitialButtonLeftLocation +
(sr_NumberOfButtonsInRow * (ButtonWidht + Delta));
private static readonly int sr_FeedBackButtonInitialtopLocation = sr_InitilaTop +
ButtonHeight - sr_FeedBackButtonHeight - (Delta * 2);
public static int InitialComputerSelectionButtonTop
{
get { return sr_InitialComputerSelectionButtonTop; }
}
public static Color[] GameColors
{
get { return sr_GameColors; }
}
public static int InitialButtonLeftLocation
{
get { return sr_InitialButtonLeftLocation; }
}
public static int Delta
{
get { return sr_Delta; }
}
public static short ButtonWidht
{
get { return sr_ButtonWidht; }
}
public static short ButtonHeight
{
get { return sr_ButtonHeight; }
}
public static int InitilaTop
{
get { return sr_InitilaTop; }
}
public static short NumberOfButtonsInRow
{
get { return sr_NumberOfButtonsInRow; }
}
public static int RnadomPasswordLength
{
get { return sr_RnadomPasswordLength; }
}
public static int FeedBackButtonWidth
{
get { return sr_FeedBackButtonWidth; }
}
public static int FeedBackButtonHeight
{
get { return sr_FeedBackButtonHeight; }
}
public static int ResultButtonWidth
{
get { return sr_ResultButtonWidth; }
}
public static int ResultButtonHeight
{
get { return sr_ResultButtonHeight; }
}
public static int ResultButtonRowsNumber
{
get { return sr_ResultButtonRowsNumber; }
}
public static int ResultButtonColumnNumber
{
get { return sr_ResultButtonColumnNumber; }
}
public static int MaxChansesNumber
{
get { return sr_MaxChansesNumber; }
}
public static int MinChansesNumber
{
get { return sr_MinChansesNumber; }
}
public static int ResultButtonInitialLeftPosition
{
get { return sr_ResultButtonInitialLeftPosition; }
}
public static int FeedBackButtonInitialleftLocation
{
get { return sr_FeedBackButtonInitialleftLocation; }
}
public static int FeedBackButtonInitialtopLocation
{
get { return sr_FeedBackButtonInitialtopLocation; }
}
}
}