-
Notifications
You must be signed in to change notification settings - Fork 20
/
LocationData.java
86 lines (65 loc) · 3.68 KB
/
LocationData.java
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
public class LocationData {
// Locations
public static Location studentCenter = new Location("Student Center",
"You are at the Student Center. Here is the scene of the crime and Glenda the girl scout's usual cookie stall location.");
public static Location langdaleHall = new Location("Langdale Hall",
"You are at Langdale Hall, also known as the Language Building.");
public static Location admissionsOffice = new Location("Admissions Office",
"You are at the Admissions Office. Steve Sminkle regularly lounges around the Admissions Office seemingly always... looking for something");
// sublocations
// General Sublocation - these can exist in any location
public static Location vendingMachine = new Location("Vending Machine",
"You can see all sorts of yummy treats and even your favorite kind of chips");
// Student Center
public static Location cafeteria = new Location("Cafeteria",
"You see a bunch of tables, some places to purchase breakfast, and a set of stairs that go" +
" off to where the Disciplinary Board Member is standing angrily.");
public static Location cookieStall = new Location("Cookie Stall",
"You see many boxes of all sorts of baked goods. Glenda sees you looking at her" +
" products and she smiles proudly.");
public static Location pantherStatue = new Location("The Panther Statue",
"The panther has profanity scrawled all over it in bright red marker.");
// Langdale Hall
public static Location insideLangdale = new Location("Inside Langdale Hall",
"When you first walk in and step up the stairs, you enter a small elevator lobby with a couple " +
"of chairs, a vending machine and a student fidgeting with a coffee machine. His nametag states \"Xavier\"");
public static Location downStairs = new Location("Downstairs in Langdale",
"You find the Janitor's closet and conveniently the Janitor. She demands you exclusively call her by the title");
// Admissions Office
public static Location office = new Location("Admissions Office",
"You see where people should be working but strangely there's no one here");
public static Location hallway = new Location("Admissions Office Hallway",
"There appears to be a small lounge area with an appropriately small fridge. " +
"There is also a wall safe containing the CCTV servers");
public static boolean loadLocationData() {
office.addPerson(CharacterData.steveSminkle);
insideLangdale.addPerson(CharacterData.xavier);
cookieStall.addPerson(CharacterData.glenda);
downStairs.addPerson(CharacterData.janitor);
hallway.addPerson(CharacterData.vault);
// student center
studentCenter.addNeighbor("further west", admissionsOffice);
studentCenter.addNeighbor("west", cookieStall);
cookieStall.addNeighbor("back", studentCenter);
studentCenter.addNeighbor("inside", cafeteria);
cafeteria.addNeighbor("outside", studentCenter);
studentCenter.addNeighbor("south", pantherStatue);
pantherStatue.addNeighbor("back", studentCenter);
// langdale hall
langdaleHall.addNeighbor("further east", admissionsOffice);
langdaleHall.addNeighbor("inside", insideLangdale);
insideLangdale.addNeighbor("outside", langdaleHall);
insideLangdale.addNeighbor("right", vendingMachine);
vendingMachine.addNeighbor("back", langdaleHall);
insideLangdale.addNeighbor("downstairs", downStairs);
downStairs.addNeighbor("upstairs", insideLangdale);
// admissions office
admissionsOffice.addNeighbor("further east", studentCenter);
admissionsOffice.addNeighbor("further west", langdaleHall);
admissionsOffice.addNeighbor("inside", office);
office.addNeighbor("outside", admissionsOffice);
office.addNeighbor("left", hallway);
hallway.addNeighbor("right", office);
return true;
}
}