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

#include <wars.h>

Public Member Functions

bool Scores (const WarKill &kill, std::chrono::steady_clock::time_point now)

Static Public Attributes

static constexpr std::chrono::minutes kOnceEvery {5}

Detailed Description

Which war kills score: a victim scores for a war once every five minutes at most, so that a player can't run up their guild's score on a friend in the other guild who keeps coming back to die. The kill happens either way. It's the server's to remember, so an instance starts with none.

Definition at line 48 of file wars.h.

Member Function Documentation

◆ Scores()

bool nanommo::Scoring::Scores ( const WarKill & kill,
std::chrono::steady_clock::time_point now )
inline

Whether the kill, now, scores. One that does is remembered for kOnceEvery.

Definition at line 54 of file wars.h.

Member Data Documentation

◆ kOnceEvery

std::chrono::minutes nanommo::Scoring::kOnceEvery {5}
staticconstexpr

Definition at line 50 of file wars.h.


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