Hangman game using qp a 16x2 LCD and joystick.

Dependencies:   TextLCD mbed qp

Committer:
tylerjw
Date:
Thu Feb 09 03:57:44 2012 +0000
Revision:
1:4efaebc256d3
Parent:
0:1521c946a57b
Problems with qp library...
TODO: BSP for button and joystick then main.cpp

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 1:4efaebc256d3 7 START_SIG = 1,
tylerjw 0:1521c946a57b 8 PLAY_SIG,
tylerjw 0:1521c946a57b 9 SELECT_SIG,
tylerjw 0:1521c946a57b 10 FINISHED_SIG,
tylerjw 0:1521c946a57b 11 TERMINATE_SIG,
tylerjw 0:1521c946a57b 12 MAX_PUB_SIG,
tylerjw 0:1521c946a57b 13
tylerjw 1:4efaebc256d3 14 BUTTON_SIG,
tylerjw 0:1521c946a57b 15 SCROLL_SIG,
tylerjw 0:1521c946a57b 16 MAX_SIG
tylerjw 0:1521c946a57b 17 };
tylerjw 0:1521c946a57b 18
tylerjw 0:1521c946a57b 19 struct HostEvt : public QEvent {
tylerjw 0:1521c946a57b 20 int scroll_pos; // +1 - up, 0 - nochange, -1 - down
tylerjw 0:1521c946a57b 21 };
tylerjw 0:1521c946a57b 22
tylerjw 0:1521c946a57b 23 enum { MAX_LETTERS = 8 }; // max wrong letters before loosing
tylerjw 0:1521c946a57b 24
tylerjw 0:1521c946a57b 25 extern QActive * const AO_Player; // active object "opaque" pointers
tylerjw 0:1521c946a57b 26 extern QActive * const AO_Host;
tylerjw 0:1521c946a57b 27
tylerjw 0:1521c946a57b 28 #endif