1#ifndef NANOMMO_CLIENT_INTERPOLATION_H_
2#define NANOMMO_CLIENT_INTERPOLATION_H_
8#include "protocol/nanommo.pb.h"
19 static constexpr double kDelay = 0.1;
28 void Add(
const protocol::World& world,
double now);
32 protocol::World
Shown(
const protocol::World& newest,
double now)
const;
37 int64_t
Drawn(
double now)
const;
49 std::map<uint32_t, Place> players;
50 std::map<uint32_t, Place> monsters;
53 double Then(
double now)
const;
55 std::deque<Snapshot> snapshots_;
void Add(const protocol::World &world, double now)
int64_t Drawn(double now) const
static constexpr double kDelay
protocol::World Shown(const protocol::World &newest, double now) const
static constexpr double kMostAhead