aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/sowgro/npehero/gameplay/NoteInfo.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/sowgro/npehero/gameplay/NoteInfo.java')
-rwxr-xr-xsrc/main/java/net/sowgro/npehero/gameplay/NoteInfo.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/java/net/sowgro/npehero/gameplay/NoteInfo.java b/src/main/java/net/sowgro/npehero/gameplay/NoteInfo.java
new file mode 100755
index 0000000..a34e939
--- /dev/null
+++ b/src/main/java/net/sowgro/npehero/gameplay/NoteInfo.java
@@ -0,0 +1,28 @@
+/*Name: Guitar Hero Project
+ *Description: Contains the info for when to send a note
+ */
+package net.sowgro.npehero.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;
+ }
+}