#include <Character.h>
Public Member Functions | |
Character (std::wstring name, WContainerWidget *parent=0) | |
Create a new character with the given name. | |
void | dropEvent (WDropEvent event) |
React to a drop event. | |
Private Attributes | |
std::wstring | name_ |
The name. | |
int | redDrops_ |
The current number of red pills. | |
int | blueDrops_ |
The current number of blue pills. |
The Character class demonstrates how to accept and react to drop events.
Definition at line 24 of file Character.h.
Character::Character | ( | std::wstring | name, | |
WContainerWidget * | parent = 0 | |||
) |
void Character::dropEvent | ( | WDropEvent | event | ) | [virtual] |
std::wstring Character::name_ [private] |
int Character::redDrops_ [private] |
int Character::blueDrops_ [private] |