#include <HangmanWidget.h>
Public Member Functions | |
HangmanWidget (std::wstring user, Dictionary dict, WContainerWidget *parent=0) | |
Private Slots | |
void | processButton (WPushButton *button) |
void | newGame () |
Private Member Functions | |
void | createAlphabet (WContainerWidget *parent) |
void | createHangmanImages (WContainerWidget *parent) |
void | resetImages () |
void | resetButtons () |
void | registerBadGuess () |
void | registerCorrectGuess (wchar_t c) |
Private Attributes | |
WText * | Title |
WTable * | LetterButtonLayout |
std::vector< WPushButton * > | LetterButtons |
std::vector< WImage * > | HangmanImages |
WImage * | HurrayImage |
WContainerWidget * | WordContainer |
WText * | StatusText |
std::vector< WText * > | WordLetters |
WPushButton * | NewGameButton |
const unsigned int | MaxGuesses |
unsigned int | BadGuesses |
unsigned int | DisplayedLetters |
std::wstring | Word |
std::wstring | User |
Dictionary | Dict |
Definition at line 28 of file HangmanWidget.h.
HangmanWidget::HangmanWidget | ( | std::wstring | user, | |
Dictionary | dict, | |||
WContainerWidget * | parent = 0 | |||
) |
Definition at line 23 of file HangmanWidget.C.
void HangmanWidget::createAlphabet | ( | WContainerWidget * | parent | ) | [private] |
Definition at line 72 of file HangmanWidget.C.
void HangmanWidget::createHangmanImages | ( | WContainerWidget * | parent | ) | [private] |
Definition at line 55 of file HangmanWidget.C.
void HangmanWidget::resetImages | ( | ) | [private] |
Definition at line 169 of file HangmanWidget.C.
void HangmanWidget::resetButtons | ( | ) | [private] |
Definition at line 176 of file HangmanWidget.C.
void HangmanWidget::registerBadGuess | ( | ) | [private] |
Definition at line 135 of file HangmanWidget.C.
void HangmanWidget::registerCorrectGuess | ( | wchar_t | c | ) | [private] |
Definition at line 151 of file HangmanWidget.C.
void HangmanWidget::processButton | ( | WPushButton * | button | ) | [private, slot] |
Definition at line 121 of file HangmanWidget.C.
void HangmanWidget::newGame | ( | ) | [private, slot] |
Definition at line 94 of file HangmanWidget.C.
WText* HangmanWidget::Title [private] |
Definition at line 35 of file HangmanWidget.h.
WTable* HangmanWidget::LetterButtonLayout [private] |
Definition at line 36 of file HangmanWidget.h.
std::vector<WPushButton *> HangmanWidget::LetterButtons [private] |
Definition at line 37 of file HangmanWidget.h.
std::vector<WImage *> HangmanWidget::HangmanImages [private] |
Definition at line 38 of file HangmanWidget.h.
WImage* HangmanWidget::HurrayImage [private] |
Definition at line 39 of file HangmanWidget.h.
WContainerWidget* HangmanWidget::WordContainer [private] |
Definition at line 40 of file HangmanWidget.h.
WText* HangmanWidget::StatusText [private] |
Definition at line 41 of file HangmanWidget.h.
std::vector<WText *> HangmanWidget::WordLetters [private] |
Definition at line 42 of file HangmanWidget.h.
WPushButton* HangmanWidget::NewGameButton [private] |
Definition at line 43 of file HangmanWidget.h.
const unsigned int HangmanWidget::MaxGuesses [private] |
Definition at line 45 of file HangmanWidget.h.
unsigned int HangmanWidget::BadGuesses [private] |
Definition at line 46 of file HangmanWidget.h.
unsigned int HangmanWidget::DisplayedLetters [private] |
Definition at line 47 of file HangmanWidget.h.
std::wstring HangmanWidget::Word [private] |
Definition at line 48 of file HangmanWidget.h.
std::wstring HangmanWidget::User [private] |
Definition at line 49 of file HangmanWidget.h.
Dictionary HangmanWidget::Dict [private] |
Definition at line 50 of file HangmanWidget.h.