4 #include "cgmath/cgmath.h"
9 struct cell *vis; /* cell visibility list */
12 cgm_vec3 cpos; /* cell position (derived from cx,cy) */
13 float theta, phi; /* mouselook/VR controller rotation (theta only) */
14 cgm_vec3 vpos; /* VR position within the cell */
15 cgm_quat vrot; /* VR orientation */
17 int dir; /* cardinal direction, clockwise, 0 is north */
20 /* view matrix, derived from all of the above by upd_player_xform */
23 int hp, mp, hp_max, mp_max;
26 void init_player(struct player *p);
28 void move_player(struct player *p, int right, int fwd);
29 void turn_player(struct player *p, int turn);
31 void upd_player_xform(struct player *p);
33 void upd_level_vis(struct player *p);
35 #endif /* PLAYER_H_ */