Wt examples
4.7.1
C:
M
mingw-w64-wt
src
wt-4.7.1
examples
hangman
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
15
using namespace
Wt
;
16
17
namespace
Wt
{
18
class
WStackedWidget;
19
class
WAnchor;
20
}
21
22
class
HangmanWidget
;
23
class
HighScoresWidget
;
24
class
Session
;
25
26
class
HangmanGame
:
public
WContainerWidget
27
{
28
public
:
29
HangmanGame
();
30
31
void
handleInternalPath
(
const
std::string &internalPath);
32
33
private
:
34
WStackedWidget *
mainStack_
;
35
HangmanWidget
*
game_
;
36
HighScoresWidget
*
scores_
;
37
WContainerWidget *
links_
;
38
WAnchor *
backToGameAnchor_
;
39
WAnchor *
scoresAnchor_
;
40
41
Session
session_
;
42
43
void
onAuthEvent
();
44
void
showGame
();
45
void
showHighScores
();
46
};
47
48
#endif
//HANGMANGAME_H_
Session.h
HangmanGame
Definition:
HangmanGame.h:27
HangmanGame::backToGameAnchor_
WAnchor * backToGameAnchor_
Definition:
HangmanGame.h:38
HangmanGame::game_
HangmanWidget * game_
Definition:
HangmanGame.h:35
HangmanGame::showHighScores
void showHighScores()
Definition:
HangmanGame.C:89
HangmanGame::mainStack_
WStackedWidget * mainStack_
Definition:
HangmanGame.h:34
HangmanGame::links_
WContainerWidget * links_
Definition:
HangmanGame.h:37
HangmanGame::session_
Session session_
Definition:
HangmanGame.h:41
HangmanGame::handleInternalPath
void handleInternalPath(const std::string &internalPath)
Definition:
HangmanGame.C:77
HangmanGame::scoresAnchor_
WAnchor * scoresAnchor_
Definition:
HangmanGame.h:39
HangmanGame::onAuthEvent
void onAuthEvent()
Definition:
HangmanGame.C:64
HangmanGame::scores_
HighScoresWidget * scores_
Definition:
HangmanGame.h:36
HangmanGame::showGame
void showGame()
Definition:
HangmanGame.C:101
HangmanGame::HangmanGame
HangmanGame()
Definition:
HangmanGame.C:20
HangmanWidget
Definition:
HangmanWidget.h:21
HighScoresWidget
Definition:
HighScoresWidget.h:18
Session
Definition:
Session.h:26
Wt
Definition:
AddresseeEdit.h:16
Generated on Fri May 6 2022 for
the C++ Web Toolkit (Wt)
by
1.9.4