Character Class Reference
[Drag and Drop example]

A Matrix character that takes red and/or blue pills. More...

#include <Character.h>

Inheritance diagram for Character:

Inheritance graph
[legend]

List of all members.

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.


Detailed Description

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.


Constructor & Destructor Documentation

Character::Character ( std::wstring  name,
WContainerWidget parent = 0 
)

Create a new character with the given name.

Definition at line 6 of file Character.C.


Member Function Documentation

void Character::dropEvent ( WDropEvent  event  )  [virtual]

React to a drop event.

Reimplemented from Wt::WWidget.

Definition at line 25 of file Character.C.


Member Data Documentation

std::wstring Character::name_ [private]

The name.

Definition at line 37 of file Character.h.

int Character::redDrops_ [private]

The current number of red pills.

Definition at line 40 of file Character.h.

int Character::blueDrops_ [private]

The current number of blue pills.

Definition at line 43 of file Character.h.


The documentation for this class was generated from the following files:
Generated on Mon Apr 14 15:15:04 2008 for Wt by doxygen 1.5.3