#include <HangmanWidget.h>
Definition at line 20 of file HangmanWidget.h.
§ HangmanWidget()
HangmanWidget::HangmanWidget |
( |
const std::string & |
name | ) |
|
Definition at line 27 of file HangmanWidget.C.
32 setContentAlignment(AlignmentFlag::Center);
34 title_ = addWidget(cpp14::make_unique<WText>(tr(
"hangman.readyToPlay")));
36 word_ = addWidget(cpp14::make_unique<WordWidget>());
37 statusText_ = addWidget(cpp14::make_unique<WText>());
38 images_ = addWidget(cpp14::make_unique<ImagesWidget>(MaxGuesses));
40 letters_ = addWidget(cpp14::make_unique<LettersWidget>());
43 language_ = addWidget(cpp14::make_unique<WComboBox>());
44 language_->addItem(tr(
"hangman.englishWords").arg(18957));
45 language_->addItem(tr(
"hangman.dutchWords").arg(1688));
47 addWidget(cpp14::make_unique<WBreak>());
49 newGameButton_ = addWidget(cpp14::make_unique<WPushButton>(tr(
"hangman.newGame")));
§ newGame()
void HangmanWidget::newGame |
( |
| ) |
|
|
private |
Definition at line 55 of file HangmanWidget.C.
57 WString title(tr(
"hangman.guessTheWord"));
std::wstring RandomWord(Dictionary dictionary)
§ registerGuess()
void HangmanWidget::registerGuess |
( |
char |
c | ) |
|
|
private |
Definition at line 74 of file HangmanWidget.C.
86 WString status = tr(
"hangman.youHang");
§ scoreUpdated()
Wt::Signal<int>& HangmanWidget::scoreUpdated |
( |
| ) |
|
|
inline |
§ badGuesses_
int HangmanWidget::badGuesses_ |
|
private |
§ images_
§ language_
Wt::WComboBox* HangmanWidget::language_ |
|
private |
§ letters_
§ name_
std::string HangmanWidget::name_ |
|
private |
§ newGameButton_
Wt::WPushButton* HangmanWidget::newGameButton_ |
|
private |
§ scoreUpdated_
Wt::Signal<int> HangmanWidget::scoreUpdated_ |
|
private |
§ statusText_
Wt::WText* HangmanWidget::statusText_ |
|
private |
§ title_
Wt::WText* HangmanWidget::title_ |
|
private |
§ word_
The documentation for this class was generated from the following files: