4 #include "player_api.h"
8 typedef struct jump_info jump_info
;
17 k_skate_activity_air_to_grind
,
18 k_skate_activity_ground
,
19 k_skate_activity_undefined
,
20 k_skate_activity_grind_any
,
21 k_skate_activity_grind_boardslide
,
22 k_skate_activity_grind_metallic
,
23 k_skate_activity_grind_back50
,
24 k_skate_activity_grind_front50
,
25 k_skate_activity_grind_5050
40 v3f trick_vel
, /* measured in units of TAU/s */
41 trick_euler
; /* measured in units of TAU */
54 int charging_jump
, jump_dir
;
64 /* initial launch conditions */
69 v4f smoothed_rotation
;
74 /* animation /audio */
75 struct skeleton_anim
*anim_stand
, *anim_highg
, *anim_slide
,
76 *anim_air
, *anim_grind
, *anim_grind_jump
,
77 *anim_push
, *anim_push_reverse
,
78 *anim_ollie
, *anim_ollie_reverse
,
79 *anim_grabs
, *anim_stop
;
81 board_trick_residualv
,
82 board_trick_residuald
;
97 /* vectors representing the direction of the axels in localspace */
101 audio_channel
*aud_main
, *aud_slide
, *aud_air
;
102 enum mdl_surface_prop surface
, audio_surface
;
104 int wheel_contacts
[2];
105 float sample_change_cooldown
;
108 k_skate_sample_concrete
,
110 k_skate_sample_concrete_scrape_metal
,
111 k_skate_sample_concrete_scrape_wood
,
112 k_skate_sample_metal_scrape_generic
120 * ----------------------------------------------------
151 u32 possible_jump_count
;
164 float grind_strength
;
175 VG_STATIC
void player__skate_bind ( player_instance
*player
);
176 VG_STATIC
void player__skate_pre_update ( player_instance
*player
);
177 VG_STATIC
void player__skate_update ( player_instance
*player
);
178 VG_STATIC
void player__skate_post_update ( player_instance
*player
);
179 VG_STATIC
void player__skate_im_gui ( player_instance
*player
);
180 VG_STATIC
void player__skate_animate ( player_instance
*player
,
181 player_animation
*anim
);
182 VG_STATIC
void player__skate_post_animate ( player_instance
*player
);
183 VG_STATIC
void player__skate_reset ( player_instance
*player
,
185 VG_STATIC
void player__skate_restore( player_instance
*player
);
187 VG_STATIC
void player__skate_clear_mechanics( player_instance
*player
);
188 VG_STATIC
void player__skate_reset_animator( player_instance
*player
);
189 VG_STATIC
void player__approximate_best_trajectory( player_instance
*player
);
190 #endif /* PLAYER_SKATE_H */