fix long standing grind bug
[carveJwlIkooP6JGAAIwe30JlM.git] / player_api.h
index 8819772a78912f446bb89e8fcf3fb6178dc5d0b4..ad9e4ca496a0043ed229ebd2b1678fc33fa76c4e 100644 (file)
@@ -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 */