- added glutIgnoreKeyRepeat in miniglut
[vrlugburz] / src / player.h
index f7451c9..ddba877 100644 (file)
@@ -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_ */