QcBoatRiders Namespace
Boats and their drivers as the client draws them in a frame (decision E-920): a boat where the mirror shows it (interpolated, bobbing while it floats) and its paddles rowing while its driver paddles (the boat's QcMsg::Rowing bit), and every other player who sits on a boat's driver seat drawn there facing the boat's way, their hands on the paddles in the same stroke. More...
| Header: | #include <clientcore/entitymeshes/QcBoatRiders.h> |
Classes
Variables
| const double | seatReach |
Functions
| QcBoatRiders::Drawn | drawn(const QcClientEntity &entity, double alpha, double seconds) |
| double | headYaw(double viewYaw, double boatYaw) |
| QcBoatRiders::Seat | seatIn(quint32 boatId, const QcBoatRiders::Drawn &boat) |
| QcBoatRiders::Seated | seated(QcEntityPose pose, const QcBoatRiders::Seat &seat, double viewYaw) |
| QHash<quint32, QcBoatRiders::Seat> | seats(const QHash<quint32, QcClientEntity> &entities, double alpha, double seconds) |
Detailed Description
Classes
class Drawn
A boat as drawn this frame: its feet (with the bob), its yaw, the moment of the paddles' stroke (QcBoatModel::rowPhase, negative at rest). More...
class Seat
Where a driver sits as drawn this frame: the boat, the feet on its seat (bobbing with it), the boat's yaw and the paddles' stroke. More...
class Seated
A driver figure as drawn on its seat: its pose, its feet and the way it faces. More...
Variable Documentation
const double QcBoatRiders::seatReach
A driver whose seat lies further than this from their drawn place sits in no boat (they got out or sits in a cart).
Function Documentation
QcBoatRiders::Drawn QcBoatRiders::drawn(const QcClientEntity &entity, double alpha, double seconds)
Returns the boat entity at alpha between its last two ticks and at seconds of the client clock.
double QcBoatRiders::headYaw(double viewYaw, double boatYaw)
Returns how far the head of a driver looking along viewYaw turns against their body, which faces the boat's boatYaw (degrees, wrapped to -180..180).
QcBoatRiders::Seat QcBoatRiders::seatIn(quint32 boatId, const QcBoatRiders::Drawn &boat)
Returns the seat of a driver in the boat boatId drawn as boat.
QcBoatRiders::Seated QcBoatRiders::seated(QcEntityPose pose, const QcBoatRiders::Seat &seat, double viewYaw)
Returns the driver figure on seat: its pose sitting in the boat and rowing with it, the head along viewYaw, the feet on the seat and facing the boat's way.
QHash<quint32, QcBoatRiders::Seat> QcBoatRiders::seats(const QHash<quint32, QcClientEntity> &entities, double alpha, double seconds)
Returns the seats of the riding players among entities that sit on a boat's driver seat, by player id, at alpha between the last two ticks and at seconds of the client clock.