QcCapeTracker Class
The cape swings of the figures in the world (decision E-240), one per entity, advanced once per frame. More...
| Header: | #include <clientcore/figures/QcCapeTracker.h> |
Public Functions
| QcCapeSwing::Angles | advance(quint32 id, const QcCapeDrive &drive) |
| void | beginFrame(double seconds, double time) |
| void | endFrame() |
| qsizetype | size() const |
Static Public Members
| const quint32 | localPlayer |
Detailed Description
A figure seen for the first time starts at rest on its target; one that was not drawn in a frame loses its swing.
Member Function Documentation
QcCapeSwing::Angles QcCapeTracker::advance(quint32 id, const QcCapeDrive &drive)
Returns the cape of figure id moved on by this frame's time, driven by drive.
void QcCapeTracker::beginFrame(double seconds, double time)
A new frame seconds after the last one; time is the clock driving idle sway and flutter.
void QcCapeTracker::endFrame()
Drops the swings of figures not advanced since beginFrame().
qsizetype QcCapeTracker::size() const
Returns the number of figures with a swing.
Member Variable Documentation
const quint32 QcCapeTracker::localPlayer
Key of the local player, who is no entity of the session.