Library of Navigator of menu systems
Navigator.h@0:8209f74d51a0, 2013-02-28 (annotated)
- Committer:
- pyeh9
- Date:
- Thu Feb 28 22:19:46 2013 +0000
- Revision:
- 0:8209f74d51a0
First commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pyeh9 | 0:8209f74d51a0 | 1 | #ifndef NAVIGATOR_H |
pyeh9 | 0:8209f74d51a0 | 2 | #define NAVIGATOR_H |
pyeh9 | 0:8209f74d51a0 | 3 | |
pyeh9 | 0:8209f74d51a0 | 4 | #include "mbed.h" |
pyeh9 | 0:8209f74d51a0 | 5 | #include "Menu.h" |
pyeh9 | 0:8209f74d51a0 | 6 | #include "TextLCD.h" |
pyeh9 | 0:8209f74d51a0 | 7 | #include "RPG.h" |
pyeh9 | 0:8209f74d51a0 | 8 | |
pyeh9 | 0:8209f74d51a0 | 9 | class Navigator { |
pyeh9 | 0:8209f74d51a0 | 10 | private: |
pyeh9 | 0:8209f74d51a0 | 11 | |
pyeh9 | 0:8209f74d51a0 | 12 | public: |
pyeh9 | 0:8209f74d51a0 | 13 | //Navigator(Menu &, RPG &, TextLCD &); |
pyeh9 | 0:8209f74d51a0 | 14 | Navigator(Menu &, RPG &, TextLCD *lcd); |
pyeh9 | 0:8209f74d51a0 | 15 | Menu activeMenu; |
pyeh9 | 0:8209f74d51a0 | 16 | RPG rpg; |
pyeh9 | 0:8209f74d51a0 | 17 | TextLCD *lcd; |
pyeh9 | 0:8209f74d51a0 | 18 | int direction; |
pyeh9 | 0:8209f74d51a0 | 19 | bool selectButton; |
pyeh9 | 0:8209f74d51a0 | 20 | |
pyeh9 | 0:8209f74d51a0 | 21 | void poll(); |
pyeh9 | 0:8209f74d51a0 | 22 | void moveUp(); |
pyeh9 | 0:8209f74d51a0 | 23 | void moveDown(); |
pyeh9 | 0:8209f74d51a0 | 24 | void printMenu(); |
pyeh9 | 0:8209f74d51a0 | 25 | void update(); |
pyeh9 | 0:8209f74d51a0 | 26 | }; |
pyeh9 | 0:8209f74d51a0 | 27 | |
pyeh9 | 0:8209f74d51a0 | 28 | #endif |