-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStoryExecutor.java
More file actions
45 lines (43 loc) · 1.29 KB
/
StoryExecutor.java
File metadata and controls
45 lines (43 loc) · 1.29 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
import java.util.Scanner;
public class StoryExecutor
{
public static void main(String[] args)
{
int textIndex = 1;
HackingMinigame.setMinigame();
// HackingMinigame.start();
Scanner input = new Scanner(System.in);
// input.nextLine();
// StoryText.introduction();
while (true) {
switch (textIndex) {
case 1:
textIndex = StoryText.segment1();
break;
case 2:
textIndex = StoryText.segment2();
break;
case 3:
textIndex = StoryText.segment3();
break;
case 4:
textIndex = StoryText.segment4();
break;
case 5:
textIndex = StoryText.segment5();
break;
case 6:
textIndex = StoryText.segment6();
break;
case 7:
textIndex = StoryText.segment7();
break;
case 8:
textIndex = StoryText.segment8();
break;
case 0:
return;
}
}
}
}