X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrlugburz;a=blobdiff_plain;f=src%2Fplayer.h;fp=src%2Fplayer.h;h=ddba87770bbec43dac3bfc3bf22f040533554958;hp=f7451c9661caf2985c5f3a2f33a4ff3a85ea28e1;hb=60a62013e45b8dd307494b792c48b5fde17d2fdc;hpb=8b4c81041dbf3149c3bbdac08de63524ee2d48b4 diff --git a/src/player.h b/src/player.h index f7451c9..ddba877 100644 --- a/src/player.h +++ b/src/player.h @@ -6,6 +6,7 @@ struct player { struct level *lvl; + struct cell *vis; /* cell visibility list */ int cx, cy; cgm_vec3 cpos; /* cell position (derived from cx,cy) */ @@ -13,7 +14,7 @@ struct player { cgm_vec3 vpos; /* VR position within the cell */ cgm_quat vrot; /* VR orientation */ - int dir; /* cardinal direction, clockwise, 0 is west */ + int dir; /* cardinal direction, clockwise, 0 is north */ float height; /* view matrix, derived from all of the above by upd_player_xform */ @@ -23,6 +24,12 @@ struct player { }; void init_player(struct player *p); + +void move_player(struct player *p, int right, int fwd); +void turn_player(struct player *p, int turn); + void upd_player_xform(struct player *p); +void upd_level_vis(struct player *p); + #endif /* PLAYER_H_ */