![](/media/cache/profiles/a0ced38c8090e9d3706d20d370abbbe4.50x50_q85.jpg)
Hangman game using qp a 16x2 LCD and joystick.
Embed:
(wiki syntax)
Show/hide line numbers
hangman.h
00001 #ifndef hangman_h 00002 #define hangman_h 00003 00004 #include "bsp.h" 00005 00006 enum HangmanSignals { 00007 START_SIG = 1, 00008 PLAY_SIG, 00009 SELECT_SIG, 00010 FINISHED_SIG, 00011 TERMINATE_SIG, 00012 MAX_PUB_SIG, 00013 00014 BUTTON_SIG, 00015 SCROLL_SIG, 00016 MAX_SIG 00017 }; 00018 00019 struct HostEvt : public QEvent { 00020 int scroll_pos; // +1 - up, 0 - nochange, -1 - down 00021 }; 00022 00023 enum { MAX_LETTERS = 8 }; // max wrong letters before loosing 00024 00025 extern QActive * const AO_Player; // active object "opaque" pointers 00026 extern QActive * const AO_Host; 00027 00028 #endif
Generated on Wed Jul 13 2022 20:02:05 by
![doxygen](doxygen.png)