Wt examples
3.3.0
|
A Matrix character that takes red and/or blue pills. More...
#include <Character.h>
Public Member Functions | |
Character (const std::string &name, WContainerWidget *parent=0) | |
Create a new character with the given name. More... | |
void | dropEvent (WDropEvent event) |
React to a drop event. More... | |
Private Attributes | |
std::string | name_ |
The name. More... | |
int | redDrops_ |
The current number of red pills. More... | |
int | blueDrops_ |
The current number of blue pills. More... | |
Additional Inherited Members | |
![]() | |
virtual void | enableAjax ()=0 |
virtual void | propagateSetEnabled (bool enabled)=0 |
virtual void | render (WFlags< RenderFlag > flags) |
A Matrix character that takes red and/or blue pills.
The Character class demonstrates how to accept and react to drop events.
Definition at line 24 of file Character.h.
Character::Character | ( | const std::string & | name, |
WContainerWidget * | parent = 0 |
||
) |
void Character::dropEvent | ( | WDropEvent | event | ) |
|
private |
The current number of blue pills.
Definition at line 43 of file Character.h.
|
private |
The name.
Definition at line 37 of file Character.h.
|
private |
The current number of red pills.
Definition at line 40 of file Character.h.