From 4e47b24597d41eb536acf123182228dd5af6e7b9 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Sun, 16 Oct 2011 13:22:26 -0400 Subject: [PATCH] New branch: [backwards] Goal: implement a proper backwards mod to allow for both actions on games where backwards != mirror. --- src/NoteDataUtil.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/NoteDataUtil.h b/src/NoteDataUtil.h index 167d2955f7..3aef94ca1a 100644 --- a/src/NoteDataUtil.h +++ b/src/NoteDataUtil.h @@ -111,7 +111,20 @@ namespace NoteDataUtil void RemoveStretch( NoteData &inout, StepsType st, int iStartIndex = 0, int iEndIndex = MAX_NOTE_ROW ); void RemoveAllButOneTap( NoteData &inout, int row ); void RemoveAllButPlayer( NoteData &inout, PlayerNumber pn ); - enum TrackMapping { left, right, mirror, shuffle, soft_shuffle, super_shuffle, stomp, NUM_TRACK_MAPPINGS }; + /** @brief The types of transformations available for the NoteData. */ + enum TrackMapping + { + left, /**< The NoteData is arranged as if the player was facing to the left. */ + right, /**< The NoteData is arranged as if the player was facing to the right. */ + mirror, /**< The NoteData is arranged as if facing a straight mirror. */ + backwards, /**< The NoteData is arranged as if the player was facing backwards. + This is NOT always the same as mirror. */ + shuffle, + soft_shuffle, + super_shuffle, + stomp, + NUM_TRACK_MAPPINGS + }; void Turn( NoteData &inout, StepsType st, TrackMapping tt, int iStartIndex = 0, int iEndIndex = MAX_NOTE_ROW ); void Little( NoteData &inout, int iStartIndex = 0, int iEndIndex = MAX_NOTE_ROW ); void Wide( NoteData &inout, int iStartIndex = 0, int iEndIndex = MAX_NOTE_ROW );