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

#include <wars.h>

Public Member Functions

uint32_t Against (uint32_t guild) const
 The other side from the guild's, by its id.

Public Attributes

uint32_t id = 0
uint32_t challenger = 0
std::string challenger_name
uint32_t challenged = 0
std::string challenged_name
uint32_t challenger_kills = 0
uint32_t challenged_kills = 0
std::chrono::seconds left {0}

Detailed Description

A war between two guilds of a world, as MySQL has it: the guild that asked, the one that said yes, by their ids and names, how many of the other side's players each has killed, and how long it has left. A guild is in one war at a time.

Definition at line 16 of file wars.h.

Member Function Documentation

◆ Against()

uint32_t nanommo::War::Against ( uint32_t guild) const
inline

The other side from the guild's, by its id.

Definition at line 27 of file wars.h.

Member Data Documentation

◆ challenged

uint32_t nanommo::War::challenged = 0

Definition at line 20 of file wars.h.

◆ challenged_kills

uint32_t nanommo::War::challenged_kills = 0

Definition at line 23 of file wars.h.

◆ challenged_name

std::string nanommo::War::challenged_name

Definition at line 21 of file wars.h.

◆ challenger

uint32_t nanommo::War::challenger = 0

Definition at line 18 of file wars.h.

◆ challenger_kills

uint32_t nanommo::War::challenger_kills = 0

Definition at line 22 of file wars.h.

◆ challenger_name

std::string nanommo::War::challenger_name

Definition at line 19 of file wars.h.

◆ id

uint32_t nanommo::War::id = 0

Definition at line 17 of file wars.h.

◆ left

std::chrono::seconds nanommo::War::left {0}

Definition at line 24 of file wars.h.


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