X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_api.h;h=ad9e4ca496a0043ed229ebd2b1678fc33fa76c4e;hb=a8ba9cc44e1ae9aeca62fb579a3105c625e59133;hp=8819772a78912f446bb89e8fcf3fb6178dc5d0b4;hpb=34a8df54eb962f3ad2e036355041f5bc5cabe5a0;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_api.h b/player_api.h index 8819772..ad9e4ca 100644 --- a/player_api.h +++ b/player_api.h @@ -1,15 +1,9 @@ #ifndef PLAYER_API_H #define PLAYER_API_H -#define VG_GAME -#include "vg/vg.h" - -#include "player_ragdoll.h" -#include "player_model.h" - -/* - * Defines a set of routines used to interact with the player - */ +#include "model.h" +#include "camera.h" +#include "entity.h" #define PLAYER_API VG_STATIC typedef struct player_instance player_instance; @@ -18,56 +12,9 @@ typedef struct player_animation player_animation; struct player_animation { -#if 0 - camera camera_firstperson, - camera_thirdperson; -#endif - player_pose pose; v3f root_co; v4f root_q; }; -/* - * Init - */ -PLAYER_API void player_create ( player_instance *player ); - -/* - * Appearence - */ -PLAYER_API void player_use_avatar ( player_instance *player, - struct player_avatar *av ); -PLAYER_API void player_use_mesh ( player_instance *player, glmesh *mesh ); -PLAYER_API void player_use_texture ( player_instance *player, vg_tex2d *tex ); - - -/* - * Gameloop events - * ---------------------------------------------------------------------------- - */ -PLAYER_API void player__bind ( player_instance *player ); -PLAYER_API void player__pre_update ( player_instance *player ); -PLAYER_API void player__update ( player_instance *player ); -PLAYER_API void player__post_update ( player_instance *player ); -PLAYER_API void player__pre_render ( player_instance *player ); -PLAYER_API void player__render ( camera *cam, player_instance *player ); -PLAYER_API void player__im_gui ( player_instance *player ); - -/* - * Mechanic events - * ---------------------------------------------------------------------------- - */ -PLAYER_API void player__spawn ( player_instance *player, - struct respawn_point *rp ); -PLAYER_API void player__kill ( player_instance *player ); -PLAYER_API void player__pass_gate ( player_instance *player, - struct gate_hit *hit ); - -/* - * Utiltiy - * ---------------------------------------------------------------------------- - */ -PLAYER_API void player__debugtext( int size, const char *fmt, ... ); - #endif /* PLAYER_API_H */