Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/main/java/event/Event01.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,19 @@

import main.GameManager;

/**
* Handles the interactions for specific scenes and objects in the game.
* This class includes events related to Jeremiah and a flashlight.
*/
public class Event01 {

GameManager gm;

/**
* Constructor for Event01
*
* @param gm The GameManager instance controlling the game and UI.
*/
public Event01(GameManager gm) {
this.gm = gm;
}
Expand All @@ -21,6 +30,7 @@ public void talkJeramiah() {
gm.ui.messageText.setText("Did you hear that noise outside son?");
gm.playSE(gm.engineNoise);
}

public void restJeramiah() {

if(gm.player.playerLife != gm.player.playerMaxLife) {
Expand Down