diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-06-02 01:31:49 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-06-02 01:31:49 -0400 |
commit | 0b7f45fcb05814870733613dcff233451948c967 (patch) | |
tree | a18044aa13d3374d39177332b57a822f32c60843 /src/main | |
parent | 4e43d6f020d908ccd9b8a6b77803cac943da00ed (diff) | |
download | NPEhero-0b7f45fcb05814870733613dcff233451948c967.tar.gz NPEhero-0b7f45fcb05814870733613dcff233451948c967.tar.bz2 NPEhero-0b7f45fcb05814870733613dcff233451948c967.zip |
start note editor, new test level
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/Difficulty.java | 4 | ||||
-rw-r--r-- | src/main/Level.java | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/main/Difficulty.java b/src/main/Difficulty.java index 18dabb3..c7a289a 100644 --- a/src/main/Difficulty.java +++ b/src/main/Difficulty.java @@ -19,14 +19,16 @@ public class Difficulty public File notes; public int bpm; public int numBeats; + public Level level; /** * Creates a new Difficulty and gives it a file path * @param newDir: The file path of the Difficulty */ - public Difficulty(File newDir) + public Difficulty(File newDir, Level level) { thisDir = newDir; + this.level = level; } /** diff --git a/src/main/Level.java b/src/main/Level.java index 591bd9a..cb16489 100644 --- a/src/main/Level.java +++ b/src/main/Level.java @@ -46,7 +46,7 @@ public class Level { if (cur.isDirectory()) //all subfolders within a level folder are difficulties { - Difficulty diff = new Difficulty(cur); + Difficulty diff = new Difficulty(cur,this); diff.readData(); diffList.add(diff); } @@ -151,7 +151,7 @@ public class Level } catch (IOException e) { e.printStackTrace(); } - Difficulty temp = new Difficulty(diffDir); + Difficulty temp = new Difficulty(diffDir,this); temp.title = text; temp.writeMetadata(); temp.writeLeaderboard(); |