|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <measure.h>
Public Member Functions | |
| void | Add (double sent, float x, float z) |
| float | MetresASecond () const |
How fast the server moves a player, from where its worlds put them: what a client that breaks the rules gets for it, if anything.
| void nanommo::Speedometer::Add | ( | double | sent, |
| float | x, | ||
| float | z ) |
Where a world had the player, sent at the time, in seconds on the server's clock. A world older than the newest it has is left out.
Definition at line 17 of file measure.cc.
| float nanommo::Speedometer::MetresASecond | ( | ) | const |
In metres a second, along the way it went over the last second of worlds, so that turning back doesn't count against it, or 0 before two.
Definition at line 27 of file measure.cc.