-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMajorEncounters.java
More file actions
50 lines (34 loc) · 1.94 KB
/
MajorEncounters.java
File metadata and controls
50 lines (34 loc) · 1.94 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
package com.apcs;
public class MajorEncounters {
QuestionBank qB = new QuestionBank();
//Crew crew = new Crew();
public void circeIsland() {
System.out.println("You've arrived to a mythological island, the home of the goddess-sorceress Circe. " +
"Circe stands before you, and poses you a question to pass.");
System.out.println("If you answer the question correctly, your crew can move on safely. If not, your quest is as good as over.");
Utilities.pressEnterToContinue();
qB.circeQuestions();
Utilities.pressEnterToContinue();
}
public void monsterStraits(Quest quest) {
if (quest.getCrew().getCount() == 0) {
System.out.println("Your entire crew has died! GAME OVER. ");
System.exit(0);
} else {
System.out.println("You've arrived to the straits of Charybdis and Scylla. This narrow passage of water gives your crew" +
" two options going forward.\nIf you go by the path of Scylla, you will lose two crew mates, but otherwise your crew will be" +
" safe. If you go by the path of Charybdis, you will have a good chance of your entire crew surviving, but your entire crew \n" +
" also has a chance to all die. ");
Utilities.pressEnterToContinue();
qB.straitsQuestion(quest);
Utilities.pressEnterToContinue();
}
}
public void cyclopsIsland() {
System.out.println("You've arrived to the final island, where you can retrieve the Golden Fleece. However, you find yourself fighting your final opponent: a Cyclops.");
System.out.println("If you answer the question correctly, your crew will be able to defeat the Cyclops and you can retrieve your prize. If not, your quest is as good as over.");
Utilities.pressEnterToContinue();
qB.finalQuestion();
Utilities.pressEnterToContinue();
}
}