IPlayerDropTarget

An interface for Player data drag and drop operations.  A class must implement this interface to support drag and drop operations with Player data objects.

Project

Cities3D

Include

IPlayerDropTarget.h

Summary
An interface for Player data drag and drop operations.
The IPlayerDropTarget destructor.
Handles the drag event when the mouse is over the control.
Handles a drop event.

Public

Summary
The IPlayerDropTarget destructor.
Handles the drag event when the mouse is over the control.
Handles a drop event.

Destructor

~IPlayerDropTarget

virtual ~IPlayerDropTarget()=0

The IPlayerDropTarget destructor.  It is pure virtual because this class must be derived from to be used.

Pure Virtual Functions

OnDragOver

virtual void OnDragOver(wxCoord x,
wxCoord y)=0

Handles the drag event when the mouse is over the control.

Parameters

xThe x coordinate of the drag position.
yThe y coordinate of the drag position.

OnData

virtual void OnData(wxCoord x,
wxCoord y,
const Player &player)=0

Handles a drop event.

Parameters

xThe x coordinate of the drop position.
yThe y coordinate of the drop position.
playerThe Player data.
Still volatile.
virtual ~IPlayerDropTarget()=0
The IPlayerDropTarget destructor.
virtual void OnDragOver(wxCoord x,
wxCoord y)=0
Handles the drag event when the mouse is over the control.
virtual void OnData(wxCoord x,
wxCoord y,
const Player &player)=0
Handles a drop event.
Cities3D is a cross-platform implementation of the board game Settlers of Catan with all expansions, including Seafarers, and Cities & Knights.