HangmanWidget Class Reference

#include <HangmanWidget.h>

Inheritance diagram for HangmanWidget:

Inheritance graph
[legend]

List of all members.

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

WTextTitle
WTableLetterButtonLayout
std::vector
< WPushButton * > 
LetterButtons
std::vector< WImage * > HangmanImages
WImageHurrayImage
WContainerWidgetWordContainer
WTextStatusText
std::vector< WText * > WordLetters
WPushButtonNewGameButton
const unsigned int MaxGuesses
unsigned int BadGuesses
unsigned int DisplayedLetters
std::wstring Word
std::wstring User
Dictionary Dict


Detailed Description

Definition at line 28 of file HangmanWidget.h.


Constructor & Destructor Documentation

HangmanWidget::HangmanWidget ( std::wstring  user,
Dictionary  dict,
WContainerWidget parent = 0 
)

Definition at line 23 of file HangmanWidget.C.


Member Function Documentation

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.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
Generated on Fri Jul 25 17:06:02 2008 for Wt by doxygen 1.5.3