Wt examples
4.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
public-git
wt
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 bvba, Heverlee, 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::session_
Session session_
Definition:
HangmanGame.h:41
HangmanGame::mainStack_
WStackedWidget * mainStack_
Definition:
HangmanGame.h:34
HangmanGame::backToGameAnchor_
WAnchor * backToGameAnchor_
Definition:
HangmanGame.h:38
HangmanGame
Definition:
HangmanGame.h:26
HangmanWidget
Definition:
HangmanWidget.h:20
HangmanGame::game_
HangmanWidget * game_
Definition:
HangmanGame.h:35
Wt
Session
Definition:
Session.h:25
Wt::WAnchor
HighScoresWidget
Definition:
HighScoresWidget.h:17
Wt::WContainerWidget
HangmanGame::scores_
HighScoresWidget * scores_
Definition:
HangmanGame.h:36
HangmanGame::links_
WContainerWidget * links_
Definition:
HangmanGame.h:37
HangmanGame::scoresAnchor_
WAnchor * scoresAnchor_
Definition:
HangmanGame.h:39
Wt::WStackedWidget
Generated on Mon Sep 4 2017 for
the C++ Web Toolkit (Wt)
by
1.8.11