X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fplayer.h;h=e76b93b0ec47dc9ede2b822fe2b8807bfd69931c;hb=6c61f312a1f5a768e202195ca18ed5a51974bdcc;hp=f995219a988c27307820b5249877bdc78e4fbafc;hpb=86cf3102ccfc8892b3f73a271a12d7f2a0881500;p=supertux.git diff --git a/src/player.h b/src/player.h index f995219a9..e76b93b0e 100644 --- a/src/player.h +++ b/src/player.h @@ -63,11 +63,11 @@ struct PlayerKeymap { public: int jump; - int activate; - int duck; + int up; + int down; int left; int right; - int fire; + int power; PlayerKeymap(); }; @@ -79,11 +79,12 @@ struct player_input_type int right; int left; int up; - int old_up; int down; int fire; int old_fire; int activate; + int jump; + int old_jump; }; void player_input_init(player_input_type* pplayer_input); @@ -151,10 +152,20 @@ public: bool flapping; bool can_jump; bool can_flap; + bool falling_from_flap; bool enable_hover; bool butt_jump; int frame_; int frame_main; + + float flapping_velocity; + + // Ricardo's flapping + int flaps_nb; + + // temporary to help player's choosing a flapping + enum { MAREK_FLAP, RICARDO_FLAP, RYAN_FLAP, NONE_FLAP }; + int flapping_mode; base_type previous_base; Timer invincible_timer;