Mercurial > hg > tweakathon2ios
annotate SequenceController.h @ 8:d59de9fd3496
Refactored messageController, ready for instroduction of other stages and tests.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Fri, 17 Oct 2014 16:35:22 +0100 |
parents | |
children | e25d2b1b185e |
rev | line source |
---|---|
rt300@8 | 1 // |
rt300@8 | 2 // SequenceController.h |
rt300@8 | 3 // riftathon |
rt300@8 | 4 // |
rt300@8 | 5 // Created by Robert Tubb on 17/10/2014. |
rt300@8 | 6 // |
rt300@8 | 7 // |
rt300@8 | 8 |
rt300@8 | 9 #ifndef __riftathon__SequenceController__ |
rt300@8 | 10 #define __riftathon__SequenceController__ |
rt300@8 | 11 |
rt300@8 | 12 #include <iostream> |
rt300@8 | 13 #include "presetManager.h" |
rt300@8 | 14 |
rt300@8 | 15 class Sequence{ |
rt300@8 | 16 int tempo; |
rt300@8 | 17 vector<Preset *> presetSequence; |
rt300@8 | 18 |
rt300@8 | 19 |
rt300@8 | 20 }; |
rt300@8 | 21 |
rt300@8 | 22 class SequenceControler{ |
rt300@8 | 23 |
rt300@8 | 24 SequenceControler(const vector<Preset>& presets); |
rt300@8 | 25 |
rt300@8 | 26 void makeSequences(); |
rt300@8 | 27 |
rt300@8 | 28 Sequence getNextSequence(); |
rt300@8 | 29 |
rt300@8 | 30 private: |
rt300@8 | 31 const vector<Preset>& thePresets; |
rt300@8 | 32 vector<Sequence> theSequences; |
rt300@8 | 33 }; |
rt300@8 | 34 |
rt300@8 | 35 #endif /* defined(__riftathon__SequenceController__) */ |