#include "control/controller.hpp"
#include "scripting/player.hpp"
#include "player_status.hpp"
+#include "display_effect.hpp"
class BadGuy;
class Portable;
bool dying;
bool backflipping;
int backflip_direction;
+
public:
-
Direction dir;
Direction old_dir;
bool jumping;
bool can_jump;
bool butt_jump;
-
+
Timer invincible_timer;
Timer skidding_timer;
Timer safe_timer;
// set kick animation
void kick();
+ /**
+ * Adds velocity to the player (be carefull when using this)
+ */
+ void add_velocity(const Vector& velocity);
+
void bounce(BadGuy& badguy);
bool is_dead() const
{ return dead; }
bool is_big();
+
+ void set_visible(bool visible);
+ bool get_visible();
private:
void handle_input();
void deactivate();
void walk(float speed);
+ bool visible;
+
+ float adjust_height;
+
Portable* grabbed_object;
Sprite* smalltux_gameover;
Sprite* smalltux_star;
Sprite* bigtux_star;
+ Vector floor_normal;
};
#endif /*SUPERTUX_PLAYER_H*/