summaryrefslogtreecommitdiff
path: root/src/game/player.h
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-09-03 20:10:09 +0200
committernavewindre <boneyaard@gmail.com>2025-09-03 20:10:09 +0200
commitf8b92ce3aa08b1445c9f956d8166830946562d12 (patch)
tree94e63a5aec9f8f52b577f56799e0c9201fd976a5 /src/game/player.h
a
Diffstat (limited to 'src/game/player.h')
-rw-r--r--src/game/player.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/game/player.h b/src/game/player.h
new file mode 100644
index 0000000..71b1c02
--- /dev/null
+++ b/src/game/player.h
@@ -0,0 +1,22 @@
+#pragma once
+#include "object.h"
+
+struct PLAYER_INPUT {
+
+};
+
+struct PLAYER : OBJECT {
+ static const U32 CLASSID = OBJCLASS_PLAYER;
+ U32 health;
+ F32 fov{72.f};
+ F32 eyeoffset{40.f};
+
+ VEC3 mins;
+ VEC3 maxs;
+
+ VEC3 velocity;
+};
+
+extern PLAYER* player_create( VEC3 origin, F32 yaw );
+extern void player_input( struct GAME_DATA* game, PLAYER* player );
+extern VEC3 player_get_view_pos( PLAYER* player );