Wt examples  3.7.1
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>
12 
13 #include "Session.h"
14 
15 namespace Wt {
16  class WStackedWidget;
17  class WAnchor;
18 }
19 
20 class HangmanWidget;
21 class HighScoresWidget;
22 class Session;
23 
25 {
26 public:
27  HangmanGame(Wt::WContainerWidget *parent = 0);
28 
29  void handleInternalPath(const std::string &internalPath);
30 
31 private:
38 
40 
41  void onAuthEvent();
42  void showGame();
43  void showHighScores();
44 };
45 
46 #endif //HANGMANGAME_H_
Wt::WAnchor * backToGameAnchor_
Definition: HangmanGame.h:36
Session session_
Definition: HangmanGame.h:39
Wt::WStackedWidget * mainStack_
Definition: HangmanGame.h:32
HangmanWidget * game_
Definition: HangmanGame.h:33
Wt::WAnchor * scoresAnchor_
Definition: HangmanGame.h:37
Wt::WContainerWidget * links_
Definition: HangmanGame.h:35
HighScoresWidget * scores_
Definition: HangmanGame.h:34

Generated on Tue Dec 15 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.13