aboutsummaryrefslogtreecommitdiff
path: root/src/client/entity/entity.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/entity/entity.hh')
-rw-r--r--src/client/entity/entity.hh27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/client/entity/entity.hh b/src/client/entity/entity.hh
new file mode 100644
index 0000000..e8d6cc6
--- /dev/null
+++ b/src/client/entity/entity.hh
@@ -0,0 +1,27 @@
+#ifndef CLIENT_ENTITY_ENTITY_HH_
+#define CLIENT_ENTITY_ENTITY_HH_
+
+#include "shared/entity/entity.hh"
+#include "shared/entity/player.hh"
+
+namespace client {
+
+class player; // forward declaration
+
+// A client::entity is a renderable shared::entity.
+class entity : virtual public shared::entity {
+public:
+ entity(shared::entity& e) noexcept
+ : shared::entity(std::forward<shared::entity>(e)) {}
+ entity(const proto::entity& e) noexcept : shared::entity(e) {}
+
+ virtual ~entity() noexcept {}
+
+public:
+ virtual void draw(const client::player& localplayer) noexcept = 0;
+ virtual void draw_wts(const client::player& localplayer) noexcept = 0;
+};
+
+} // namespace client
+
+#endif