-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJets workc for POE on belindas computer P2 .txt
260 lines (195 loc) · 7.16 KB
/
Jets workc for POE on belindas computer P2 .txt
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
public partial class Form1 : Form
{
//initiallised globally
const string FIRE_DRAG_NAME = "Fire dragon ";
const int FIRE_DRAG_HP = 20;
const int FIRE_DRAG_ATK = 5;
const int FIRE_DRAG_SPATK = 12;
const int FIRE_DRAG_BLOCK = 4;
const string ICE_DRAG_NAME = "Ice dragon";
const int ICE_DRAG_HP = 30;
const int ICE_DRAG_ATK = 4;
const int ICE_DRAG_SPATK = 9;
const int ICE_DRAG_BLOCK = 5;
const string WIND_DRAG_NAME = "wind dragon";
const int WIND_DRAG_HP = 40;
const int WIND_DRAG_ATK = 3;
const int WIND_DRAG_SPATK = 7;
const int WIND_DRAG_BLOCK = 5;
const string EARTH_DRAG_NAME = "Earth dragon";
const int EARTH_DRAG_HP = 50;
const int EARTH_DRAG_ATK = 2;
const int EARTH_DRAG_SPATK = 5;
const int EARTH_DRAG_BLOCK = 6;
public Form1()
{
InitializeComponent();
}
private void label21_Click(object sender, EventArgs e)
{
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void label5_Click(object sender, EventArgs e)
{
}
private void groupBox1_Enter(object sender, EventArgs e)
{
}
private void groupBox5_Enter(object sender, EventArgs e)
{
}
private void Form1_Load_1(object sender, EventArgs e)
{
}
private void pictureBox5_Click(object sender, EventArgs e)
{
}
private void textBox4_TextChanged(object sender, EventArgs e)
{
}
private void label14_Click(object sender, EventArgs e)
{
}
private void label6_Click(object sender, EventArgs e)
{
}
private void label20_Click(object sender, EventArgs e)
{
}
private void button3_Click(object sender, EventArgs e)
{
//hiding Starting Screen
this.Hide();
//call out the Players Screen
Form2 f2 = new Form2();
//display the Players Screen
f2.ShowDialog();
//remove form 2
f2 = null;
//show Starting Screen again
this.Show();
}
private void SaveButton1_Click(object sender, EventArgs e)
{
// declarations
string[] P1data = { FIRE_DRAG_NAME, ICE_DRAG_NAME, WIND_DRAG_NAME, EARTH_DRAG_NAME };
int[] P1values = { FIRE_DRAG_HP, FIRE_DRAG_ATK, FIRE_DRAG_SPATK, FIRE_DRAG_BLOCK, ICE_DRAG_HP, ICE_DRAG_ATK,
ICE_DRAG_SPATK, ICE_DRAG_BLOCK, WIND_DRAG_HP, WIND_DRAG_ATK, WIND_DRAG_SPATK, WIND_DRAG_BLOCK ,
EARTH_DRAG_HP , EARTH_DRAG_ATK , EARTH_DRAG_SPATK ,EARTH_DRAG_BLOCK };
// loop to check which radio button is checked
if (radioButton1.Checked == true)
{
SaveFireValues(P1values, P1data);
//locks the group box after save button is pressed
groupBox3.Enabled = false;
}
else if (radioButton2.Checked == true)
{
SaveIceValues(P1values, P1data);
groupBox3.Enabled = false;
}
else if (radioButton3.Checked == true)
{
SaveWindValues(P1values, P1data);
groupBox3.Enabled = false;
}
else if (radioButton4.Checked == true)
{
SaveEarthValues(P1values, P1data);
groupBox3.Enabled = false;
}
// method for each type of draghon based off of raidobutton pressed
static void SaveFireValues(int[] P1values, string[] P1data)
{
P1data[0] = FIRE_DRAG_NAME;
P1values[0] = FIRE_DRAG_HP;
P1values[1] = FIRE_DRAG_ATK;
P1values[2] = FIRE_DRAG_SPATK;
P1values[3] = FIRE_DRAG_BLOCK;
}
static void SaveIceValues(int[] P1values, string[] P1data)
{
P1data[0] = ICE_DRAG_NAME;
P1values[0] = ICE_DRAG_HP;
P1values[1] = ICE_DRAG_ATK;
P1values[2] = ICE_DRAG_SPATK;
P1values[3] = ICE_DRAG_BLOCK;
}
static void SaveWindValues(int[] P1values, string[] P1data)
{
P1data[0] = WIND_DRAG_NAME;
P1values[0] = WIND_DRAG_HP;
P1values[1] = WIND_DRAG_ATK;
P1values[2] = WIND_DRAG_SPATK;
P1values[3] = WIND_DRAG_BLOCK;
}
static void SaveEarthValues(int[] P1values, string[] P1data)
{
P1data[0] = EARTH_DRAG_NAME;
P1values[0] = EARTH_DRAG_HP;
P1values[1] = EARTH_DRAG_ATK;
P1values[2] = EARTH_DRAG_SPATK;
P1values[3] = EARTH_DRAG_BLOCK;
}
}
private void button2_Click(object sender, EventArgs e)
{
string[] P2data = { FIRE_DRAG_NAME, ICE_DRAG_NAME, WIND_DRAG_NAME, EARTH_DRAG_NAME };
int[] P2values = { FIRE_DRAG_HP, FIRE_DRAG_ATK, FIRE_DRAG_SPATK, FIRE_DRAG_BLOCK, ICE_DRAG_HP, ICE_DRAG_ATK,
ICE_DRAG_SPATK, ICE_DRAG_BLOCK, WIND_DRAG_HP, WIND_DRAG_ATK, WIND_DRAG_SPATK, WIND_DRAG_BLOCK ,
EARTH_DRAG_HP , EARTH_DRAG_ATK , EARTH_DRAG_SPATK ,EARTH_DRAG_BLOCK };
if (radioButton5.Checked == true)
{
SaveFireValues(P2values, P2data);
groupBox4.Enabled = false;
}
else if (radioButton6.Checked == true)
{
SaveIceValues(P2values, P2data);
groupBox4.Enabled = false;
}
else if (radioButton7.Checked == true)
{
SaveWindValues(P2values, P2data);
groupBox4.Enabled = false;
}
else if (radioButton8.Checked == true)
{
SaveEarthValues(P2values, P2data);
groupBox4.Enabled = false;
}
static void SaveFireValues(int[] P2values, string[] P2data)
{
P2data[0] = FIRE_DRAG_NAME;
P2values[0] = FIRE_DRAG_HP;
P2values[1] = FIRE_DRAG_ATK;
P2values[2] = FIRE_DRAG_SPATK;
P2values[3] = FIRE_DRAG_BLOCK;
}
static void SaveIceValues(int[] P2values, string[] P2data)
{
P2data[0] = ICE_DRAG_NAME;
P2values[0] = ICE_DRAG_HP;
P2values[1] = ICE_DRAG_ATK;
P2values[2] = ICE_DRAG_SPATK;
P2values[3] = ICE_DRAG_BLOCK;
}
static void SaveWindValues(int[] P2values, string[] P2data)
{
P2data[0] = WIND_DRAG_NAME;
P2values[0] = WIND_DRAG_HP;
P2values[1] = WIND_DRAG_ATK;
P2values[2] = WIND_DRAG_SPATK;
P2values[3] = WIND_DRAG_BLOCK;
}
static void SaveEarthValues(int[] P2values, string[] P2data)
{
P2data[0] = EARTH_DRAG_NAME;
P2values[0] = EARTH_DRAG_HP;
P2values[1] = EARTH_DRAG_ATK;
P2values[2] = EARTH_DRAG_SPATK;
P2values[3] = EARTH_DRAG_BLOCK;
}
}