19 #ifndef HEADER_SUPERTUX_SUPERTUX_PLAYER_STATUS_HUD_HPP 20 #define HEADER_SUPERTUX_SUPERTUX_PLAYER_STATUS_HUD_HPP 22 #include "supertux/game_object.hpp" 24 #include "video/color.hpp" 25 #include "video/surface_ptr.hpp" 33 static Color text_color;
39 virtual void update(
float dt_sec)
override;
50 int displayed_coins_frame;
51 SurfacePtr coin_surface;
52 SurfacePtr fire_surface;
53 SurfacePtr ice_surface;
virtual void update(float dt_sec) override
This function is called once per frame and allows the object to update it's state.
Definition: player_status_hud.cpp:45
This class keeps player status between different game sessions (for example when switching maps in th...
Definition: player_status.hpp:39
virtual void draw(DrawingContext &context) override
The GameObject should draw itself onto the provided DrawingContext if this function is called...
Definition: player_status_hud.cpp:50
Definition: player_status_hud.hpp:30
This class is responsible for: Updating and drawing the object.
Definition: game_object.hpp:83
virtual GameObjectClasses get_class_types() const
List notable classes in inheritance hierarchy of class.
Definition: game_object.cpp:113
virtual bool is_singleton() const override
If true only a single object of this type is allowed in a given GameObjectManager.
Definition: player_status_hud.hpp:43
A helper structure to list all the type_indexes of the classes in the type hierarchy of a given class...
Definition: game_object.hpp:57
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: player_status_hud.hpp:37
virtual bool is_saveable() const override
Indicates if the object will be saved.
Definition: player_status_hud.hpp:42
This class provides functions for drawing things on screen.
Definition: drawing_context.hpp:42