X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player.h;h=77a01fc512d9896dc627b3578f13b5bcbff4992b;hb=872ad3e040f22df357929d3778a955ae8c4ac52b;hp=38e01ad2865bf73d72b12e64e43c433b007ef3e8;hpb=f99902f513b0ad606437bf32de47405dd4ea5f98;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player.h b/player.h index 38e01ad..77a01fc 100644 --- a/player.h +++ b/player.h @@ -1,8 +1,9 @@ #ifndef PLAYER_H #define PLAYER_H -#include "player_api.h" - +#include "player_ragdoll.h" +#include "player_render.h" +#include "player_model.h" #include "player_common.h" #include "player_walk.h" #include "player_skate.h" @@ -80,15 +81,17 @@ struct player_instance *input_grab, *input_camera; + int immobile; + /* * Animation * -------------------------------------------------- */ struct player_avatar *playeravatar; - glmesh *playermesh; + struct player_model *playermodel; struct player_ragdoll ragdoll; - vg_tex2d *playertex; + struct player_board *board; player_pose holdout_pose; float holdout_time; @@ -130,7 +133,8 @@ struct player_instance struct player_walk _walk; struct player_dead _dead; struct player_drive _drive; -}; +} +static localplayer; /* * Gameloop tables @@ -227,13 +231,21 @@ void( *_player_restore[] )( player_instance *player ) = NULL }; -VG_STATIC void player_init(void) -{ - for( u32 i=0; i