-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuest.java
More file actions
99 lines (74 loc) · 2.9 KB
/
Quest.java
File metadata and controls
99 lines (74 loc) · 2.9 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
package com.apcs;
public class Quest {
private LifeSituation lifeSituation = new LifeSituation();
private Crew crew = new Crew();
private Shop shop = new Shop();
private Encounters encounters = new Encounters();
private MajorEncounters mEncounters = new MajorEncounters();
private int turnCounter = 0;
public LifeSituation getLifeSituation() {
return lifeSituation;
}
public void setLifeSituation(LifeSituation lifeSituation) {
this.lifeSituation = lifeSituation;
}
public Crew getCrew() {
return crew;
}
public void setCrew(Crew crew) {
this.crew = crew;
}
public Shop getShop() {
return shop;
}
public void setShop(Shop shop) {
this.shop = shop;
}
public Encounters getEncounters() {
return encounters;
}
public void setEncounters(Encounters encounters) {
this.encounters = encounters;
}
public int getTurnCounter() {
return turnCounter;
}
public void setTurnCounter(int turnCounter) {
this.turnCounter = turnCounter;
}
void welcomeScreen() {
System.out.println("\n" +
"░██████╗░██╗░░░██╗███████╗░██████╗████████╗\n" +
"██╔═══██╗██║░░░██║██╔════╝██╔════╝╚══██╔══╝\n" +
"██║██╗██║██║░░░██║█████╗░░╚█████╗░░░░██║░░░\n" +
"╚██████╔╝██║░░░██║██╔══╝░░░╚═══██╗░░░██║░░░\n" +
"░╚═██╔═╝░╚██████╔╝███████╗██████╔╝░░░██║░░░\n" +
"░░░╚═╝░░░░╚═════╝░╚══════╝╚═════╝░░░░╚═╝░░░\n");
System.out.println("A game by Richa Juvekar and Tanya Vasireddy.");
Utilities.pressEnterToContinue();
}
public void start() {
welcomeScreen();
lifeSituation.chooseLife();
crew.chooseCrew();
shop.shopDisplay(this);
Utilities.readyMessage();
while (turnCounter < 4) {
encounters.randomEncounter(this);
Utilities.pressEnterToContinue();
}
mEncounters.circeIsland();
shop.shopDisplay(this);
while (turnCounter < 7) {
encounters.randomEncounter(this);
Utilities.pressEnterToContinue();
}
mEncounters.monsterStraits(this);
while (turnCounter < 10) {
encounters.randomEncounter(this);
Utilities.pressEnterToContinue();
}
mEncounters.cyclopsIsland();
Utilities.scoreCalc(this);
}
}