#include "ChunkReceiver.hpp"
#include "ChunkRequester.hpp"
+#include "NetworkedInput.hpp"
#include "../app/IntervalTimer.hpp"
#include "../graphics/SkyBox.hpp"
#include "../io/WorldSave.hpp"
#include "../model/Skeletons.hpp"
-#include "../ui/DirectInput.hpp"
#include "../ui/HUD.hpp"
#include "../ui/InteractiveManipulator.hpp"
#include "../ui/Interface.hpp"
#include "../world/Player.hpp"
#include "../world/World.hpp"
-#include <list>
-
namespace blank {
void Update(int dt) override;
void Render(Viewport &) override;
- void PushPlayerUpdate(const Entity &, int dt);
void MergePlayerCorrection(std::uint16_t, const EntityState &);
void SetAudio(bool) override;
Player &player;
HUD hud;
InteractiveManipulator manip;
- DirectInput input;
+ NetworkedInput input;
Interface interface;
ChunkRequester chunk_requester;
ChunkReceiver chunk_receiver;
SkyBox sky;
- struct PlayerHistory {
- EntityState state;
- int delta_t;
- std::uint16_t packet;
- PlayerHistory(EntityState s, int dt, std::uint16_t p)
- : state(s), delta_t(dt), packet(p) { }
- };
- std::list<PlayerHistory> player_hist;
-
};
}