-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain.java
More file actions
69 lines (47 loc) · 1.68 KB
/
Main.java
File metadata and controls
69 lines (47 loc) · 1.68 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
import javax.swing.SwingUtilities;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
public class Main {
public static void main(String [] args) {
{
SwingUtilities.invokeLater(() -> {
Ui Ui = new Ui();
Navigation.currentLocation = 0;
JFrame visualFrame = Ui.visuals();
//JFrame buttonFrame = Ui.createButtonFrame();
});
//Print player inventory
Inventory.printInventory();
//Print player updated inventory
//System.out.println("Inventory:" + "Inventory");
//Navigation Class
Navigation navigation = new Navigation();
// String leftOption = navigation.goLeft(navigation.currentLocation);
// String rightOption = navigation.goRight(navigation.currentLocation);
//Print navigation path
// System.out.println("Left Path:" + leftOption);
// System.out.println("Right Path:" + rightOption);
//Location Class
Location planeCrashSite = new Location();
Location jungle = new Location();
Location cave = new Location();
Location village = new Location();
Location river = new Location();
Location beach = new Location();
//navigation&exits
planeCrashSite.setExit(0, jungle);
jungle.setExit(0, cave);
jungle.setExit(1, village);
cave.setExit(0, jungle);
village.setExit(0,jungle);
river.setExit(0, beach);
//Ending Class
Ending end = new Ending();
}
}
}