|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <measure.h>
Public Member Functions | |
| void | Add (double at, uint32_t amount) |
| A hit that did the amount, at the time, in seconds on our clock. | |
| float | PerSecond (double now) const |
| Over the last five seconds to now, as a swing takes about one. | |
| float | DamagePerSecond (double now) const |
The hits a player lands, and their damage, from the events the server sends: what a client that breaks the rules gets for it in a fight.
| void nanommo::Hits::Add | ( | double | at, |
| uint32_t | amount ) |
A hit that did the amount, at the time, in seconds on our clock.
Definition at line 40 of file measure.cc.
| float nanommo::Hits::DamagePerSecond | ( | double | now | ) | const |
Definition at line 55 of file measure.cc.
| float nanommo::Hits::PerSecond | ( | double | now | ) | const |
Over the last five seconds to now, as a swing takes about one.
Definition at line 47 of file measure.cc.