summaryrefslogtreecommitdiff
path: root/src/game/player.h
blob: 71b1c02deb58c0dd394fedebce4e0793c287bb69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 );