Skip to content

Commit

Permalink
Lobby done??
Browse files Browse the repository at this point in the history
  • Loading branch information
Something-Inconspicuous committed Dec 16, 2023
1 parent 59c1f3d commit 616916b
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 2 deletions.
61 changes: 60 additions & 1 deletion src/main/java/io/github/somethinginconspicuous/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,13 @@ private void choice0(ActionEvent e) {
enterToContinue();
lookAroundHospital();
break;

case LOBBY:
// [Go Back]
out("You head back down the hallway.");
spendTime(10);
enterToContinue();
hallway1();
default:
break;

Expand Down Expand Up @@ -404,6 +411,16 @@ private void choice1(ActionEvent e){
}
enterToContinue();
hallway1();
break;

case LOBBY:
// [Receptionist]
out("It appears that the receptions is sleeping.");
out("You question the diligence of the staff here.");
spendTime(5);
enterToContinue();
lobby();

default:
break;
}
Expand Down Expand Up @@ -435,14 +452,29 @@ private void choice2(ActionEvent e) {
break;

case HALLWAY1:
// [Right]
out("You walk down the hallway to your right.");
out("You are spat out into the lobby.");
spendTime(5);
enterToContinue();
// TODO: lobby choices
lobby();

break;

case LOBBY:
// [Staff Door]
if(!pc.hasItem(Keycard.getInstance())){
out("It's locked. Go figure.");
spendTime(5);
enterToContinue();
lobby();
} else {
out("You swipe the keycard, and the door slides open.");
spendTime(5);
enterToContinue();
staff();
}
break;
default:
break;
}
Expand All @@ -465,6 +497,11 @@ private void choice3(ActionEvent e) {
lookAroundHospital();
break;

case LOBBY:
// [Next Room]
out("You continue past the lobby.");
largeRoom();

default:
break;
}
Expand Down Expand Up @@ -560,5 +597,27 @@ private void hallway1(){
giveChoices(Location.HALLWAY1);
}

private void lobby(){
out("It's dark, but a faint red light from behind");
out("the receptionist booth allows for some visibility.");
out("The booth is behind a wall of glass.");
out("The smell of soy sauce is overpowered by something foul.");
pc.setLocation(Location.LOBBY);
giveChoices(Location.LOBBY);
}

private void largeRoom(){
out("The lobby opens to a large room dimly lit in red.");
pc.setLocation(Location.LARGE);
giveChoices(Location.LARGE);
}

private void staff(){
out("Upon closer inspection, the receptionist is not");
out("simply asleep, but rather dead.\nGo figure");
pc.setLocation(Location.STAFF);
giveChoices(Location.STAFF);
}

//#endregion
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ public enum Location {
HOSPITAL("[Go Back to Bed]", "[Observe Your Surroundings]", "", ""),
HOSPITAL_ITEMS("[Sandwich]", "[Figure]", "[Door]", "[Wall]"),
HALLWAY1("[Go Back]", "[Left]", "[Right]", ""),
LOBBY(),
LOBBY("[Go Back]", "[Receptionist]", "[Staff Door]", "[Next Room]"),
LARGE("[Go Back]", "[Store]", "[Quarters]", "[Emergancy Exit]"),
STAFF("[Go Back]", "[Investigate Receptionist]", "", ""),
;

private String[] choices;
Expand Down

0 comments on commit 616916b

Please sign in to comment.