18 #ifndef HEADER_SUPERTUX_SUPERTUX_PLAYER_STATUS_HPP 19 #define HEADER_SUPERTUX_SUPERTUX_PLAYER_STATUS_HPP 29 static const float BORDER_X = 10;
30 static const float BORDER_Y = 10;
33 NO_BONUS = 0, GROWUP_BONUS, FIRE_BONUS, ICE_BONUS, AIR_BONUS, EARTH_BONUS
43 void add_coins(
int count,
bool play_sound =
true);
44 void take_checkpoint_coins() { coins -= std::max(coins / 10, 25); }
46 void write(
Writer& writer);
49 int get_max_coins()
const;
50 bool can_reach_checkpoint()
const;
51 std::string get_bonus_prefix()
const;
This class keeps player status between different game sessions (for example when switching maps in th...
Definition: player_status.hpp:38
bool has_hat_sprite() const
Returns the prefix of the animations that should be displayed.
Definition: player_status.hpp:52
Definition: writer.hpp:27
std::string last_worldmap
the last played worldmap
Definition: player_status.hpp:63
std::string worldmap_sprite
the sprite of Tux that should be used in worldmap
Definition: player_status.hpp:62
int max_fire_bullets
maximum number of fire bullets in play
Definition: player_status.hpp:57
int max_earth_time
determines maximum number of seconds player can turn to stone
Definition: player_status.hpp:60
Definition: reader_mapping.hpp:31
int max_air_time
determines maximum number of seconds player can float in air
Definition: player_status.hpp:59
This class provides functions for drawing things on screen.
Definition: drawing_context.hpp:42
int max_ice_bullets
maximum number of ice bullets in play
Definition: player_status.hpp:58