|
From: Tapio V. <aa...@us...> - 2009-11-11 13:54:43
|
Module: performous
Branch: dance
Commit: 52595438db1563402d2b2b1fdd3fbda0f893118c
Author: Tapio Vierros <tap...@gm...>
Date: Wed Nov 11 15:51:39 2009 +0200
Added some dummy types for dance tracks.
---
game/notes.hh | 17 +++++++++++++++++
game/song.hh | 1 +
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/game/notes.hh b/game/notes.hh
index e5caf5a..a623e5f 100644
--- a/game/notes.hh
+++ b/game/notes.hh
@@ -96,3 +96,20 @@ struct Note {
typedef std::vector<Note> Notes;
+
+
+struct DanceTrack {
+ //TODO
+};
+
+enum DanceDifficulty {
+ BEGINNER,
+ EASY,
+ MEDIUM,
+ HARD,
+ CHALLENGE,
+ DIFFICULTYCOUNT
+};
+
+typedef std::map<DanceDifficulty, DanceTrack> DanceDifficultyMap;
+typedef std::map<std::string, DanceDifficultyMap> DanceTracks;
diff --git a/game/song.hh b/game/song.hh
index d74e483..a35103d 100644
--- a/game/song.hh
+++ b/game/song.hh
@@ -40,6 +40,7 @@ class Song: boost::noncopyable {
int randomIdx; ///< sorting index used for random order
Notes notes; ///< notes for song (only used for singing)
TrackMap track_map; ///< guitar etc. notes for this song
+ DanceTracks danceTracks; ///< dance tracks
// TODO: TEMPORARY TO ALLOW COMPILING
std::vector<std::map<int, Note> > d_notes; ///< dance notes
// ^
|