aboutsummaryrefslogtreecommitdiff
path: root/src/fallTest/NoteInfo.java
diff options
context:
space:
mode:
authorAidan Ross <aross02@fairport.org>2023-05-24 17:02:47 -0400
committerAidan Ross <aross02@fairport.org>2023-05-24 17:02:47 -0400
commitcc6ed32bb9da1319834d06d78cee7a8c4050334e (patch)
tree4da7daa578e7bd8e3a0b44bbb3698c54cdbb97b2 /src/fallTest/NoteInfo.java
parent7bec9556788656ab643d5621d0598c258a54e2ef (diff)
downloadNPEhero-cc6ed32bb9da1319834d06d78cee7a8c4050334e.tar.gz
NPEhero-cc6ed32bb9da1319834d06d78cee7a8c4050334e.tar.bz2
NPEhero-cc6ed32bb9da1319834d06d78cee7a8c4050334e.zip
Instead of timestamps, notes are now sent in by beats, which are based off of the song's bpm.
Diffstat (limited to 'src/fallTest/NoteInfo.java')
-rw-r--r--src/fallTest/NoteInfo.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fallTest/NoteInfo.java b/src/fallTest/NoteInfo.java
index 8ab822c..6a9c759 100644
--- a/src/fallTest/NoteInfo.java
+++ b/src/fallTest/NoteInfo.java
@@ -7,14 +7,14 @@ import javafx.scene.paint.Color;
public class NoteInfo
{
- private int sendTime;
+ private double sendTime;
private Color col;
- public NoteInfo(int t) {
+ public NoteInfo(double t) {
sendTime = t;
}
- public int getTime() {
+ public double getTime() {
return sendTime;
}
@@ -22,7 +22,7 @@ public class NoteInfo
return col;
}
- public int compareTo(NoteInfo other) {
+ public double compareTo(NoteInfo other) {
return sendTime - other.sendTime;
}
}