QcDials Namespace
What the dials of held items show (decision E-769), as pure functions of the session's state. More...
| Header: | #include <clientcore/player/QcDials.h> |
Classes
| struct | ClockTime |
Functions
| double | clockAngle(double worldTime) |
| QcDials::ClockTime | clockTime(double worldTime) |
| double | compassAngle(const QcVec3 &position, double yaw, int spawnX, int spawnZ) |
Detailed Description
Classes
class ClockTime
The time of day the clock shows as hours and minutes, sunrise at 6:00. More...
Function Documentation
double QcDials::clockAngle(double worldTime)
Returns the clock at worldTime: the hand in degrees clockwise from the top, noon at the top and midnight at the bottom (one turn per day), in [0, 360).
QcDials::ClockTime QcDials::clockTime(double worldTime)
Returns the time of day the clock shows at worldTime.
double QcDials::compassAngle(const QcVec3 &position, double yaw, int spawnX, int spawnZ)
Returns the compass needle: degrees clockwise from straight ahead (the top of the dial) towards the world spawn column (spawnX, spawnZ) for a player at position looking along yaw (degrees, 0 north, 90 east), in [-180, 180); 0 when the player stands on the spawn column.