Hangman game using qp a 16x2 LCD and joystick.

Dependencies:   TextLCD mbed qp

Committer:
tylerjw
Date:
Wed Feb 08 22:20:11 2012 +0000
Revision:
0:1521c946a57b
Child:
1:4efaebc256d3
Problems with lib/qp, please help!
Player class hasn\t been developed yet.
BSP is still missing some features.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tylerjw 0:1521c946a57b 1 #ifndef hangman_h
tylerjw 0:1521c946a57b 2 #define hangman_h
tylerjw 0:1521c946a57b 3
tylerjw 0:1521c946a57b 4 #include "bsp.h"
tylerjw 0:1521c946a57b 5
tylerjw 0:1521c946a57b 6 enum HangmanSignals {
tylerjw 0:1521c946a57b 7 START_SIG,
tylerjw 0:1521c946a57b 8 PLAY_SIG,
tylerjw 0:1521c946a57b 9 SELECT_SIG,
tylerjw 0:1521c946a57b 10 WIN_SIG,
tylerjw 0:1521c946a57b 11 LOOSE_SIG,
tylerjw 0:1521c946a57b 12 FINISHED_SIG,
tylerjw 0:1521c946a57b 13 TERMINATE_SIG,
tylerjw 0:1521c946a57b 14 MAX_PUB_SIG,
tylerjw 0:1521c946a57b 15
tylerjw 0:1521c946a57b 16 SCROLL_SIG,
tylerjw 0:1521c946a57b 17 MAX_SIG
tylerjw 0:1521c946a57b 18 };
tylerjw 0:1521c946a57b 19
tylerjw 0:1521c946a57b 20 struct HostEvt : public QEvent {
tylerjw 0:1521c946a57b 21 int scroll_pos; // +1 - up, 0 - nochange, -1 - down
tylerjw 0:1521c946a57b 22 };
tylerjw 0:1521c946a57b 23
tylerjw 0:1521c946a57b 24 enum { MAX_LETTERS = 8 }; // max wrong letters before loosing
tylerjw 0:1521c946a57b 25
tylerjw 0:1521c946a57b 26 extern QActive * const AO_Player; // active object "opaque" pointers
tylerjw 0:1521c946a57b 27 extern QActive * const AO_Host;
tylerjw 0:1521c946a57b 28
tylerjw 0:1521c946a57b 29 #endif