X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fplayer.h;h=7d92422ddb6c0d0e6bc8423da754cba5ea5f3076;hb=32010751a69440b52780a4e570682f20b4ef70b2;hp=f7451c9661caf2985c5f3a2f33a4ff3a85ea28e1;hpb=f242719e98650720b5d3ed43aca62a4f1fe3ec10;p=vrlugburz diff --git a/src/player.h b/src/player.h index f7451c9..7d92422 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_player_vis(struct player *p); + #endif /* PLAYER_H_ */