1#ifndef NANOMMO_CLIENT_DUEL_WINDOW_H_
2#define NANOMMO_CLIENT_DUEL_WINDOW_H_
7#include "protocol/nanommo.pb.h"
21 static constexpr double kFight = 1.0;
29 std::optional<protocol::DuelAction>
Build(
const protocol::Duel& duel);
32 protocol::DuelState state_ = protocol::DUEL_NONE;
std::optional< protocol::DuelAction > Build(const protocol::Duel &duel)
Draws what the duel needs now. Returns the player's answer, once.
static constexpr double kAnswering
static constexpr double kFight
How long Fight! stays up, in seconds, as it fades.
uint32_t CountdownSeconds(uint32_t milliseconds)