Polytech Tours - Projet C++ embarqué sur cible mbed
MatchColors.h@0:21e183c9ef81, 2016-04-24 (annotated)
- Committer:
- LecomteDelys
- Date:
- Sun Apr 24 15:43:51 2016 +0000
- Revision:
- 0:21e183c9ef81
Programme final
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
LecomteDelys | 0:21e183c9ef81 | 1 | #ifndef MATCHCOLORS_H |
LecomteDelys | 0:21e183c9ef81 | 2 | #define MATCHCOLORS_H |
LecomteDelys | 0:21e183c9ef81 | 3 | |
LecomteDelys | 0:21e183c9ef81 | 4 | #ifndef COLOR_H |
LecomteDelys | 0:21e183c9ef81 | 5 | #define COLOR_H |
LecomteDelys | 0:21e183c9ef81 | 6 | #include "Color.h" |
LecomteDelys | 0:21e183c9ef81 | 7 | #endif |
LecomteDelys | 0:21e183c9ef81 | 8 | |
LecomteDelys | 0:21e183c9ef81 | 9 | #include <iostream> |
LecomteDelys | 0:21e183c9ef81 | 10 | #include "GroveColourSensor.hpp" |
LecomteDelys | 0:21e183c9ef81 | 11 | #include "HL1606Stripe.h" |
LecomteDelys | 0:21e183c9ef81 | 12 | #include "ConfigFile.hpp" |
LecomteDelys | 0:21e183c9ef81 | 13 | #include "ColorManager.h" |
LecomteDelys | 0:21e183c9ef81 | 14 | |
LecomteDelys | 0:21e183c9ef81 | 15 | class MatchColors |
LecomteDelys | 0:21e183c9ef81 | 16 | { |
LecomteDelys | 0:21e183c9ef81 | 17 | |
LecomteDelys | 0:21e183c9ef81 | 18 | public : |
LecomteDelys | 0:21e183c9ef81 | 19 | /*Constructeur*/ |
LecomteDelys | 0:21e183c9ef81 | 20 | MatchColors(); |
LecomteDelys | 0:21e183c9ef81 | 21 | |
LecomteDelys | 0:21e183c9ef81 | 22 | /*Desctructeur*/ |
LecomteDelys | 0:21e183c9ef81 | 23 | ~MatchColors(); |
LecomteDelys | 0:21e183c9ef81 | 24 | |
LecomteDelys | 0:21e183c9ef81 | 25 | /*Méthodes*/ |
LecomteDelys | 0:21e183c9ef81 | 26 | void InitGame(); |
LecomteDelys | 0:21e183c9ef81 | 27 | |
LecomteDelys | 0:21e183c9ef81 | 28 | private : |
LecomteDelys | 0:21e183c9ef81 | 29 | /*Méthodes privées*/ |
LecomteDelys | 0:21e183c9ef81 | 30 | void Play(); |
LecomteDelys | 0:21e183c9ef81 | 31 | void ShowResult(); |
LecomteDelys | 0:21e183c9ef81 | 32 | |
LecomteDelys | 0:21e183c9ef81 | 33 | /*Attributs*/ |
LecomteDelys | 0:21e183c9ef81 | 34 | uint8_t m_nbleds; |
LecomteDelys | 0:21e183c9ef81 | 35 | uint8_t m_difficulty; |
LecomteDelys | 0:21e183c9ef81 | 36 | GroveColourSensor* m_colourSensor; |
LecomteDelys | 0:21e183c9ef81 | 37 | HL1606Stripe* m_stripe; |
LecomteDelys | 0:21e183c9ef81 | 38 | uint8_t* m_randomColors; |
LecomteDelys | 0:21e183c9ef81 | 39 | ColorManager* m_colormManager; |
LecomteDelys | 0:21e183c9ef81 | 40 | bool m_result; |
LecomteDelys | 0:21e183c9ef81 | 41 | |
LecomteDelys | 0:21e183c9ef81 | 42 | Timeout m_timeoutInit; |
LecomteDelys | 0:21e183c9ef81 | 43 | Timeout m_timeoutPlay; |
LecomteDelys | 0:21e183c9ef81 | 44 | Ticker m_tickerResultat; |
LecomteDelys | 0:21e183c9ef81 | 45 | }; |
LecomteDelys | 0:21e183c9ef81 | 46 | |
LecomteDelys | 0:21e183c9ef81 | 47 | #endif |