Skip to content

Commit f7b7ee1

Browse files
committed
Added JavaDoc for Opened1Controller.java
1 parent d9bcd4a commit f7b7ee1

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/main/java/com/escapegame/Opened1Controller.java

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,24 @@
1010

1111
/**
1212
* Opened1 screen controller — wired to startgame.fxml
13+
* Handles basic navigation from the "opened1" / startgame screen:
14+
* quitting back to the main menu and moving to the matching screen.
1315
*/
1416
public class Opened1Controller implements Initializable {
1517

1618
@FXML private Button quitButton;
17-
19+
/**
20+
* Called by the FXMLLoader to initialize the controller.
21+
* @param location location used to resolve relative paths for the root object, or {@code null}
22+
* @param resources resources used to localize the root object, or {@code null}
23+
*/
1824
@FXML
1925
public void initialize(URL location, ResourceBundle resources) {
2026
System.out.println("Opened1Controller initialized");
2127
}
22-
28+
/**
29+
* Handler for the Quit button. Navigates to the main menu.
30+
*/
2331
@FXML
2432
private void onQuit() {
2533
System.out.println("Quit button clicked");
@@ -29,7 +37,9 @@ private void onQuit() {
2937
e.printStackTrace();
3038
}
3139
}
32-
40+
/**
41+
* Handler for the Door button. Navigates to the matching screen.
42+
*/
3343
@FXML
3444
private void onDoor() {
3545
System.out.println("Door button clicked");

0 commit comments

Comments
 (0)