Wt examples
3.7.1
public-git
wt
examples
dragdrop
Character.h
Go to the documentation of this file.
1
// This may look like C code, but it's really -*- C++ -*-
2
/*
3
* Copyright (C) 2008 Emweb bv, Herent, Belgium.
4
*
5
* See the LICENSE file for terms of use.
6
*/
7
#ifndef CHARACTER_H_
8
#define CHARACTER_H_
9
10
#include <Wt/WText>
11
12
using namespace
Wt
;
13
18
24
class
Character
:
public
WText
25
{
26
public
:
29
Character
(
const
std::string& name,
WContainerWidget
*parent = 0);
30
33
void
dropEvent(
WDropEvent
event);
34
35
private
:
37
std::string
name_
;
38
40
int
redDrops_
;
41
43
int
blueDrops_
;
44
};
45
48
#endif // CHARACTER_H_
Character
A Matrix character that takes red and/or blue pills.
Definition:
Character.h:24
Wt::WText
Character::name_
std::string name_
The name.
Definition:
Character.h:37
Character::redDrops_
int redDrops_
The current number of red pills.
Definition:
Character.h:40
Wt
Wt::WContainerWidget
Wt::WDropEvent
Character::blueDrops_
int blueDrops_
The current number of blue pills.
Definition:
Character.h:43
Generated on Tue Dec 15 2020 for
the C++ Web Toolkit (Wt)
by
1.8.13