|
supertux
|
This class keeps player status between different game sessions (for example when switching maps in the worldmap) More...
#include <player_status.hpp>
Public Member Functions | |
| void | reset () |
| void | add_coins (int count, bool play_sound=true) |
| void | take_checkpoint_coins () |
| void | write (Writer &writer) |
| void | read (const ReaderMapping &mapping) |
| int | get_max_coins () const |
| bool | can_reach_checkpoint () const |
| std::string | get_bonus_prefix () const |
| bool | has_hat_sprite () const |
| Returns the prefix of the animations that should be displayed. | |
Public Attributes | |
| int | coins |
| BonusType | bonus |
| int | max_fire_bullets |
| maximum number of fire bullets in play | |
| int | max_ice_bullets |
| maximum number of ice bullets in play | |
| int | max_air_time |
| determines maximum number of seconds player can float in air | |
| int | max_earth_time |
| determines maximum number of seconds player can turn to stone | |
| std::string | worldmap_sprite |
| the sprite of Tux that should be used in worldmap | |
| std::string | last_worldmap |
| the last played worldmap | |
This class keeps player status between different game sessions (for example when switching maps in the worldmap)
1.8.12