aboutsummaryrefslogtreecommitdiff
path: root/src/client/entity/moveable.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/entity/moveable.hh')
-rw-r--r--src/client/entity/moveable.hh29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/client/entity/moveable.hh b/src/client/entity/moveable.hh
new file mode 100644
index 0000000..fa08d22
--- /dev/null
+++ b/src/client/entity/moveable.hh
@@ -0,0 +1,29 @@
+#ifndef CLIENT_ENTITY_MOVEABLE_HH_
+#define CLIENT_ENTITY_MOVEABLE_HH_
+
+#include "client/entity/animate.hh"
+#include "client/state/chunks.hh"
+#include "client/state/state.hh"
+#include "client/world/chunk.hh"
+#include "shared/entity/moveable.hh"
+
+namespace client {
+
+class moveable : virtual public client::animate,
+ virtual public shared::moveable,
+ virtual public shared::animate {
+private:
+ void repredict_from(const shared::tick_t& sequence) noexcept;
+
+public:
+ // Notify repredicts if necessary.
+ virtual void notify(const shared::animate& animate,
+ const shared::tick_t& sequence,
+ const bool from_server) noexcept override;
+
+ void extrapolate() noexcept;
+};
+
+} // namespace client
+
+#endif