4 #include "cgmath/cgmath.h"
11 cgm_vec3 cpos; /* cell position (derived from cx,cy) */
12 float theta, phi; /* mouselook/VR controller rotation (theta only) */
13 cgm_vec3 vpos; /* VR position within the cell */
14 cgm_quat vrot; /* VR orientation */
16 int dir; /* cardinal direction, clockwise, 0 is west */
19 /* view matrix, derived from all of the above by upd_player_xform */
22 int hp, mp, hp_max, mp_max;
25 void init_player(struct player *p);
26 void upd_player_xform(struct player *p);
28 #endif /* PLAYER_H_ */