R-Type
Networked shoot'em up built on Aegis2D
Loading...
Searching...
No Matches
client_world.hpp File Reference

The client's copy of the server's world, built from snapshots and events. More...

#include <aegis2d/core/math.hpp>
#include <aegis2d/ecs/entity.hpp>
#include <aegis2d/ecs/registry.hpp>
#include <rtype/events.hpp>
#include <rtype/snapshot.hpp>
#include <rtype/tuning.hpp>
#include <array>
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <deque>
#include <optional>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

struct  rtype::Replicated
 What the client knows of an entity of the server, next to its components. More...
 
struct  rtype::TrailPoint
 One position of an entity, as a snapshot (or its Spawn) gave it. More...
 
struct  rtype::Trail
 The latest positions of an entity, oldest first, to draw it between two of them. More...
 
struct  rtype::RemotePlayer
 What the client knows of a player of the game. More...
 
class  rtype::ClientWorld
 The world as the server describes it (RFC sections 4.3 to 4.5). More...
 

Namespaces

namespace  rtype
 R-Type game code, built on the Aegis2D engine.
 

Functions

aegis2d::Vec2 rtype::interpolate (const Trail &trail, double tick) noexcept
 Position of an entity at a tick, between the positions of its trail.
 

Detailed Description

The client's copy of the server's world, built from snapshots and events.