-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSchool.java
More file actions
462 lines (311 loc) · 12.7 KB
/
School.java
File metadata and controls
462 lines (311 loc) · 12.7 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
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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class School{
public static void loopSchool(GUI g){
Player p = g.getPlayer();
int code = p.getCode2();
if(p.getCode1()==3){
if (code==0){
school0(g);
}
if (code==1){
school1(g);
}
else if (code==2){
school2(g);
}
else if (code==3){
school3(g);
}
else if (code==4){
school4(g);
}
else if(code==5){
school5(g);
}
else if (code==6){
school6(g);
}
else if (code==7){
school7(g);
}
else if (code==8){
school8(g);
}
else if (code==9){
school9(g);
}
else if (code==10){
school10(g);
}
else if (code==11){
school11(g);
}
else if (code==12){
school12(g);
}
else if (code==13){
school13(g);
}
else if (code==14){
school14(g);
}
else if (code==15){
school15(g);
}
else if (code==16){
school16(g);
}
else if (code==17){
school17(g);
}
else if (code==18){
school18(g);
}
else if (code==19){
school19(g);
}
else if (code==20){
school20(g);
}
else if (code==21){
school21(g);
}
}
}
public static void findNextSchool(GUI g){
Player p = g.getPlayer();
int c = p.getCode2();
int op = p.getOp();
if((c == 100)){
}
else {
g.getPlayer().setLCode1(g.getPlayer().getCode1());
g.getPlayer().setLCode2(g.getPlayer().getCode2());
if(c==11){
if(op==1){
p.addBpt(1);
}
p.setCode2(0);
}
else if (c==0){
if(op==1){
p.setCode2(1);
}
else{
p.setCode2(2);
}
}
else if((c ==2)||(c==1)){
p.setCode2(3);
}
else if((c ==3)){
if(op==1){
p.setCode2(4);
}
else{
p.setCode2(5);
}
}
else if (c==4){
if(op==1){
p.setCode2(6);
}
else{
p.setCode2(10);
p.addBpt(-3);
}
}
else if (c==5){
p.setCode2(10);
}
else if (c==6){
if(op==1){
p.setCode2(8);
}
else{
p.setCode2(7);
}
}
else if((c==7)||(c==8)){
p.setCode2(9);
}
else if(c==9){
p.setCode2(10);
}
else if(c==10){
p.setCode2(12);
}
else if(c==12){
if(op==1){
p.setCode2(13);
}
else{
p.setCode2(14);
}
}
else if((c==13)||(c==14)){
if(op==1){
p.addMpt(3);
}
p.setCode2(15);
}
else if(c==15){
if(op==2){
p.addMpt(1);
}
p.setCode2(16);
}
else if(c==16){
if(op==1){
p.addMpt(5);
p.setCode2(21);
}
else{
p.setCode2(17);
}
}
else if(c==17){
if(op==1){
p.setCode2(21);
}
else{
p.setCode2(18);
}
}
else if(c==18){
if(op==1){
p.setCode2(21);
}
else{
p.setCode2(19);
}
}
else if(c==19){
if(op==1){
p.setCode2(21);
}
else{
p.setCode2(20);
}
}
else if(c==20){
p.setCode2(21);
}
else if(c==21){
Dorm.dorm0(g);
}
loopSchool(g);
}
}
public static void school11(GUI g){
Branch school11 = new Branch(3,11, "politely", "angrily", "school11.PNG", "Once you arrive to school you make it to your first class: Dance class. There you see a couple of people: Blair and Nicholas. How do you introduce yourself?");
g.convert(school11);
}
public static void school0(GUI g){
Branch school0 = new Branch(3,0, "Sit Out", "Dance with Blair", "school0.PNG", "Now that introductions are over, it is time for the class to start. What do you do?");
g.convert(school0);
}
public static void school1(GUI g){
Branch school1 = new Branch(3, 1, "that was nice", "cats are the best", "school1.PNG", "You sit content on the side of the room, watching cat videos. What do you think of the experience?");
g.convert(school1);
}
public static void school2(GUI g){
Branch school2 = new Branch(3, 2, "you are glad you danced with Blair", "you wish you never danced with Blair", "school2.PNG", "You finished dancing with Blair! How do you feel?");
g.getPlayer().addBpt(5);
g.convert(school2);
}
public static void school3(GUI g){
Branch school3 = new Branch(3, 3, "Compliment her hair", "Ask her about crowns", "school3.PNG", "After the dance ends, Blair approaches you to talk. What do you do?");
g.convert(school3);
}
public static void school4(GUI g){
Branch school4 = new Branch(3, 4, "accept", "refuse", "school4.PNG", "Blair appreciates your compliment and requests you come get cupcakes with her. What do you do?");
g.getPlayer().addBpt(5);
g.convert(school4);
}
public static void school5(GUI g){
Branch school5 = new Branch(3, 5, "awkwardly leave", "say \"haha cool...\" and wait for her to exit the situation", "school5.PNG", "Blair seems slightly off-put by your question and simply responds saying \"ummmm I don't know anything about crowns......\". What do you do?");
g.getPlayer().addBpt(-1);
g.getPlayer().addMpt(1);
g.convert(school5);
}
public static void school6(GUI g){
Branch school6 = new Branch(3, 6, "Ask her about Nicholas", "Ask her about her family", "school6.PNG", "Once you have gotten your cupcakes with Blair, you have another chance to talk to her. What do you do?");
g.getPlayer().addBpt(5);
g.convert(school6);
}
public static void school7(GUI g){
Branch school7 = new Branch(3,7, "\"oh wow I love wolves\"", "\"that's weird...\"", "school7.PNG", "Blair tells you about how, though she doesn't know her biological parents, she was raised by a pack of wolves in a nearby forest. What do you say in response?");
g.getPlayer().addBpt(1);
g.convert(school7);
}
public static void school8(GUI g){
Branch school8 = new Branch(3,8, "Wow he is so cool.", "He seems overrated", "school8.PNG", "Blair tells you about how Nicholas is a cool prince who is the son of the headmaster at the school. What are your thoughts on Nicholas?");
g.getPlayer().addBpt(3);
g.convert(school8);
}
public static void school9(GUI g){
Branch school9 = new Branch(3,9, "sigh and smile, knowing you are now free of her presence", "sit in silence for 45 seconds", "school9.PNG", "After chatting with you for a while longer, Blair heads out to go to her dorm. What do you do?");
g.convert(school9);
}
public static void school10(GUI g){
Branch school10 = new Branch(3,10, "your dorms", "the cafeteria", "school10.PNG", "You decide to start walking around the school for a bit. Where do you go?");
g.convert(school10);
}
public static void school12(GUI g){
Branch school12 = new Branch(3,12, "go to Dame Devin", "ignore Dame Devin", "school12.PNG", "Suddenly as you are walking down the hall you see Dame Devin. She motions you to come over. What do you do?");
g.convert(school12);
}
public static void school13(GUI g){
Branch school13 = new Branch(3,13, "\"It's good to see you!\"", "\"Why are you here?\"", "school13.PNG", "After you walk over to Dame Devin, she pulls you into a secret alleyway where you are alone. What do you say to her?");
g.getPlayer().addMpt(10);
g.convert(school13);
}
public static void school14(GUI g){
Branch school14 = new Branch(3,14, "\"It's good to see you!\"", "\"Why are you here?\"", "school14.PNG", "Though you try to stay away from Dame Devin, she manages to pull you into a secret alleyway where you are alone. What do you say to her?");
g.getPlayer().addMpt(-5);
g.convert(school14);
}
public static void school15(GUI g){
Branch school15 = new Branch(3,15, "appear disinterested", "look intrigued", "school15.PNG", "Ignoring what you said, Dame Devin jumps into explanation. She tells you that she is here to tell you about her new plan. What do you do?");
g.convert(school15);
}
public static void school16(GUI g){
Branch school16 = new Branch(3,16, "agree immediately", "refuse to do this", "school16.PNG", "Dame Devin tells you that she plans to create a fake fire at the school tomorrow, and that while everyone is gone to find safety, you should hide a necklace in Blair's dorm. This would frame Blair to have stolen the jewelry.");
g.convert(school16);
}
public static void school17(GUI g){
Branch school17 = new Branch(3,17, "accept", "refuse", "school17.PNG", "Though you initially refused, Dame Devin now bribes you to do this with $500. What do you do?");
g.getPlayer().addMpt(2);
g.convert(school17);
}
public static void school18(GUI g){
Branch school18 = new Branch(3,18, "accept", "refuse", "school18.PNG", "While now slightly annoyed, Dame Devin raises her bribe to $1000");
g.getPlayer().addMpt(1);
g.convert(school18);
}
public static void school19(GUI g){
Branch school19 = new Branch(3,19, "accept", "refuse", "school19.PNG", "Now visibly angry, Dame Devin offers $2000");
g.convert(school19);
}
public static void school20(GUI g){
Branch school20 = new Branch(3,20, "accept", "accept", "school20.PNG", "This seems to have been Dame Devin's snapping point as she now threatens you, pressuring you to accept");
g.getPlayer().addMpt(-1);
g.convert(school20);
}
public static void school21(GUI g){
Branch school21 = new Branch(3, 21, "content", "confused", "school21.PNG", "Dame Devin joyfully sends you off, telling you to meet her right after you hide the necklace. With your new task, you set off to your dorm to settle in and prepare for tomorrow. How do you feel?");
g.convert(school21);
}
public static void lost(GUI g){
Branch lost = new Branch(35,100,"restart section", "go to last option", "cod.PNG", "you lose.");
g.convert(lost);
}
public static void win(GUI g){
Branch win = new Branch(0,0,"YEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "SO PROUD", "morgannn.jpg", "WINNER");
g.convert(win);
}
}