Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 4DGL SDFileSystem mbed-rtos mbed
Fork of drums by
Diff: Note/note.h
- Revision:
- 3:54d4226a7d5e
diff -r 5daa4d35a676 -r 54d4226a7d5e Note/note.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Note/note.h Sun Apr 30 00:55:41 2017 +0000
@@ -0,0 +1,44 @@
+#ifndef NOTE_H__
+#define NOTE_H__
+
+#define MIN_Y 130
+#define MAX_Y 430
+
+class Note {
+ public:
+
+ // Type of the note (1,2,3) - (left, center, right)
+ int type;
+
+ // Position accros the fret
+ float x,y;
+
+ // Sizes of the displayed note
+ float w,h;
+
+ // Speed of the the note
+ int speed;
+
+ // Color of the note
+ int color;
+
+ // Flag showing if the note is already consumed
+ int consumed;
+
+ // Constructor of the note, no args
+ Note();
+
+ // Constructor of the note, initiate with type
+ Note(int t);
+
+ // Destructor for the note
+ ~Note();
+
+ // Update the position of the note based on its speed
+ void updatePosition();
+
+ // Draw the note with its current stats on the screen
+ void drawNote();
+
+};
+#endif
\ No newline at end of file
