Wt examples
4.11.3
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
namespace
Wt
{
16
class
WStackedWidget;
17
class
WAnchor;
18
}
19
20
class
HangmanWidget
;
21
class
HighScoresWidget
;
22
class
Session
;
23
24
class
HangmanGame
:
public
Wt::WContainerWidget
25
{
26
public
:
27
HangmanGame
();
28
29
void
handleInternalPath
(
const
std::string &internalPath);
30
31
private
:
32
Wt::WStackedWidget
*
mainStack_
=
nullptr
;
33
HangmanWidget
*
game_
=
nullptr
;
34
HighScoresWidget
*
scores_
=
nullptr
;
35
WContainerWidget
*
links_
=
nullptr
;
36
Wt::WAnchor
*
backToGameAnchor_
=
nullptr
;
37
Wt::WAnchor
*
scoresAnchor_
=
nullptr
;
38
39
Session
session_
;
40
41
void
onAuthEvent
();
42
void
showGame
();
43
void
showHighScores
();
44
};
45
46
#endif
//HANGMANGAME_H_
Session.h
HangmanGame
Definition:
HangmanGame.h:25
HangmanGame::game_
HangmanWidget * game_
Definition:
HangmanGame.h:33
HangmanGame::showHighScores
void showHighScores()
Definition:
HangmanGame.C:81
HangmanGame::links_
WContainerWidget * links_
Definition:
HangmanGame.h:35
HangmanGame::session_
Session session_
Definition:
HangmanGame.h:39
HangmanGame::handleInternalPath
void handleInternalPath(const std::string &internalPath)
Definition:
HangmanGame.C:69
HangmanGame::onAuthEvent
void onAuthEvent()
Definition:
HangmanGame.C:56
HangmanGame::scoresAnchor_
Wt::WAnchor * scoresAnchor_
Definition:
HangmanGame.h:37
HangmanGame::scores_
HighScoresWidget * scores_
Definition:
HangmanGame.h:34
HangmanGame::showGame
void showGame()
Definition:
HangmanGame.C:93
HangmanGame::mainStack_
Wt::WStackedWidget * mainStack_
Definition:
HangmanGame.h:32
HangmanGame::backToGameAnchor_
Wt::WAnchor * backToGameAnchor_
Definition:
HangmanGame.h:36
HangmanGame::HangmanGame
HangmanGame()
Definition:
HangmanGame.C:20
HangmanWidget
Definition:
HangmanWidget.h:20
HighScoresWidget
Definition:
HighScoresWidget.h:16
Session
Definition:
Session.h:25
Wt::WAnchor
Wt::WContainerWidget
Wt::WContainerWidget::WContainerWidget
WContainerWidget()
Wt::WStackedWidget
Wt
Generated on Wed Feb 19 2025 for
the C++ Web Toolkit (Wt)
by
1.9.1