#define TUX_SAFE_TIME 750
#define TUX_INVINCIBLE_TIME 10000
+#define TUX_INVINCIBLE_TIME_WARNING 2000
#define TIME_WARNING 20000 /* When to alert player they're low on time! */
/* One-ups... */
int right;
int left;
int up;
+ int old_up;
int down;
int fire;
int old_fire;
extern PlayerSprite largetux;
extern PlayerSprite firetux;
-class Player
+class Player : public GameObject
{
public:
enum HurtMode { KILL, SHRINK };
DyingType dying;
Direction dir;
+ Direction old_dir;
bool jumping;
+ bool can_jump;
int frame_;
int frame_main;
- base_type base;
- base_type old_base;
base_type previous_base;
Timer invincible_timer;
Timer skidding_timer;
void is_dying();
bool is_dead();
void player_remove_powerups();
- void keep_in_bounds();
+ void check_bounds();
bool on_ground();
bool under_solid();
+ void grow();
+
+ std::string type() { return "Player";};
private:
void handle_horizontal_input();