19 #ifndef HEADER_SUPERTUX_WORLDMAP_LEVEL_TILE_HPP 20 #define HEADER_SUPERTUX_WORLDMAP_LEVEL_TILE_HPP 22 #include "worldmap/worldmap_object.hpp" 24 #include "supertux/statistics.hpp" 34 static std::string class_name() {
return "level"; }
35 virtual std::string get_class_name()
const override {
return class_name(); }
36 static std::string display_name() {
return _(
"Level"); }
42 void set_solved(
bool v);
43 bool is_solved()
const {
return m_solved; }
45 void set_perfect(
bool v);
46 bool is_perfect()
const {
return m_perfect; }
48 Statistics& get_statistics() {
return m_statistics; }
49 const Statistics& get_statistics()
const {
return m_statistics; }
51 void update_sprite_action();
53 const std::string& get_title()
const {
return m_title; }
54 const std::string& get_level_filename()
const {
return m_level_filename; }
55 const std::string& get_basedir()
const {
return m_basedir; }
56 Color get_title_color()
const {
return m_title_color; }
57 const std::string& get_extro_script()
const {
return m_extro_script; }
58 float get_target_time()
const {
return m_target_time; }
59 bool is_auto_play()
const {
return m_auto_play; }
62 void load_level_information();
65 std::string m_basedir;
66 std::string m_level_filename;
75 std::string m_extro_script;
virtual std::string get_display_name() const override
Returns the display name of the object, translated to the user's locale.
Definition: level_tile.hpp:37
Definition: worldmap_object.hpp:30
This class is a layer between level and worldmap to keep track of stuff like scores, and minor, but funny things, like number of jumps and stuff.
Definition: statistics.hpp:36
Definition: object_settings.hpp:39
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: level_tile.hpp:38
Definition: object_settings.hpp:32
Definition: level_tile.hpp:28
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: worldmap_object.hpp:39
Definition: reader_mapping.hpp:32