From f89d776c40eb49992b5d65ed8cfa111328e75208 Mon Sep 17 00:00:00 2001 From: sowgro Date: Thu, 25 May 2023 08:34:18 -0400 Subject: rename gameplay package --- src/gameplay/NoteInfo.java | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/gameplay/NoteInfo.java (limited to 'src/gameplay/NoteInfo.java') 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; + } +} -- cgit v1.2.3