nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::Speedometer Class Reference

#include <measure.h>

Public Member Functions

void Add (double sent, float x, float z)
float MetresASecond () const

Detailed Description

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.

Definition at line 11 of file measure.h.

Member Function Documentation

◆ Add()

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.

◆ MetresASecond()

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.


The documentation for this class was generated from the following files: