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

#include <duels.h>

Public Member Functions

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

Public Attributes

uint32_t challenger = 0
 Who asked, and who they asked, by their ids.
uint32_t challenged = 0
State state = State::kAsked
std::chrono::nanoseconds left = kAskTime
 How long the ask has left, and then the countdown.
Place flag

Detailed Description

Definition at line 36 of file duels.h.

Member Function Documentation

◆ Against()

uint32_t nanommo::Duels::Duel::Against ( uint32_t id) const
inline

The other side from the player's, by their id.

Definition at line 46 of file duels.h.

Member Data Documentation

◆ challenged

uint32_t nanommo::Duels::Duel::challenged = 0

Definition at line 39 of file duels.h.

◆ challenger

uint32_t nanommo::Duels::Duel::challenger = 0

Who asked, and who they asked, by their ids.

Definition at line 38 of file duels.h.

◆ flag

Place nanommo::Duels::Duel::flag

Definition at line 43 of file duels.h.

◆ left

std::chrono::nanoseconds nanommo::Duels::Duel::left = kAskTime

How long the ask has left, and then the countdown.

Definition at line 42 of file duels.h.

◆ state

State nanommo::Duels::Duel::state = State::kAsked

Definition at line 40 of file duels.h.


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