18 #ifndef HEADER_SUPERTUX_SUPERTUX_PLAYER_STATUS_HPP 19 #define HEADER_SUPERTUX_SUPERTUX_PLAYER_STATUS_HPP 30 static const float BORDER_X = 10;
31 static const float BORDER_Y = 10;
34 NO_BONUS = 0, GROWUP_BONUS, FIRE_BONUS, ICE_BONUS, AIR_BONUS, EARTH_BONUS
43 void reset(
int num_players);
44 void add_coins(
int count,
bool play_sound =
true);
45 void take_checkpoint_coins();
47 void write(
Writer& writer);
50 int get_max_coins()
const;
51 bool can_reach_checkpoint()
const;
52 bool respawns_at_checkpoint()
const;
53 std::string get_bonus_prefix(
int player_id)
const;
54 bool has_hat_sprite(
int player_id)
const {
return bonus[player_id] > GROWUP_BONUS; }
57 void remove_player(
int player_id);
66 std::vector<BonusType> bonus;
This class keeps player status between different game sessions (for example when switching maps in th...
Definition: player_status.hpp:39
std::string title_level
level to be used for the title screen, overrides the value of the same property for the world ...
Definition: player_status.hpp:74
bool has_hat_sprite(int player_id) const
Returns the prefix of the animations that should be displayed.
Definition: player_status.hpp:54
std::vector< int > max_earth_time
determines maximum number of seconds player can turn to stone
Definition: player_status.hpp:70
std::string last_worldmap
the last played worldmap
Definition: player_status.hpp:73
std::vector< int > max_air_time
determines maximum number of seconds player can float in air
Definition: player_status.hpp:69
std::string worldmap_sprite
the sprite of Tux that should be used in worldmap
Definition: player_status.hpp:72
std::vector< int > max_ice_bullets
maximum number of ice bullets in play
Definition: player_status.hpp:68
Definition: reader_mapping.hpp:32
This class provides functions for drawing things on screen.
Definition: drawing_context.hpp:42
Definition: writer.cpp:23
std::vector< int > max_fire_bullets
maximum number of fire bullets in play
Definition: player_status.hpp:67