|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#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} |
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.
|
inline |