Wt examples  4.9.0
Loading...
Searching...
No Matches
HangmanGame.h
Go to the documentation of this file.
1// This may look like C code, but it's really -*- C++ -*-
2/*
3 * Copyright (C) 2011 Emweb bv, Herent, Belgium
4 *
5 * See the LICENSE file for terms of use.
6 */
7
8#ifndef HANGMANGAME_H_
9#define HANGMANGAME_H_
10
11#include <Wt/WContainerWidget.h>
12
13#include "Session.h"
14
15using namespace Wt;
16
17namespace Wt {
18 class WStackedWidget;
19 class WAnchor;
20}
21
22class HangmanWidget;
24class Session;
25
26class HangmanGame : public WContainerWidget
27{
28public:
30
31 void handleInternalPath(const std::string &internalPath);
32
33private:
34 WStackedWidget *mainStack_;
37 WContainerWidget *links_;
39 WAnchor *scoresAnchor_;
40
42
43 void onAuthEvent();
44 void showGame();
45 void showHighScores();
46};
47
48#endif //HANGMANGAME_H_
WAnchor * backToGameAnchor_
Definition: HangmanGame.h:38
HangmanWidget * game_
Definition: HangmanGame.h:35
void showHighScores()
Definition: HangmanGame.C:89
WStackedWidget * mainStack_
Definition: HangmanGame.h:34
WContainerWidget * links_
Definition: HangmanGame.h:37
Session session_
Definition: HangmanGame.h:41
void handleInternalPath(const std::string &internalPath)
Definition: HangmanGame.C:77
WAnchor * scoresAnchor_
Definition: HangmanGame.h:39
void onAuthEvent()
Definition: HangmanGame.C:64
HighScoresWidget * scores_
Definition: HangmanGame.h:36
void showGame()
Definition: HangmanGame.C:101