Hangman game using qp a 16x2 LCD and joystick.

Dependencies:   TextLCD mbed qp

hangman.h

Committer:
tylerjw
Date:
2012-02-08
Revision:
0:1521c946a57b
Child:
1:4efaebc256d3

File content as of revision 0:1521c946a57b:

#ifndef hangman_h
#define hangman_h

#include "bsp.h"

enum HangmanSignals {
    START_SIG,
    PLAY_SIG,
    SELECT_SIG,
    WIN_SIG,
    LOOSE_SIG,
    FINISHED_SIG,
    TERMINATE_SIG,
    MAX_PUB_SIG,
    
    SCROLL_SIG,
    MAX_SIG
};

struct HostEvt : public QEvent {
    int scroll_pos; // +1 - up, 0 - nochange, -1 - down
};

enum { MAX_LETTERS = 8 };           // max wrong letters before loosing

extern QActive * const AO_Player;   // active object "opaque" pointers
extern QActive * const AO_Host;

#endif