aboutsummaryrefslogtreecommitdiff
path: root/src/gameplay/NoteInfo.java
diff options
context:
space:
mode:
authorAidan Ross <aross02@fairport.org>2023-05-25 10:27:55 -0400
committerAidan Ross <aross02@fairport.org>2023-05-25 10:27:55 -0400
commit414d5128c379916a50a015210e6d7caced1825f5 (patch)
treeec0db6e4c2dfa9067ea330b4bdbfeafda94f0851 /src/gameplay/NoteInfo.java
parent389520ddc5064c21dcb0e9317366078ce1c88b65 (diff)
parent1d0890cf11f88e274beddf9fbc132fb80c2f054c (diff)
downloadNPEhero-414d5128c379916a50a015210e6d7caced1825f5.tar.gz
NPEhero-414d5128c379916a50a015210e6d7caced1825f5.tar.bz2
NPEhero-414d5128c379916a50a015210e6d7caced1825f5.zip
Merge branch 'main' of https://gitlab.sowgro.net/guitarheros/guitarhero
Diffstat (limited to 'src/gameplay/NoteInfo.java')
-rw-r--r--src/gameplay/NoteInfo.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/gameplay/NoteInfo.java b/src/gameplay/NoteInfo.java
new file mode 100644
index 0000000..6428066
--- /dev/null
+++ b/src/gameplay/NoteInfo.java
@@ -0,0 +1,28 @@
+/*Name: Guitar Hero Project
+ *Description: Contains the info for when to send a note
+ */
+package gameplay;
+
+import javafx.scene.paint.Color;
+
+public class NoteInfo
+{
+ private double sendTime;
+ private Color col;
+
+ public NoteInfo(double t) {
+ sendTime = t;
+ }
+
+ public double getTime() {
+ return sendTime;
+ }
+
+ public Color getColor() {
+ return col;
+ }
+
+ public double compareTo(NoteInfo other) {
+ return sendTime - other.sendTime;
+ }
+}