refactor (reduction)
[carveJwlIkooP6JGAAIwe30JlM.git] / player_dead.h
1 #ifndef PLAYER_DEAD_H
2 #define PLAYER_DEAD_H
3
4 #include "player.h"
5 #include "player_api.h"
6
7 struct player_dead{
8 v3f co_lpf, v_lpf, w_lpf;
9
10 struct player_dead_animator{
11 struct {
12 v3f co;
13 v4f q;
14 }
15 transforms[ 32 ];
16 }
17 animator;
18 }
19 static player_dead;
20
21 static void player__dead_update (void);
22 static void player__dead_post_update (void);
23 static void player__dead_animate (void);
24 static void player__dead_pose (void *animator, player_pose *pose);
25 static void player__dead_post_animate(void);
26 static void player__dead_im_gui (void);
27 static void player__dead_transition (void);
28
29 struct player_subsystem_interface static player_subsystem_dead = {
30 .update = player__dead_update,
31 .post_update = player__dead_post_update,
32 .animate = player__dead_animate,
33 .pose = player__dead_pose,
34 .post_animate = player__dead_post_animate,
35 .im_gui = player__dead_im_gui,
36
37 .animator_data = &player_dead.animator,
38 .animator_size = sizeof(player_dead.animator)
39 };
40
41 #endif /* PLAYER_DEAD_H */