Wt examples 3.3.12
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 bvba, Kessel-Lo, 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
12using namespace Wt;
13
18
24class Character : public WText
25{
26public:
29 Character(const std::string& name, WContainerWidget *parent = 0);
30
33 void dropEvent(WDropEvent event);
34
35private:
37 std::string name_;
38
41
44};
45
48#endif // CHARACTER_H_
A Matrix character that takes red and/or blue pills.
Definition Character.h:25
void dropEvent(WDropEvent event)
React to a drop event.
Definition Character.C:25
std::string name_
The name.
Definition Character.h:37
int blueDrops_
The current number of blue pills.
Definition Character.h:43
int redDrops_
The current number of red pills.
Definition Character.h:40
WWidget * parent() const

Generated on Fri May 17 2024 for the C++ Web Toolkit (Wt) by doxygen 1.9.8