aboutsummaryrefslogtreecommitdiff
path: root/src/gameplay/Score.java
diff options
context:
space:
mode:
authorAidan Ross <aross02@fairport.org>2023-05-28 21:05:30 -0400
committerAidan Ross <aross02@fairport.org>2023-05-28 21:05:30 -0400
commit92f0e69cc938a058805e41780cb8a1bc7e6abda1 (patch)
tree1efe8b46e4db7d4bc9a4d112f310ffe3f0d79768 /src/gameplay/Score.java
parent9d07f0eb68e7779e8868b18a51bee5f8eb23b31e (diff)
downloadNPEhero-92f0e69cc938a058805e41780cb8a1bc7e6abda1.tar.gz
NPEhero-92f0e69cc938a058805e41780cb8a1bc7e6abda1.tar.bz2
NPEhero-92f0e69cc938a058805e41780cb8a1bc7e6abda1.zip
Removed unnecesary files in the gameplay class, as well as merged gameplay.score with main.scoreController such that score and combo are now displayed properly on the screen
Diffstat (limited to 'src/gameplay/Score.java')
-rw-r--r--src/gameplay/Score.java52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/gameplay/Score.java b/src/gameplay/Score.java
deleted file mode 100644
index fa8ddfe..0000000
--- a/src/gameplay/Score.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*Name: Guitar Hero Project
- *Description: Handles all the scoring for playing songs
- */
-package gameplay;
-
-import javafx.beans.property.IntegerProperty;
-
-public class Score
-{
- private int combo=0;
- private int comboMultiplier=1;
- private int score=0;
-
- public void perfect() {
- score += 300*comboMultiplier;
- System.out.println("Perfect!");
- }
-
- public void good() {
- score += 100*comboMultiplier;
- System.out.println("Good");
- }
-
- public void miss() {
- combo = 0;
- comboMultiplier = 1;
- System.out.println("Miss");
- }
- public void combo() {
- combo++;
-
- if (combo == 2) {
- comboMultiplier = 2;
- }
-
- if (combo == 4) {
- comboMultiplier = 4;
- }
-
- if (combo == 8) {
- comboMultiplier = 8;
- }
- }
-
- public int getScore() {
- return score;
- }
-
- public int getCombo() {
- return combo;
- }
-}